redis启动一直报错。后来
[root@liruilong redis-5.0.7]# redis-server redis.conf 30123:C 24 Nov 2020 10:10:57.716 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 30123:C 24 Nov 2020 10:10:57.716 # Redis version=5.0.7, bits=64, commit=00000000, modified=0, pid=30123, just started 30123:C 24 Nov 2020 10:10:57.716 # Configuration loaded [root@liruilong redis-5.0.7]# redis-server 30125:C 24 Nov 2020 10:11:34.924 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 30125:C 24 Nov 2020 10:11:34.924 # Redis version=5.0.7, bits=64, commit=00000000, modified=0, pid=30125, just started 30125:C 24 Nov 2020 10:11:34.924 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
原因可能是你已经启动了redis,所以直接redis-cli 就可以啦。
或者是默认的redis端口占用了,需要处理的是kill掉端口在重新启动就好啦。