1、编译安装 tokyocabinet 数据库
wget http://tokyocabinet.sourceforge.net/tokyocabinet-1.4.28.tar.gztar zxvf tokyocabinet-1.4.28cd tokyocabinet-1.4.28/./configuremakemake install
在编译 时会报 configure: error: bzlib.h is required 的错误。
解决方法是: yum install bzip2-devel
2、编译安装tokyotyranttar zxvf tokyotyrant-1.1.41.tar.gzcd tokyotyrant-1.1.41
./configuremakemake install
whereis ttserver -> /usr/local/bin/ttserver
/usr/local/sbin
ttserver -host 127.0.0.1 -port 1978 -thnum 8 -dmn -pid /var/db/ttserver/ttserver.pid -log /var/db/ttserver/ttserver.log -le -ulog /var/db/ttserver/ -ulim 128m
/usr/local/bin/ttserver -host 192.168.0.3 -port 15000 -thnum 8 -dmn -pid /tt/zzyj/15000/ttserver.pid -log /tt/zzyj/15000/ttserver.log -le -ulog /tt/zzyj/15000/ -ulim 128m -sid 81 -rts /tt/zzyj/15000/ttserver.rts /tt/zzyj/15000/database.tch#bnum=1000000/usr/local/bin/ttserver -host 192.168.0.3 -port 15001 -thnum 8 -dmn -pid /tt/zzyj/15001/ttserver.pid -log /tt/zzyj/15001/ttserver.log -le -ulog /tt/zzyj/15001/ -ulim 128m -sid 82 -rts /tt/zzyj/15001/ttserver.rts /tt/zzyj/15001/database.tch#bnum=1000000/usr/local/bin/ttserver -host 192.168.0.3 -port 16000 -thnum 8 -dmn -pid /tt/zzyj/16000/ttserver.pid -log /tt/zzyj/16000/ttserver.log -le -ulog /tt/zzyj/16000/ -ulim 128m -sid 83 -rts /tt/zzyj/16000/ttserver.rts /tt/zzyj/16000/database.tch#bnum=1000000/usr/local/bin/ttserver -host 192.168.0.3 -port 16001 -thnum 8 -dmn -pid /tt/zzyj/16001/ttserver.pid -log /tt/zzyj/16001/ttserver.log -le -ulog /tt/zzyj/16001/ -ulim 128m -sid 84 -rts /tt/zzyj/16001/ttserver.rts /tt/zzyj/16001/database.tch#bnum=1000000/usr/local/bin/ttserver -host 192.168.0.3 -port 16020 -thnum 8 -dmn -pid /tt/zzyj/16020/ttserver.pid -log /tt/zzyj/16020/ttserver.log -le -ulog /tt/zzyj/16020/ -ulim 128m -sid 85 -rts /tt/zzyj/16020/ttserver.rts /tt/zzyj/16020/database.tch#bnum=1000000
ps uax |grep ttserver
引用
同一台MySQL服务器启动多个端口