Database--Assign a new port to Redis

Source: Internet
Author: User
Assigning a new port to Redis

To assign a 8888 port to Redis, proceed as follows:
1, $REDIS _home/redis.conf re-copy, renamed to Redis8888.conf.
2, open the redis8888.conf configuration file, find the port 6379 line, change 6379 to 8888.
3. Move the redis8888.conf to the $redis_home/redis-svrs/taobaoany directory (Taobaoany for your own new).
4. Start Redis service: Redis-server/home/redis/redis-2.4.15/redis-svrs/taobaoany/redis8888.conf &
5, through the "ps-x | grep redis "View process, in the output information will see/home/redis/redis-2.4.15/redis-svrs/taobaoany/redis8888.conf
6, Redis-cli-p 8888, test whether the port was created successfully.

Database--Assign a new port to Redis

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.