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で管理しないと移動が複雑になりそうです。。。