标签:文件路径 run use false fatal fat 启动 opp The
1、确认redis没运行。[root@localhost run]# /etc/init.d/kkmail_redis status redis is not running
2、删除pid文件(从配置文件里面获取pid文件路径),然后重启还是不行。
-rw-r--r-- 1 root root 5 8月 6 14:37 redis.pid
3、查看错误日志。
[root@localhost run]# cd /usr/local/kk-mail/log/redis/ [root@localhost redis]# tail -n 20 redis.log _.-``__ ''-._ _.-`` `. `_. ''-._ Redis 2.8.10 (00000000/0) 64 bit .-`` .-```. ```\/ _.,_ ''-._ ( ' , .-` | `, ) Running in stand alone mode |`-._`-...-` __...-.``-._|'` _.-'| Port: 6379 | `-._ `._ / _.-' | PID: 4807 `-._ `-._ `-./ _.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | http://redis.io `-._ `-._`-.__.-'_.-' _.-' |`-._`-._ `-.__.-' _.-'_.-'| | `-._`-._ _.-'_.-' | `-._ `-._`-.__.-'_.-' _.-' `-._ `-.__.-' _.-' `-._ _.-' `-.__.-' [4807] 06 Aug 14:37:52.782 # Server started, Redis version 2.8.10 [4807] 06 Aug 14:37:52.782 # Wrong signature trying to load DB from file [4807] 06 Aug 14:37:52.782 # Fatal error loading the DB: Invalid argument. Exiting.
4、删除rdb文件,然后重启redis服务
[root@localhost redis]# rm -f /usr/local/kk-mail/data/redis/data/dump.rdb [root@localhost redis]# /etc/init.d/kkmail_redis restart Stopping redis ... Could not connect to Redis at 127.0.0.1:6379: Connection refused Redis is stopped Starting Redis server...
5、去人redis已经可以成功启动了
[root@localhost redis]# /etc/init.d/kkmail_redis status redis ( pid 5219 ) is running
标签:文件路径 run use false fatal fat 启动 opp The
原文地址:http://blog.51cto.com/net881004/2155242