https://redis.io/
tar -xzf redis-5.0.3.tar.gz
cd redis-5.0.3
make
mkdir -p /usr/local/redis/redis_1
mkdir -p /usr/local/redis/redis_2
mkdir -p /usr/local/redis/redis_3
mkdir -p /usr/local/redis/redis_4
mkdir -p /usr/local/redis/redis_5
mkdir -p /usr/local/redis/redis_6
port 7001
bind 172.20.10.12
requirepass 123456
daemonize yes
pidfile /var/run/redis_1.pid
cluster-enabled yes
cluster-config-file nodes_1.conf
cluster-node-timeout 10100
appendonly no
src/redis-server /usr/local/redis/redis_1/redis.conf
src/redis-server /usr/local/redis/redis_2/redis.conf
src/redis-server /usr/local/redis/redis_3/redis.conf
src/redis-server /usr/local/redis/redis_4/redis.conf
src/redis-server /usr/local/redis/redis_5/redis.conf
src/redis-server /usr/local/redis/redis_6/redis.conf
src/redis-cli --cluster create 172.20.10.12:7001 172.20.10.12:7002 172.20.10.12:7003 172.20.10.12:7004 172.20.10.12:7005 172.20.10.12:7006 -a 123456 --cluster-replicas 1
src/redis-cli --cluster check 172.20.10.12:7001 -a 123456
src/redis-cli -c -h 172.20.10.12 -p 7001 -a 123456
pkill redis
給大家推薦幾個(gè)好用的工具
創(chuàng)新互聯(lián)主營(yíng)林芝網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營(yíng)網(wǎng)站建設(shè)方案,成都app軟件開(kāi)發(fā),林芝h5微信小程序定制開(kāi)發(fā)搭建,林芝網(wǎng)站營(yíng)銷推廣歡迎林芝等地區(qū)企業(yè)咨詢另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無(wú)理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。