记录在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 登陆。

猜你喜欢

转载自www.cnblogs.com/java2sap/p/12935165.html
今日推荐