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]