忍者ブログ
バーテン無事卒業しました。当面真面目に家具屋をやります。
[47]  [45]  [46]  [44]  [43]  [42]  [41]  [40]  [39]  [38]  [37
×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。

OpenSim ローカルグリッドモード設定手順

1)データベースの接続先設定

C:\opensimbin\mysql_connection.ini.exampleを元に、以下を変更し、「mysql_connection.ini」という名前で保存。

【mysql_connection.ini】
----------------------------------------------------------------------
; The IniConfig.cs that parses this file by just finding the first key={value} in the whole text so comments aren't really honoured.
; Also, this algorithm can probably lead to 'amusing' results in unfortunate cases.

[mysqlconnection]
hostname=localhost
database=opensim ★データベース名
username=opensim ★ユーザ名
password=XXXXXXX ★opensim接続用パスワード
pooling=false
port=3306

; These entries are only for if you, for some reason, wish to customize your user server table names.
; Do note that if you change the table names, you might have to change the sql resources too manually
; If ommitted, default values will be used.

userstablename=users
userfriendstablename=userfriends
agentstablename=agents
regionstablename=regions ★この行追加
----------------------------------------------------------------------


2)OpenSimローカルグリッドモード用設定ファイル作成

C:\opensimbin\OpenSim.ini.exampleを元に、以下を変更し、「OpenSim.ini」という名前で保存。

 ※スタンドアロン起動時に作成された設定ファイルを別名で保存しておくと、設定ファイルの置き換えでモードを切り替えられる。

【OpenSim.ini】
----------------------------------------------------------------------
;;;;;gridmode = false
gridmode = true


; --- To use sqlite as region storage:
;;;;;storage_plugin = "OpenSim.Data.SQLite.dll"
;;;;;storage_connection_string="URI=file:OpenSim.db,version=3";
storage_plugin="OpenSim.Data.MySQL.dll"
storage_connection_string="Data Source=localhost;Database=opensim;User ID=opensim;Password=opensim2008;";


;;;;;;asset_database = "local"
asset_database = "grid"


; Asset database provider
;;;;;asset_plugin = "OpenSim.Data.SQLite.dll"
asset_plugin = "OpenSim.Data.MySQL.dll" ; for mysql


; Inventory database provider
;;;;;inventory_plugin = "OpenSim.Data.SQLite.dll"
inventory_plugin = "OpenSim.Data.MySQL.dll"


; User Data Database provider
;;;;;userDatabase_plugin = "OpenSim.Data.SQLite.dll"
userDatabase_plugin = "OpenSim.Data.MySQL.dll"
----------------------------------------------------------------------


3)各サービス起動

※以下の順で、C:\opensimbin\にあるアプリケーションを管理者として実行する。
 →いずれも、コマンドプロンプト画面が開く。

 OpenSim.Grid.UserServer.exe
 OpenSim.Grid.GridServer.exe
 OpenSim.Grid.AssetServer.exe
 OpenSim.Grid.InventoryServer.exe
 OpenSim.exe


※初回起動時のみ、「OpenSim.exe」以外は、途中でログ表示が止まって、設定入力がある。
 ★以外、デフォルト入力(リターン)でOK。(後で、作成されたXML設定ファイルを修正してもよい)

 →「C:\opensimbin\」フォルダにXML設定ファイルが自動作成される。
 →MySQLの「opensim」データベースにテーブルが自動作成される。

【UserServer】
----------------------------------------------------------------------

