Tokyo Tyrant 简单使用

(1)、写数据,将数据“value”写入到“key”中:
curl -X PUT http://127.0.0.1:11211/key -d "hello world!"


(2)、读数据,读取“key”中数据:
curl http://127.0.0.1:11211/key


(3)、删数据,删除“key”:
curl -X DELETE http://127.0.0.1:11211/key


4. 列出 当前tt中所有到数据

./tcrmttest list -port 1978 127.0.0.1

5. 批量操作

./tcrmttest write [-port num] [-tnum num] [-nr] [-ext name] [-rnd] host rnum
  ./tcrmttest read [-port num] [-tnum num] [-mul num] host
  ./tcrmttest remove [-port num] [-tnum num] host
  ./tcrmttest typical [-port num] [-tnum num] host rnum
  ./tcrmttest table [-port num] [-tnum num] host rnum


6. 后台运行

./ttserver -dmn

7.指定log

./ttserver -ulog logDIR

8.存放pid
./ttserver -pid /tmp/ttserver.pid





你可能感兴趣的:(ext)