Redis installation configuration steps under Linux environment [go]

Source: Internet
Author: User
Tags parent directory install redis

The steps to install Redis under Linux are as follows:

1, first download a Redis installation package, the official website is: https://redis.io/

2, under Linux decompression Redis: tar-zxvf redis-2.8.22.tar.gz

3, after the completion of the decompression, into the unpacked directory inside "" Redis-2.8.22 ", Command for CD redis-2.8.22

4, execute make command, if "/bin/sh:cc:command not Found" error occurs, because the system itself does not install the GCC environment. Now we can use Yum (CentOS) to install GCC, (this is in an external network environment directly online installation, if not the Internet can refer to the CentOS manual RPM package installation), after successful installation, you can execute the make command to compile Redis.

5, after the successful compilation, enter the SRC directory, create a redis run directory Mkdir/usr/local/redis, and then copy the SRC directory below the redis-cli and Redis-server to/usr/local/redis, Copy command: CP redis-cli Redis-server/usr/local/redis.

6. Run the command CD. /return to the parent directory, and copy the redis.conf to the/usr/local/redis.

7. Enter into the /usr/local/redis/directory and execute the command./redis-server, for example, you can see that the Redis service is already started. However, pressing CTRL + C breaks down and we want to set it to run in the background.

8, open the configuration file with VI redis.conf, find daemonize=no, change No to Yes, save and exit.

9, run the command "./redis-server redis.conf", if not an error, the representative of the Redis has successfully run in the background, you can also check whether the service is actually started.

10. After the server starts, execute "./redis-cli" and open the Redis client to test if Redis is working properly. at this point, the Redis installation is complete. http://blog.csdn.net/jinwufeiyang/article/details/70307611

Redis installation configuration steps under Linux environment [go]

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.