Redis Multi-instance

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.