redis常见错误

1.启动redis报错,说明启动的路径没有配置对.

[root@localhost redis-6380]# src/redis-server 
10841:C 02 Mar 15:11:37.604 # Warning: no config file specified, using the default config. In order to specify a config file use src/redis-server /path/to/redis.conf
10841:M 02 Mar 15:11:37.606 * Increased maximum number of open files to 10032 (it was originally set to 1024).
10841:M 02 Mar 15:11:37.608 # Creating Server TCP listening socket *:6379: bind: Address already in use

在/etc/init.d/文件下检查自己的脚本文件

[root@localhost ~]# vi /etc/init.d/redis

 

2.启动哨兵报错,没有配置好 sentinel.conf 文件的redis名称,可以用 info replication 查看当前redis的名称

[root@localhost redis-6380]# src/redis-sentinel sentinel.conf
*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 69
>>> 'sentinel monitor mymaster 127.0.0.1 6379 2'
Duplicated master name.

 

posted on 2017-03-04 12:07  流年染指了悲伤  阅读(1732)  评论(0编辑  收藏  举报