Linux installation and configuration under Redis

[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:

http://www.bjpowernode.com/tutorial_redis/326.html

https://www.cnblogs.com/ccw869476711/p/11804017.html

Guess you like

Origin www.cnblogs.com/mobaiyu/p/12172446.html