tokyo cabinet:http://fallabs.com/tokyocabinet/tokyocabinet-1.4.48.tar.gz
tokyo tyrant:http://fallabs.com/tokyotyrant/tokyotyrant-1.1.41.tar.gz
扩展:http://pecl.php.net/get/tokyo_tyrant-0.7.0.tgz
tar zxvf tokyocabinet-1.4.28.tar.gz
cd tokyocabinet-1.4.28/
./configure
make
make install
cd ../
tar zxvf tokyotyrant-1.1.29.tar.gz
cd tokyotyrant-1.1.29/
./configure
make
make install
cd ../
ulimit -c unlimited
ulimit -c
ulimit -SHn 51200
find / -name ttservctl
ttservctl start
tar zxvf tokyo_tyrant-0.7.0.tgz
cd tokyo_tyrant-0.7.0
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install
cd ..
vim /usr/local/php/etc/php.ini
加上:
extension=tokyo_tyrant.so
:wq
service httpd restart