codis快取叢集環境部署
mkdir -p $GOPATH/src/github.com/CodisLabs
cd $GOPATH/src/github.com/CodisLabs
git clone https://github.com/CodisLabs/codis.git -b release3.2
cd $GOPATH/src/github.com/CodisLabs/codis
make
編譯codis的一些元件
cd $GOPATH/src/github.com/CodisLabs/codis
啟動dashboard
nohup ./bin/codis-dashboard --ncpu=1 --config=config/dashboard.toml --log=dashboard.log --log-level=WARN >> /var/log/codis_dashboard.log &
./bin/codis-admin –remove-lock –product=codis-demo –zookeeper=127.0.0.1:2181
停止dashboard:
./bin/codis-admin –dashboard=本機ip:18080 –shutdown
啟動proxy
修改/config/proxy.toml的0.0.0.0的ip改為本機ip
nohup ./bin/codis-proxy --ncpu=1 --config=config/proxy.toml --log=proxy.log --log-level=WARN >> /var/log/codis_proxy.log &
停止
./bin/codis-admin –proxy=本機ip:11080 –auth=”” –shutdown
修改/config/redis.conf
pretected-mode no
啟動Codis FE
nohup ./bin/codis-fe –ncpu=1 –log=fe.log –log-level=WARN –zookeeper=127.0.0.1:2181 –listen=127.0.0.1:8081 &
原始碼中 admin 資料夾提供了一系列指令碼以便快速啟動、停止各個元件
啟動codis-dashboard
./admin/codis-dashboard-admin.sh start
待續