Installation and service of Redis start --Redis

Creative Commons License Copyright: Attribution, allow others to create paper-based, and must distribute paper (based on the original license agreement with the same license Creative Commons )
1, the installation Redis

[root@instance-mtfsf05r]# wget http://download.redis.io/releases/redis-5.0.4.tar.gz

[root@instance-mtfsf05r]# tar zxvf redis-5.0.4.tar.gz

[root@instance-mtfsf05r]# cd redis-5.0.4

[root@instance-mtfsf05r redis-5.0.4]# make

2, start the Redis server

[root@instance-mtfsf05r redis-5.0.4]# src/redis-server
Here Insert Picture Description

3, start the Redis client for simple operation

[root@instance-mtfsf05r redis-5.0.4]# src/redis-server

[root@instance-mtfsf05r redis-5.0.4]# src/redis-cli
127.0.0.1:6379> set flag 1
OK
127.0.0.1:6379> get flag
"1"
127.0.0.1:6379>

Guess you like

Origin blog.csdn.net/Thanlon/article/details/93495115