Connecting to 192.168.159.12:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.
Last login: Wed Mar 25 19:01:32 2020 from 192.168.159.1
[root@centos7002 ~]# cd /usr/local/bin/
[root@centos7002 bin]# redis-server /myredis/redis_aof.conf
27168:C 25 Mar 2020 20:47:55.941 # oO0OoO0OoO0Oo Redis is starting oO0OoO
27168:C 25 Mar 2020 20:47:55.941 # Redis version=5.0.5, bits=64, commit=0
27168:C 25 Mar 2020 20:47:55.941 # Configuration loaded
[root@centos7002 bin]# redis-cli -p 6379
127.0.0.1:6379> ping
PONG
127.0.0.1:6379> keys *
1) "k5"
2) "k3"
3) "k1"
4) "k2"
5) "k4"
127.0.0.1:6379> flushdb
OK
127.0.0.1:6379> keys *
(empty list or set)
127.0.0.1:6379> set key value [expiration EX seconds|PX milliseconds] [N
127.0.0.1:6379> set key value [expiration EX seconds|PX milliseconds] [N
127.0.0.1:6379> set s value [expiration EX seconds|PX milliseconds] [NX|
127.0.0.1:6379> set se value [expiration EX seconds|PX milliseconds] [NX
127.0.0.1:6379> set set value [expiration EX seconds|PX milliseconds] [N
127.0.0.1:6379> set se value [expiration EX seconds|PX milliseconds] [NX
127.0.0.1:6379> set s value [expiration EX seconds|PX milliseconds] [NX|
127.0.0.1:6379> set key value [expiration EX seconds|PX milliseconds] [N
127.0.0.1:6379> set key value [expiration EX seconds|PX milliseconds] [N
127.0.0.1:6379> set key value [expiration EX seconds|PX milliseconds] [N
127.0.0.1:6379> set key value [expiration EX seconds|PX m