ubuntu下Redis的使用

redis-cli读取与写入

bjlthy@bjlthy-X99:~$
bjlthy@bjlthy-X99:~$ redis-cli -h 192.168.19.135 -p 6379
192.168.19.135:6379> get 192.168.19.70@info
"{\"connect\":true,\"count\":0}"
192.168.19.135:6379> set 192.168.19.70@info  "{\"connect\":true,\"count\":10}"
OK
192.168.19.135:6379> get 192.168.19.70@info
"{\"connect\":true,\"count\":5}"
192.168.19.135:6379> get 192.168.19.70@info
"{\"connect\":true,\"count\":3}"
192.168.19.135:6379> get 192.168.19.70@info
"{\"connect\":true,\"count\":1}"
192.168.19.135:6379> get 192.168.19.70@info
"{\"connect\":true,\"count\":0}"
192.168.19.135:6379> get 192.168.19.70@info
"{\"connect\":true,\"count\":0}"

参考博客

Failed to allocate directory watch: Too many open files

Ubuntu 安装&卸载 redis

Ubuntu下redis允许外部链接

WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is s

WARNING: The TCP backlog setting of 511.解决

ubuntu ntp时间同步服务器搭建与使用

1、ubuntu下关闭Redis守护/etc/init.d/redis-server stop

posted @ 2021-04-03 23:03  一只桔子2233  阅读(149)  评论(0编辑  收藏  举报