Build and redis clusters of java connection

1. My redis installed in the opt directory

2. In order to prevent chaos I was redis operation irreparable situation occurs so I backed up files redis.conf

 

 3. cluster behind me in order to do a lot of points to build a copy of redis.conf

 

 4. Modify the configuration file

 Modify redis.conf files inside daemonize no change yes, let the service started in the background.

daemon daemon, also known as daemons

Start the specified configuration file

 

[root@localhost bin]# redis-server /myredis/redis.conf

 

[root@localhost bin]# redis-cli -p 6379

 

 

 

Because you may want to specify your own log file where it records its own log files placed where

 Cd /usr/local/redis_log/

Cd /usr/local/redis_dbfile/

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/zhulina-917/p/11746994.html