Warning: no config file specified, using the default config. In order to specify a config file us...

启动redis报出这个错误,是说redis.conf的路径存在问题
redis设置了后台启动后 redis.conf文件的路径也需要作出修改

[root@php src]# ./redis-server 
10169:C 17 Mar 15:47:05.380 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
10169:C 17 Mar 15:47:05.380 # Redis version=4.0.10, bits=64, commit=00000000, modified=0, pid=10169, just started
10169:C 17 Mar 15:47:05.380 # Warning: no config file specified, using the default config. In order to specify a config file use ./redis-server /path/to/redis.conf
10169:M 17 Mar 15:47:05.380 # Creating Server TCP listening socket *:6379: bind: Address already in use
[root@php src]# find / -name redis.conf
/root/redis-4.0.10/redis.conf
/usr/local/redis/etc/redis.conf
^C
[root@php src]# ./redis-server /usr/local/redis/etc/redis.conf
10196:C 17 Mar 15:47:35.883 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
10196:C 17 Mar 15:47:35.883 # Redis version=4.0.10, bits=64, commit=00000000, modified=0, pid=10196, just started
10196:C 17 Mar 15:47:35.883 # Configuration loaded
[root@php src]# 

你可能感兴趣的:(Warning: no config file specified, using the default config. In order to specify a config file us...)