Warning: no config file specifie
2020-04-08 本文已影响0人
一位先生_
Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf

提示告诉你,未指定配置文件,这里需要我们指定配置文件 redis.conf
解决方案:
使用find命令查找redis.conf文件
find / -name redis.conf

然后使用启动命令
cd /home/redis-4.1.1/src
redis-server /etc/redis.conf 或者你的是 ./redis-server /etc/redis.conf
然后使用命令
ps aux | grep redis
或者
netstat -ntlp
查看到redis服务已经开启,完美解决!