zoukankan      html  css  js  c++  java
  • 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.

     

  • 相关阅读:
    3月6日
    2月28日
    2月23日
    2月20日
    2月19日
    2月18日
    2月17日
    2月16日
    2月15日
    面试算法题——硬币找零
  • 原文地址:https://www.cnblogs.com/skyessay/p/6495553.html
Copyright © 2011-2022 走看看