Tokyo Tyrant安装

Standard
wget http://tokyocabinet.sourceforge.net/tokyocabinet-1.4.32.tar.gz
tar zxvf tokyocabinet-1.4.32.tar.gz
cd tokyocabinet-1.4.32
./configure
make
make install
 
wget http://tokyocabinet.sourceforge.net/tyrantpkg/tokyotyrant-1.1.33.tar.gz
tar zxvf tokyotyrant-1.1.33.tar.gz
cd tokyotyrant-1.1.33
./configure
make
make install
 
mkdir /ttserver
ttserver -host 127.0.0.1 -port 11211 -thnum 8 -dmn -pid /ttserver/ttserver.pid -log /ttserver /ttserver.log -le -ulog /ttserver/ -ulim 128m -sid 1 -rts /ttserver/ttserver.rts /ttserver/database.tch

备份及恢复

tcrmgr copy -port 11211 127.0.0.1 backup.tch
#kill ttserver
cp /backup.tch /ttserver/database.tch
ttserver -host 127.0.0.1 -port 11211 -thnum 8 -dmn -pid /ttserver/ttserver.pid -log /ttserver/ttserver.log -le -ulog /ttserver/ -ulim 128m -sid 1 -rts /ttserver/ttserver.rts /ttserver/database.tch

详细说明 http://tokyocabinet.sourceforge.net/tyrantdoc/

转载请注明出处 http://yemaosheng.com

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.