linux下使用redis代理twmproxy(1)
linux下使用redis代理twmproxy(1)
twemproxy,又名nutracker,是一个快速,轻量级的代理程序,支持memcache 和redis协议。它主要用来降低后端缓存服务器的连接数。
目前的最新版本为0.3.0.git地址:https://github.com/yuyunliuhen/twemproxy。
编译:
- $get clone https://github.com/yuyunliuhen/twemproxy
- $cd twemproxy & ./configure --enable-debug=log & make
- $src/nutcracker --help
这样就已经编译成功了,这里从源代码目录启动,也可以通过make install 安装。
命令行选项:
- -t, --test-conf : test configuration for syntax errors and exit
测试配置文件是否正确,默认为conf/nutcracker.yml,详细内容是这样的:
评论暂时关闭