Multi-instance configuration for Redis
General Redis should not be too large, not more than 30G, if more than the use of multi-instance
#配置redis多实例很简单, as long as given a configuration file, as well as to specify in the configuration file, this instance of the Dump.rdb save path. and a different port number.
Mkdir-p/application/redis/data/cp/application/redis/conf/redis.conf/application/redis/data/grep "Port 6" redis.conf sed-i ' s/port 6379/port 6380/g ' redis.conf # #修改端口, the ports in multiple instances are the same grep "Port 6" redis.conf grep "dir./" Red Is.conf sed-i ' S#dir./#dir/application/redis/data/#g ' redis.conf # #修改多实例中的数据目录 grep "dir" redis.conf ll/applic Ation/redis/data/redis-server/application/redis/data/redis.conf & netstat-lnt redis-cli-h 10.0.0.3-p 6380 #默认情况下, if you do not specify a port, the default port 6378 is logged
Above is a complete creation of a multi-instance Redis method.
This article is from the "Struggle Bar" blog, please be sure to keep this source http://lvnian.blog.51cto.com/7155281/1712219
Redis Multi-instance