输入redis-server报错如下:
*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 388
'always-show-logo yes'
Bad directive or wrong number of arguments
确认不是配置文件问题:
可能是redis已经启动了
1.重启redis:
systemctl restart redis
2.直接进入客户端:
redis-cli
3.如果输入auth报错如下:
(error) ERR Client sent AUTH, but no password is set
那可能是因为你的redis-server启动的不对。
以我的为例我的redis-server在/bin和/usr/local/bin下都有redis命令。
4.启动时加上路径,如:
/usr/local/bin/redis-server /myredis/redis7.conf