CentOS6.5 install Redis3.0 stable Edition
1: Download
wget http://download.redis.io/releases/redis-3.0.0.tar.gz
2: Extract
tar zxvf redis-3.0.0.tar.gz
3: Enter the decompressed Redis folder and execute make compilation (gcc is required)
4: the installation is successful at this time, and the next step is to start Redis3.0.
Src/redis-server src in the decompressed Redis folder
5: Redis3.0 is started successfully! However, Redis cannot execute other commands after running, so you need to run Redis in the background. Open a new command window to stop Redis.
src/redis-cli shutdown
6. modify the configuration daemonize of redis. conf to yes.
vim redis.conf
7: START Redis again
Src/redis-server redis. conf so that the configuration file will take effect
8: it is not convenient to start Redis. You need to enter the Redis folder to start the execution file. So after executing step 3 make, it is best to run the make install command directly after compilation to copy these executable programs to the/usr/local/bin directory so that you do not need to enter the complete path when executing the program in the future.
It doesn't matter if you haven't executed Step 3. Now, go to the Redis folder and directly execute make install (use root permission) sudo make install
9: At this time, Redis executable programs are in the/usr/local/bin directory, so you can run them directly.
It is best to copy redis. conf to the root directory and run the Redis command reids-server./redis. conf in the background.
10: Redis is successfully installed. After the Redis service process is started, you can use the redis-cli client to interact with the redis service.