CentOS Detailed Installation Redis step

Source: Internet
Author: User

1. Download the latest stable version from the official website (http://redis.io)
2. Use the command to unzip the downloaded tar package: TAR–ZXVF redis-3.2.0.tar.gz
3. Enter the source directory via the command CD redis-3.2.0, execute the Make command (enter make directly and then enter. Redis-server, REDIS-CLI and other files will be generated in SRC directory after make
4. Directory unchanged, continue to execute make install, after execution will be generated in the/usr/local/bin directory Redis-server, REDIS-CLI and other files
5. Directory unchanged, execute./utils/install_server.sh configure Redis to boot with the system (some configuration will be asked during execution, you can directly enter without modification)
6. By Ps-ef|grep Redis command to see if the Redis process exists, the presence of Redis has started.
7. Start redis command: Service redis_6379 start
8. Turn off Redis command: Service redis_6379 stop
9. Restart Redis command: Service redis_6379 restart
10.Redis by default only from the local connection, so need to modify the configuration file, using VI open/etc/redis/6379.conf, you can see 62 lines of code for bind 127.0.0.1, change here to bind * Current machine ip*, for example
11. At this point, you can access Redis remotely on other machines.

CentOS Detailed Installation Redis step

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.