#predixy安装
#下载predixy-1.0.5-bin-amd64-linux.tar.gz,这个是编译好的,下载就可以使用
tar -xzvf predixy-1.0.5-bin-amd64-linux.tar.gz -C /usr/local
tar -xzvf predixy-1.0.5.tar.gz -C /usr/local
1.修改predixy.conf
Name siheng
Bind 0.0.0.0:7617
Include cluster.conf
2.修改cluster.conf
ClusterServerPool {
Password 123456
MasterReadPriority 60
StaticSlaveReadPriority 50
DynamicSlaveReadPriority 50
RefreshInterval 1
ServerTimeout 1
ServerFailureLimit 10
ServerRetryTimeout 1
KeepAlive 120
Servers {
+ 10.99.99.128:6381
+ 10.99.99.128:6382
+ 10.99.99.128:6383
+ 10.99.99.128:6391
+ 10.99.99.128:6392
+ 10.99.99.128:6393
}
}
3.启动predixy服务
predixy predixy.conf