最新消息:

ubuntu10.04 ttserver安装配置V1.0

Ubuntu admin 3287浏览 0评论

Author:gaojinbo
Time:2011-12-8

ubuntu下安装ttserver
ubuntu 10.04

1.安装依赖包

apt-get install libzzip-dev libzip-dev zlib1g-dev libbz2-dev 

2.首先编译安装tokyocabinet数据库

wget http://fallabs.com/tokyocabinet/tokyocabinet-1.4.47.tar.gz
tar zxvf tokyocabinet-1.4.47.tar.gz
cd tokyocabinet-1.4.47/
./configure
make
make install
cd ../

3.然后编译安装tokyotyrant

wget http://fallabs.com/tokyotyrant/tokyotyrant-1.1.41.tar.gz
tar zxvf tokyotyrant-1.1.41.tar.gz
cd tokyotyrant-1.1.41/
./configure
make
make install

4.修改启动参数

vi /usr/local/sbin/ttservctl
#configuration variables
prog="ttservctl"
cmd="ttserver"
basedir="/www/ttserver"
port="11211"
pidfile="$basedir/pid"
#logfile="$basedir/log"
#ulogdir="$basedir/ulog"
ulimsiz="1024m"
#sid=1
#mhost="remotehost1"
#mport="1978"
#rtsfile="$basedir/rts"
dbname="$basedir/database.tcb#lmemb=10240#nmemb=20480#bnum=20000000"
retval=0

5.添加到开机自动运行

vi /etc/rc.local
/usr/local/sbin/ttservctl  start
netstat -antup

完成!

转载请注明:爱开源 » ubuntu10.04 ttserver安装配置V1.0

您必须 登录 才能发表评论!