Redis is a C language development, compiler relies on the GCC environment, if there is no GCC environment, need to install Gcc:yum install gcc-c++
Installing version 3.0, version 3.0 mainly adds the Redis cluster functionality.
1. Download from official website
Http://download.redis.io/releases/redis-3.0.0.tar.gz
Copy the redis-3.0.0.tar.gz to the/usr/local
If you use Linux networking: wget http://download.redis.io/releases/redis-3.0.0.tar.gz
2. Extracting source code
TAR-ZXVF redis-3.0.0.tar.gz
3. Go to the extracted directory to compile
cd/usr/local/redis-3.0.0
Make
4. install to the specified directory, such as/usr/local/redis
cd/usr/local/redis-3.0.0
Make install Prefix=/usr/local/redis
5. Copy the configuration file to the installation directory
Enter the source directory, there is a copy of the configuration file redis.conf, and then copy it to the installation path
Cd/usr/local/redis
Cp/usr/local/redis-3.0.0/redis.conf/usr/local/redis/bin
6. List of files under installation directory bin
redis3.0 New Redis-sentinel is a Redis cluster management tool for high availability.
7. Start
Running Bin/redis-server directly will start in front-end mode, the disadvantage of front-end mode startup is that the SSH command window is closed and the Redis-server program ends, this method is not recommended.
Modify the redis.conf configuration file, daemonize Yes to the backend mode to start.
Redis-server redis.conf
Linux installation Redis