记录在linux环境redis如何重启版本5.x

版本: 5.0.6

操作系统: linux

 

今天为redis增加了密码,配置文件方式。需要重启。

使用命令 redis-server  stop /restart 没有此命令,报config 的错。

经过一番查资料, redis的重启原来是在客户端里 shutdown

$ redis-cli

ip:6379>shutdown

Disconnect.

-------------------------

127.0.0.1:6379> ping
(error) NOAUTH Authentication required.

127.0.0.1:6379> auth password 登陆。

 

posted @ 2020-05-22 09:07  断舍离-重学JAVA之路  阅读(1357)  评论(0编辑  收藏  举报