Tokyotyrant 実行スクリプト

http://1978th.net/tech/promenade.cgi?id=58

http://linux.papa.to/?date=20100315

http://alpha.mixi.co.jp/blog/?p=290

http://asakura.g.hatena.ne.jp/asakura-t/20100219/tokyo_tyrant

# cp /usr/local/sbin/ttservctl /etc/init.d/tokyotyrant/keywords
# vim /etc/init.d/tokyotyrant/keywords

上のほうを変更してみる。
# configuration variables
database = “keywords”
prog=”ttservctl”
cmd=”ttserver”
basedir=”/var/ttserver/$database”
port=”19781″
pidfile=”$basedir/pid”
#logfile=”$basedir/log”
#ulogdir=”$basedir/ulog”
ulimsiz=”64m”
#sid=1
#mhost=”remotehost1″
#mport=”1978″
#rtsfile=”$basedir/rts”
#dbname=”$basedir/$database.tch#bnum=1000000″
dbname=”$basedir/$database.tct#opts=l#apow=8#dfunit=2″
retval=0

実行してみる。
# chmod a+x /etc/init.d/tokyotyrant/keywords
# /etc/init.d/tokyotyrant/keywords start
Starting the server of Tokyo Tyrant
Executing: ttserver -port 19781 -dmn -pid /var/ttserver/keywords/pid -ulim 64m
Done

# ll /var/ttserver/keywords/
合計 4108
-rw-r–r– 1 root root 4198720 3月 28 18:45 keywords.tch

# /etc/init.d/tokyotyrant/keywords stop
Stopping the server of Tokyo Tyrant
Sending the terminal signal to the process: 3253
Done

OKぽい。

This entry was posted on 日曜日, 3月 28th, 2010 at 6:49 PM and is filed under server, Tokyo Cabinet. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

Unityによるゲームを公開しております iOS/Android
https://itunes.apple.com/jp/app/lost-knight-3d-action/id900917032
https://play.google.com/store/apps/details?id=com.groundroad.runknight

各種開発支援・機能開発等小さいお仕事などもお請けしております。
unity開発支援, PHPシステム開発, javascript/html5 フロント開発, titanium mobileアプリ開発
お気軽にお問い合わせください
大崎・五反田近郊での対面でのお打ち合わせはいつでも可能です。