OSX(10.8.1)にOrientDBをインストールする方法
http://code.google.com/p/orient/wiki/Installation
1. javaのバージョンを確認する。
バージョンが1.6以上であることを確認。
> java -version java version "1.6.0_33" Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720) Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode)
2. ダウンロードする
- orientdb-graphed-1.1.0.zip
- orientdb-1.1.0.zip
2つバージョンがあるんですけど。。
違いの説明が見つからないので両方落としてみました。
> du -h orientdb-graphed-1.1.0 116K orientdb-graphed-1.1.0/benchmarks 44K orientdb-graphed-1.1.0/bin 24K orientdb-graphed-1.1.0/config 11M orientdb-graphed-1.1.0/databases/tinkerpop 11M orientdb-graphed-1.1.0/databases 13M orientdb-graphed-1.1.0/lib 0B orientdb-graphed-1.1.0/log 208K orientdb-graphed-1.1.0/www/js 184K orientdb-graphed-1.1.0/www/studio/css 116K orientdb-graphed-1.1.0/www/studio/images 16K orientdb-graphed-1.1.0/www/studio/img 208K orientdb-graphed-1.1.0/www/studio/js/codemirror 4.0K orientdb-graphed-1.1.0/www/studio/js/i18n 200K orientdb-graphed-1.1.0/www/studio/js/jit 1.0M orientdb-graphed-1.1.0/www/studio/js 16K orientdb-graphed-1.1.0/www/studio/styles/codemirror 84K orientdb-graphed-1.1.0/www/studio/styles/custom/images 144K orientdb-graphed-1.1.0/www/studio/styles/custom 92K orientdb-graphed-1.1.0/www/studio/styles/redmond/images 132K orientdb-graphed-1.1.0/www/studio/styles/redmond 316K orientdb-graphed-1.1.0/www/studio/styles 1.7M orientdb-graphed-1.1.0/www/studio 2.0M orientdb-graphed-1.1.0/www 26M orientdb-graphed-1.1.0 > du -h orientdb-1.1.0 116K orientdb-1.1.0/benchmarks 36K orientdb-1.1.0/bin 24K orientdb-1.1.0/config 112M orientdb-1.1.0/databases/demo 112M orientdb-1.1.0/databases 6.2M orientdb-1.1.0/lib 0B orientdb-1.1.0/log 208K orientdb-1.1.0/www/js 184K orientdb-1.1.0/www/studio/css 116K orientdb-1.1.0/www/studio/images 16K orientdb-1.1.0/www/studio/img 208K orientdb-1.1.0/www/studio/js/codemirror 4.0K orientdb-1.1.0/www/studio/js/i18n 200K orientdb-1.1.0/www/studio/js/jit 1.0M orientdb-1.1.0/www/studio/js 16K orientdb-1.1.0/www/studio/styles/codemirror 84K orientdb-1.1.0/www/studio/styles/custom/images 144K orientdb-1.1.0/www/studio/styles/custom 92K orientdb-1.1.0/www/studio/styles/redmond/images 132K orientdb-1.1.0/www/studio/styles/redmond 316K orientdb-1.1.0/www/studio/styles 1.7M orientdb-1.1.0/www/studio 2.0M orientdb-1.1.0/www 120M orientdb-1.1.0
これをみると違いはtinkerpop。tinkerpopを使う予定なのでこちらを使うようになるのかな。解凍するとgraphedの方が小さいのね。
> du -sh orientdb-1.1.0 120M orientdb-1.1.0 > du -sh orientdb-graphed-1.1.0 26M orientdb-graphed-1.1.0
あとはbin directoryに行って server.shを起動する。
> chmod +x server.sh > ./server.sh . .` ` , `:. `,` ,:` .,. :,, .,, ,,, . .,.::::: ```` ,` .::,,,,::.,,,,,,`;; .: `,. ::,,,,,,,:.,,.` ` .: ,,:,:,,,,,,,,::. ` ` `` .: ,,:.,,,,,,,,,: `::, ,, ::,::` : :,::` :::: ,:,,,,,,,,,,::,: ,, :. : :: : .: :,,,,,,,,,,:,:: ,, : : : : .: ` :,,,,,,,,,,:,::, ,, .:::::::: : : .: `,...,,:,,,,,,,,,: .:,. ,, ,, : : .: .,,,,::,,,,,,,: `: , ,, : ` : : .: ...,::,,,,::.. `: .,, :, : : : .: ,::::,,,. `: ,, ::::: : : .: ,,:` `,,. ,,, .,` ,,. `, GRAPH-DB Server `` `. `` ` 2012-09-01 03:21:36:451 INFO OrientDB Server v1.1.0 (build @BUILD@) is starting up... [OServer] 2012-09-01 03:21:36:725 INFO -> Loaded memory database 'temp' [OServer] 2012-09-01 03:21:36:829 INFO Listening binary connections on 0.0.0.0:2424 [OServerNetworkListener] 2012-09-01 03:21:36:831 INFO Listening http connections on 0.0.0.0:2480 [OServerNetworkListener] 2012-09-01 03:21:36:838 INFO Installing GREMLIN language v.2.1.0-SNAPSHOT [OGraphServerHandler] 2012-09-01 03:21:36:842 INFO OrientDB Server v1.1.0 is active. [OServer]air79:GraphDB
でもう一つTerminalをあげて、
./console.sh
でアスセスする。
インストレーションは以上!