[1] remote login linux
[2] switch to the directory, create a new folder redis
cd /usr/local
mkdir redis
[3] archive to download redis redis directory
wget http://download.redis.io/releases/redis-5.0.5.tar.gz
[4] decompression
[5] after the files are decompressed directory, use the make command to compile
Compile success
[6] cd src view
[7] performing handover to the src redis-server directory program
(1) Reception start, can not be closed
(2) into the background, you can turn off
[8] Close redis
(1) Switch to redis-3.2.9 / src / directory, ./redis-cli shutdown execution
- recommended to use this way, redis data to complete the operation, and then shut down.
(2) First use ps -ef | grep redis find out the process ID pid, then use the kill pid, direct or kill -9 pid
- This will not consider whether the current application data is performing an operation, directly close the application.
Related Bowen: