redis_key 常用五大数据类型简介及关键字

 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<

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值