Tokyo cabinet/tyrant install centos 64bit

bzlib.hが無いと言われたので

# yum install bzip*
================================================================================
 Package             Arch           Version               Repository       Size
================================================================================
Installing:
 bzip2-devel         i386           1.0.3-6.el5_5         updates          39 k
 bzip2-devel         x86_64         1.0.3-6.el5_5         updates          38 k
 bzip2-libs          i386           1.0.3-6.el5_5         updates          37 k
Updating:
 bzip2               x86_64         1.0.3-6.el5_5         updates          50 k
 bzip2-libs          x86_64         1.0.3-6.el5_5         updates          35 k

Transaction Summary
================================================================================
Install       3 Package(s)
Upgrade       2 Package(s)
# ./configure --enable-off64
# make
# make install
#================================================================
# Thanks for using Tokyo Cabinet.
#================================================================

ok ^-^.

[tokyotyrant-1.1.40]#
# ./configure
# make
# make install
#================================================================
# Thanks for using Tokyo Tyrant.
#================================================================

TEST

# /usr/local/sbin/ttservctl start
Starting the server of Tokyo Tyrant
Executing: ttserver -port 1978 -dmn -pid /var/ttserver/pid
Done

# make check

ずらずら動いて

..........time: 1.188
ok


#================================================================
# Checking completed.
#================================================================

# /usr/local/sbin/ttservctl stop
Stopping the server of Tokyo Tyrant
Sending the terminal signal to the process: 32339
Done

問題ないようです。

php tokyotyrantを入れる。

# pecl install tokyo_tyrant-0.3.0

Build process completed successfully
Installing '/usr/lib64/php/modules/tokyo_tyrant.so'
install ok: channel://pecl.php.net/tokyo_tyrant-0.3.0
configuration option "php_ini" is not set to php.ini location
You should add "extension=tokyo_tyrant.so" to php.ini

とりあえず

# vi /etc/php.d/tokyotyrant.ini
extension=tokyo_tyrant.so
# /etc/init.d/httpd configtest
Syntax OK
# /etc/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:        [OK]

object(tokyotyrantexception)#4 (8) { ["message":protected]=> string(49) “Unable to connect to database: connection refused”

実行OKです!サーバー側のiptablesを許可をして。
OKでした!一部機能をVPSへ移行完了。
しかしサーバーが多くなるとやはりDNSで管理しないと移動が複雑になりそうです。。。

This entry was posted on 日曜日, 11月 14th, 2010 at 10:06 PM and is filed under blog, Tokyo Cabinet. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Unityによるゲームを公開しております iOS/Android
https://itunes.apple.com/jp/app/lost-knight-3d-action/id900917032
https://play.google.com/store/apps/details?id=com.groundroad.runknight

各種開発支援・機能開発等小さいお仕事などもお請けしております。
unity開発支援, PHPシステム開発, javascript/html5 フロント開発, titanium mobileアプリ開発
お気軽にお問い合わせください
大崎・五反田近郊での対面でのお打ち合わせはいつでも可能です。