13:12:15 - [CONFIG]: Calling Configuration Load Function...
USER SERVER: Default Startup Message [Welcome to OGS]:
USER SERVER: Default Grid Server URI [http://127.0.0.1:8001/]:
USER SERVER: Key to send to grid server [null]:
USER SERVER: Key to expect from grid server [null]:
USER SERVER: Default Inventory Server URI [http://127.0.0.1:8004/]:
USER SERVER: DLL for database provider [OpenSim.Data.MySQL.dll]:
USER SERVER: Connection String for Database []:
USER SERVER: Http Listener port [8002]:
USER SERVER: Use SSL? true/false [False]:
USER SERVER: Known good region X [1000]:
USER SERVER: Known good region Y [1000]:
13:12:31 - [REGION]: Establishing data connection

13:12:33 - [SERVER]: Userserver 0.5 - Startup complete
Enter help for a list of commands

User# :
----------------------------------------------------------------------

→入力内容が、以下のファイルに反映されて作成される。

C:\opensimbin\UserServer_Config.xml
----------------------------------------------------------------------
<Root>
  <Config default_startup_message="Welcome to OGS" default_grid_server="http://127.0.0.1:8001/" grid_send_key="null" grid_recv_key="null" default_inventory_server="http://127.0.0.1:8004/" database_provider="OpenSim.Data.MySQL.dll" database_connect="" http_port="8002" http_ssl="False" default_X="1000" default_Y="1000" />
</Root>
----------------------------------------------------------------------


【GridServer】
----------------------------------------------------------------------
:
13:15:56 - [CONFIG]: Calling Configuration Load Function...
GRID SERVER: OGS Grid Owner [OGS development team]:
GRID SERVER: Default Asset Server URI [http://127.0.0.1:8003/]:
GRID SERVER: Key to send to asset server [null]:
GRID SERVER: Key to expect from asset server [null]:
GRID SERVER: Default User Server URI [http://127.0.0.1:8002/]:
GRID SERVER: Key to send to user server [null]:
GRID SERVER: Key to expect from user server [null]:
GRID SERVER: Key to send to a simulator [null]:
GRID SERVER: Key to expect from a simulator [null]:
GRID SERVER: DLL for database provider [OpenSim.Data.MySQL.dll]:
GRID SERVER: Database connect string []:
GRID SERVER: Http Listener port [8001]:
:
13:16:27 - [HTTPD]: Spawned main thread OK
Enter help for a list of commands

Grid# :
----------------------------------------------------------------------

→入力内容が、以下のファイルに反映されて作成される。

C:\opensimbin\GridServer_Config.xml
----------------------------------------------------------------------
<Root>
  <Config grid_owner="OGS development team" default_asset_server="http://127.0.0.1:8003/" asset_send_key="null" asset_recv_key="null" default_user_server="http://127.0.0.1:8002/" user_send_key="null" user_recv_key="null" sim_send_key="null" sim_recv_key="null" database_provider="OpenSim.Data.MySQL.dll" database_connect="" http_port="8001" allow_forceful_banlines="TRUE" />
</Root>
----------------------------------------------------------------------


【AssetServer】
----------------------------------------------------------------------

13:21:05 - [CONFIG]: Calling Configuration Load Function...
ASSET SERVER: Default Startup Message [Welcome to OGS]:
ASSET SERVER: DLL for database provider [OpenSim.Data.MySQL.dll]:
ASSET SERVER: Database connection string []:
ASSET SERVER: Http Listener port [8003]:

13:21:13 - [ASSET]: Setting up asset DB
:
13:21:16 - [HTTPD]: Spawned main thread OK
Enter help for a list of commands
Asset# :
----------------------------------------------------------------------

→入力内容が、以下のファイルに反映されて作成される。

C:\opensimbin\AssetServer_Config.xml
----------------------------------------------------------------------
<Root>
  <Config default_startup_message="Welcome to OGS" database_provider="OpenSim.Data.MySQL.dll" database_connect="" http_port="8003" />
</Root>
----------------------------------------------------------------------


【InventoryServer】
----------------------------------------------------------------------

13:31:15 - [CONFIG]: Calling Configuration Load Function...
INVENTORY: Default Startup Message [Welcome to OGS]:
INVENTORY: Default User Server URI [http://127.0.0.1:8002]:
INVENTORY: Key to send to user server [null]:
INVENTORY: Key to expect from user server [null]:
INVENTORY: DLL for database provider [OpenSim.Data.SQLite.dll]: ★
OpenSim.Data.MySQL.dll
INVENTORY: Database Connect String []:
INVENTORY: Http Listener port [8004]:

13:31:31 - [AGENT INVENTORY]: Inventory storage: Attempting to load OpenSim.Data
.MySQL.dll
:
13:31:31 - [INVENTORY]: Started HTTP server
Enter help for a list of commands

Inventory# :
----------------------------------------------------------------------

→入力内容が、以下のファイルに反映されて作成される。

C:\opensimbin\InventoryServer_Config.xml
----------------------------------------------------------------------
<Root>
  <Config default_startup_message="Welcome to OGS" default_user_server="http://127.0.0.1:8002" user_send_key="null" user_recv_key="null" database_provider="OpenSim.Data.MySQL.dll" database_connect="" http_port="8004" />
</Root>
----------------------------------------------------------------------


【OpenSim】
----------------------------------------------------------------------

13:39:03 - [!]:STARTUP COMPLETE
Region# :
----------------------------------------------------------------------

→起動後、以下のファイルに反映されて作成される。

C:\opensimbin\estate_settings.xml
----------------------------------------------------------------------
<Root>
  省略
</Root>
----------------------------------------------------------------------


4)OpenSimログインユーザを作成

UserServerのコマンドプロンプト画面で、ビューアからログインする時のユーザ「Test User」を作成。
※同じ要領で、自分の名前のユーザ等も作成できる。

【UserServer】
----------------------------------------------------------------------
User# :
create user;
First name:
Test
Last name:
User
Password:
test
Start Region X:
1000
Start Region Y:
1000
13:47:23 - [MySQLManager]: Fetching profile for b0035344-ea17-4c94-b341-e34cc40edf64
----------------------------------------------------------------------
 

PR
POST
name
title
mail
URL
comment
pass   Vodafone絵文字 i-mode絵文字 Ezweb絵文字

secret(※管理者へのみの表示となります。)
COMMENT
あつこなにしてるん!
英語ばっかでこわいで!!
ばべ 2008/08/23(Sat)01:03:41 Edit Top
!!
コピー&ペーストよ!!!
カエル島、つくったわ!!!!
Ashy Mathy URL 2008/08/23(Sat)08:35:15 Edit Top
このエントリーを参考にさせて頂きました。
こんにちは。初めまして。
こちらのエントリーを参考に、自分のローカル環境にスタンドアロングリッドモードで構築する事が出来ました。最終的にはUbuntu上に構築しましたが、大変参考になりました。すでに更新を停止されていらっしゃるようで、このコメントを読んで頂けるかわかりませんが、私がとった手順を自身のブログで記事にしようと思います。その際に参考にさせて頂いたブログとして、このエントリーにリンクを張らせて頂きたいと思います。
どうもありがとうございました。
Kobumaki URL 2009/08/10(Mon)12:20:39 Edit Top
TRACKBACK
trackbackURL:
カレンダー
04 2024/05 06
S M T W T F S
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
最新トラックバック
アクセス解析
バーコード
Copyright © Second Life "~ goin' home furniture ~" All Rights Reserved.
Powered by NinjaBlog Graphics by 写真素材Kun * Material by Gingham * Template by Kaie 忍者ブログ [PR]