linux centos7宝塔安装redis无法启动解决

目前发现的问题,linux centos版本中宝塔面板6.0和5.9版本安装的redis修改atuh后无法通过面板重启

经过本屌两个小时的入坑总结出以下解决方案  分享给大家!



bind绑定IP(修改绑定IP可能会存在安全隐患)

port绑定端口

requirepassredis密码留空代表没有设置密码


修改完以上参数需要重启服务才能生效,而宝塔面板上的重启时没有实际效果的!


鼎云博客


解决方案:


1.登录sh  查找redis安装目录

[root@yqdqm7zs ~]#  find / -name redis-cli

/www/server/redis/src/redis-cli

鼎云博客

2.前往目录重启redis

[root@yqdqm7zs ~]# cd /www/server/redis/src/

[root@yqdqm7zs src]# redis-cli shutdown

(error) NOAUTH Authentication required.

鼎云博客

P:redis 设置密码登录后,想关闭redis服务器,需要

redis-cli -a 密码 shutdown 

所以改为:

[root@yqdqm7zs src]# redis-cli -a 133814250 shutdown

Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.

鼎云博客

P:Warning: Using a password with '-a' or '-u' option on the command line interface may not be safe.

这段警告可以无视,只要密码正确此时redis已经重启成功!



鼎云博客
  • 最新评论
  • 总共0条评论