分类: 其他平台
2014-04-10 18:46:55
1,1 下载twemproxy(nutcracker)的安装包
wget
1,2 解压安装
tar -zxvf nutcracker-0.3.0.tar.gz
cd nutcracker-0.3.0
./configure --prefix=/usr/local/nutcracker
make && make install
1,3 配置路径
新建配置文件
mkdir -p /usr/local/nutcracker/conf/nutcracker.yml
例子:nutcracker.yml
write:
listen: "0.0.0.0:2121"
hash: fnv1a_64
distribution: ketama
auto_eject_hosts: true
redis: true
server_retry_timeout: 2000
server_failure_limit: 1
servers:
- "172.21.21.156:6379:1 CPymtCache12"
- "172.21.12.160:6379:1 CPymtCache11"
1,4 启动twemproxy(nutcracker)
/usr/local/nutcracker/sbin/nutcracker –h
查看启动的参数