Connecting to 192.168.159.12:22...start or systemd method based on
Connection established. UPSTART_JOB or NOTIFY_SOCKET environment variables
To escape to local shell, press 'Ctrl+Alt+]'. "process is ready."
# They do not enable continuous liveness pings back to your supervisor.
Last login: Tue Mar 10 14:43:20 2020
[root@centos7002 ~]# ps -ef|grep redis
root 29747 29479 0 09:37 pts/0 00:00:00 grep --color=auto redis
[root@centos7002 ~]# redis-server /myredis/redis.conf
29762:C 11 Mar 2020 09:38:56.746 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
29762:C 11 Mar 2020 09:38:56.746 # Redis version=5.0.5, bits=64, commit=00000000, modified=0, pid=29762, just started
29762:C 11 Mar 2020 09:38:56.746 # Configuration loaded
[root@centos7002 ~]# redis-cli -p 6379
127.0.0.1:6379> ping
PONG
127.0.0.1:6379> set key1 hello
OK
127.0.0.1:6379> get key1
"hello"
127.0.0.1:6379> exit
[root@centos7002 ~]# ps -ef|grep redis
root 29763 1 0 09:38 ? 00:00:00 redis-server 127.0.0.1:6379
root 29815 29479 0 09:43 pts/0 00:00:00 grep --color=auto redis
[root@centos7002 ~]# redis-cli -p 6379
127.0.0.1:6379> ping
PONG
127.0.0.1:6379> shutdown
not connected> exit
[root@centos7002 ~]# redis-server /myredis/redis.conf
30558:C 11 Mar 2020 11:00:26.733 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
30558:C 11 Mar 2020 11:00:26.733 # Redis version=5.0.5, bits=64, commit=00000000, modified=0, pid=30558, just started
30558:C 11 Mar 2020 11:00:26.733 # Configuration loaded
[root@centos7002 ~]# redis-cli -p 6379
127.0.0.1:6379> ping
PONG
127.0.0.1:6379> shutdown
not connected> exit
[root@centos7002 ~]# cd /usr/local/bin
[root@centos7002 bin]# ls -l
总用量 32736
-rwxr-xr-x 1 root root 4366608 3月 10 14:20 redis-benchmark
-rwxr-xr-x 1 root root 8111816 3月 10 14:20 redis-check-aof
-rwxr-xr-x 1 root root 8111816 3月 10 14:20 redis-check-rdb
-rwxr-xr-x 1 root root 4806832 3月 10 14:20 redis-cli
lrwxrwxrwx 1 root root 12 3月 10 14:20 redis-sentinel -> redis-server
-rwxr-xr-x 1 root root 8111816 3月 10 14:20 redis-server
[root@centos7002 bin]# redis-benchmark
Writing to socket: Connection refused
Writing to socket: Connection refused
Writing to socket: Connection refused
Writing to socket: Connection refused
Writing to socket: Connection refused
Writing to socket: Connection refused
Writing to socket: Connection refused
Writing to socket: Connection refused
Writing to socket: Connection refused
Writing to socket: Connection refused
Writing to socket: Connection refused
Writing to socket: Connection refused<
redis_key 常用五大数据类型简介及关键字
最新推荐文章于 2023-07-10 09:54:13 发布