グリッドモード(UGRM)
From OpenSimulator
(Difference between revisions)
(→設定例) |
(→設定) |
||
Line 165: | Line 165: | ||
Include-Grid = "config-include/Grid.ini" | Include-Grid = "config-include/Grid.ini" | ||
− | * bin/config-include/GridCommon.ini | + | * bin/config-include/GridCommon.ini |
# cd OPENSIM_TOP_DIR/bin | # cd OPENSIM_TOP_DIR/bin | ||
# cp config-include/GridCommon.ini.example config-include/GridCommon.ini | # cp config-include/GridCommon.ini.example config-include/GridCommon.ini |
Revision as of 00:42, 18 November 2009
Contents |
Linux/Unix
Server 起動順序
- 以下にサーバの起動順序を示す.停止させる場合は逆順で停止させる.なお ( ) 内はデフォルトのTCPポート番号.
- MySQL Server (3306)
- User Server (8002)
- Grid Server (8001)
- ROBUST Server (8003)
- Messaging Server (8006)
- Region Server (9000)
MySQL Server
- MySQL で OpenSim用データベースを作成し,OpenSimの管理ユーザを登録しておく.
- 例:データベース名 opensim, OpenSim管理ユーザ openwim_user, OpenSim管理パスワード opensim_pass の場合.
$ /usr/local/mysql/bin/mysql -u root -p Enter password: データベース全体の管理者のパスワード mysql> create database opensim; mysql> grant all on opensim.* to opensim_user identified by 'opensim_pass'; mysql> flush privileges; mysql> exit
- グループ理念などで日本語を表示できるようにするには,/etc/my.cnf を編集して文字コードを utf8 にする
# cat /etc/my.cnf [mysql] default-character-set=utf8 [mysqld] default-character-set=utf8
User Server
起動
# cd OPENSIM_TOP_DIR/bin # mono OpenSim.Grid.UserServer.exe
初回起動時の設定
- 初回起動時に質問が表示され,その結果として UserServer_Config.xml が生成される.
- Connection String for Database には MySQLに設定したデータベースの情報を入力する.
- Connection String for Database などにわざと値を入力しないで OpenSim.Grid.UserServer.exe をクラッシュさせ,後で UserServer_Config.xml を手動で修正しても良い.
- Default Inventory Server URI のポート番号は,通常は ROBUST Server を使用するので 8003 に変更する.
USER SERVER: Default Startup Message [Welcome to OGS]: Welcome to TEST Grid 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/]: http://127.0.0.1:8003/ USER SERVER: User Server (this) External URI for authentication keys [ http://localhost:8002/]: USER SERVER: Path to library control file [./inventory/Libraries.xml]: USER SERVER: DLL for database provider [OpenSim.Data.MySQL.dll]: USER SERVER: Connection String for Database []: Data Source=127.0.0.1;Database=opensim;User ID=opensim_user;Password=opensim_pass; 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]: USER SERVER: Enable LLSD login support [Currently used by libsl based clients/bots]? true/false [True]: USER SERVER: Enable Hypergrid login support [Currently used by GridSurfer-proxied clients]? true/false [True]: USER SERVER: Minimum Level a user should have to login [0 default] [0]: USER SERVER: Remote console access user name [Default: disabled] []: USER SERVER: Remote console access password [Default: disabled] []:
bin/UserServer_Config.xml
- 初回設定時に上記のように入力した場合は,次のような UserServer_Config.xml が生成される.
<Root> <Config default_startup_message="Welcome to TEST Grid" 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:8003/" default_authentication_server="http://localhost:8002/" library_location="./inventory/Libraries.xml" database_provider="OpenSim.Data.MySQL.dll" database_connect="Data Source=127.0.0.1;Database=opensim;User ID=opensim_user;Password=opensim_pass;" http_port="8002" http_ssl="False" default_X="1000" default_Y="1000" enable_llsd_login="True" enable_hg_login="True" default_loginLevel="0" console_user="" console_pass="" /> </Root>
Grid Server
起動
# cd OPENSIM_TOP_DIR/bin # mono OpenSim.Grid.GridServer.exe
初回起動時の設定
- 初回起動時に質問が表示され,その結果として GridServer_Config.xml が生成される.
- Connection String for Database には UserServer_Config.xmlと同様に MySQLに設定したデータベースの情報を入力する.
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 []: Data Source=127.0.0.1;Database=opensim;User ID=opensim_user;Password=opensim_pass; GRID SERVER: Http Listener port [8001]: GRID SERVER: Allow regions to register immediately upon grid server startup? true/false [True]: GRID SERVER: Remote console access user name [Default: disabled] []: GRID SERVER: Remote console access password [Default: disabled] []:
bin/GridServer_Config.xml
- 初回設定時に上記のように入力した場合は,次のような GridServer_Config.xml が生成される.
<Root> <Config 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="Data Source=127.0.0.1;Database=opensim;User ID=opensim_user;Password=opensim_pass;" http_port="8001" allow_forceful_banlines="TRUE" allow_region_registration="True" console_user="" console_pass="" /> </Root>
ROBUST Server
- 0.6.7 では Asset Server と Inventory Server は Redesigned OpenSim Basic Universal Server Technology (ROBUST)Server として統合された.
- Asset Server と Inventory Server を別々に起動することも可能だが,今後は "古い動作モード" とみなされる.
- 次期バージョン(0.6.8)では Grid Server も ROBUST Server に統合される.
設定
- OpenSim.Server.ini を作成する.
# cd OPENSIM_TOP_DIR/bin # cp OpenSim.Server.ini.example OpenSim.Server.ini # vi OpenSim.Server.ini 主に ConnectionString を設定する. 例) ConnectionString = "Data Source=localhost;Database=opensim;User ID=opensim_user;Password=opensim_pass;"
起動
# mono OpenSim.Server.exe
Messaging Server
起動
# cd OPENSIM_TOP_DIR/bin # mono OpenSim.Grid.MessagingServer.exe
初回起動時の設定
- 初回起動時に質問が表示され,その結果として MessagingServer_Config.xml が生成される.
- Connection String for Database には UserServer_Config.xmlと同様に MySQLに設定したデータベースの情報を入力する.
MESSAGING SERVER: Default User Server URI [ http://127.0.0.1:8002/]: MESSAGING SERVER: Key to send to user server [null]: MESSAGING SERVER: Key to expect from user server [null]: MESSAGING SERVER: Default Grid Server URI [ http://127.0.0.1:8001/]: MESSAGING SERVER: Key to send to grid server [null]: MESSAGING SERVER: Key to expect from grid server [null]: MESSAGING SERVER: Connection String for Database []: Data Source=127.0.0.1;Database=opensim;User ID=opensim_user;Password=opensim_pass; MESSAGING SERVER: DLL for database provider [OpenSim.Data.MySQL.dll]: MESSAGING SERVER: DLL for comms provider [OpenSim.Region.Communications.OGS1.dll]: MESSAGING SERVER: Http Listener port [8006]: MESSAGING SERVER: Use SSL? true/false [False]: MESSAGING SERVER: My Published IP Address [127.0.0.1]: MESSAGING SERVER: Remote console access user name [Default: disabled] []: MESSAGING SERVER: Remote console access password [Default: disabled] []:
bin/MessageingServer_Config.xml
- 初回設定時に上記のように入力した場合は,次のような messagingServer_Config.xml が生成される.
<Root> <Config default_user_server="http://127.0.0.1:8002/" user_send_key="null" user_recv_key="null" default_grid_server="http://127.0.0.1:8001/" grid_send_key="null" grid_recv_key="null" database_connect="Data Source=127.0.0.1;Database=opensim;User ID=opensim_user;Password=opensim_pass;" database_provider="OpenSim.Data.MySQL.dll" region_comms_provider="OpenSim.Region.Communications.OGS1.dll" http_port="8006" http_ssl="False" published_ip="127.0.0.1" console_user="" console_pass="" /> </Root>
Region Server
設定
- bin/OpenSim.ini
# cd OPENSIM_TOP_DIR/bin # cp OpenSim.ini.example OpenSim.ini # vi OpenSim.ini (最小限の変更例) gridmode = true inventory_server_url = "http://127.0.0.1:8003" ;Include-Standalone = "config-include/Standalone.ini" Include-Grid = "config-include/Grid.ini"
- bin/config-include/GridCommon.ini
# cd OPENSIM_TOP_DIR/bin # cp config-include/GridCommon.ini.example config-include/GridCommon.ini # vi config-include/GridCommon.ini (変更例) AssetServerURI = "http://localhost:8003" InventoryServerURI = "http://localhost:8003"
- bin/config-include/FlotsamCache.ini
# cd OPENSIM_TOP_DIR/bin # cp config-include/FlotsamCache.ini.example config-include/FlotsamCache.ini
起動
# cd OPENSIM_TOP_DIR/bin
# mono OpenSim.exe