redis进程死掉了,重启报错Could not connect to Redis at 127.0.0.1:6379: Connection refused ,/var/run/redis.pid exists, process is already running or crashed

  • A+
所属分类:LNMP

Could not connect to Redis,process is already running or crashed,redis,redis Connection refused,redis.pid,redis.pid exists,redis.pid exists process is already running or crashed,redis进程死掉了,重启报错Could not connect to Redis at 127.0.0.1:6379: Connection refused ,/var/run/redis.pid exists, process is already running or crashed

 

redis进程死掉了,重启报错如下

1
2
3
Could not connect to Redis at 127.0.0.1:6379: Connection refused
done
/var/run/redis.pid exists, process is already running or crashed

解决办法:

1
2
3
rm /var/run/redis.pid

service redis start

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: