1. Preparation
Download website
Or
wget http://download.redis.io/releases/redis-3.0.7.tar.gz
2. Redis compilation
Pass
CD redis-3.0.7/
into the Redis source directory, perform make to compile Redis;
Error 1
Processing
Yum Install GCC
Error 2
Make MALLOC=LIBC
(Error resolution Url:http://www.phperz.com/article/14/1219/42002.html)
3. Redis Installation Configuration
Installing Redis, performing
Make install
The executable file generated by make compilation is copied to the/usr/local/bin directory;
Perform
./utils/install_server.sh
Redis can boot with the system after configuring the Redis configuration.
Other configuration options are good by default, executable path to be entered manually.
4. Redis Service view, open, close
1, through the Ps-ef|grep redis command to view the Redis process;
Confirmation has been started and can be closed via kill-9 3284
2. Enable Redis service operation through
1. Direct start (execute file./redis-server)
2. Background boot
/usr/local/bin/redis-server/etc/redis/6379.conf
/usr/local/bin/redis-server: Execute File Client
/etc/redis/6379.conf configuration files configured above
Test, go to the client to execute the file directory, execute the./redis-cli to perform the operation directly
3. Turn off Redis service operation through/
./redis-cli-p 6379 Shutdown
Redhat installing Redis Service on AWS