Redis
__________________________________________________________________________________________________________________________________
Linux environment installed redis cluster
Install redis.
CDS to redis extract directory, and then execute the make & amp; & Make install command to install:
Can also see under/usr/local/bin redis installation file,
Ruby
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Install ruby2.5.3
Install command:
Yum install ruby
Check whether the installation success
Copy the redis directory file:
Copy files under the redis integration according to the need to choose
Redis start:/redis server/usr/local/redis cluster/redis7000/redis conf
Redis start:/redis server/usr/local/redis cluster/redis7001/redis conf
Redis start:/redis server/usr/local/redis cluster/redis7002/redis conf
Redis start:/redis server/usr/local/redis cluster/redis7003/redis conf
Redis start:/redis server/usr/local/redis cluster/redis7004/redis conf
Redis start:/redis server/usr/local/redis cluster/redis7005/redis conf
Redis start:/redis server/usr/local/redis cluster/redis7006/redis conf
The port 7000//modify for the same port number as the current folder name
Appendonly yes//specifies whether after each update operation for logging, by default Redis is asynchronous data is written to disk, if you don't open, may lead to a period of time when power is lost data, yes, "said storage manner, aof, will write operation records to the log
Cluster - enabled yes//open cluster pattern
Cluster -- config file nodes - 6380. The conf//save node configuration, created automatically, automatic updates (suggested name and port number)
Cluster node - 15000//cluster timeout, the timeout nodes exceeds this time no reaction is concluded that downtime
Ruby2.5.3
Install RVM configuration
1, the curl - L get. RVM. IO | stable bash - s
2, gpg2-409 b6b1796c275462a1703113804bb82d39dc0e3 recv - keys
3, the source/usr/local/RVM/scripts/RVM
4, RVM list known
5, RVM use against 2.4.1 - default
6,
The gem install: gem install redis
The service start
./redis - trib. Rb create -- replicas 127.0.0.1:1 7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005 127.0.0.1:7006
Find a service port to start the test
Redis - cli - p - 7001 - c
The connection is successful