zoukankan      html  css  js  c++  java
  • redis启动异常处理一例


    rm -rf /var/log/redis/redis.log

    echo "net.core.somaxconn= 1024" >> /etc/sysctl.conf
    echo "vm.overcommit_memory=1" >> /etc/sysctl.conf
    echo never > /sys/kernel/mm/transparent_hugepage/enabled
    sysctl -p

    [root@localhost ~]# service redis start
    Starting redis (via systemctl):  Job for redis.service failed because the control process exited with error code. See "systemctl status redis.service" and "journalctl -xe" for details.
    [FAILED]
    [root@localhost ~]# systemctl status redis.service
    ● redis.service - LSB: start and stop Redis server
       Loaded: loaded (/etc/rc.d/init.d/redis; bad; vendor preset: disabled)
       Active: failed (Result: exit-code) since Mon 2019-09-09 09:17:28 CST; 5s ago
         Docs: man:systemd-sysv-generator(8)
      Process: 3027 ExecStart=/etc/rc.d/init.d/redis start (code=exited, status=6)
    
    Sep 09 09:17:28 localhost.localdomain systemd[1]: Starting LSB: start and stop Redis server...
    Sep 09 09:17:28 localhost.localdomain systemd[1]: redis.service: control process exited, code=exited status=6
    Sep 09 09:17:28 localhost.localdomain systemd[1]: Failed to start LSB: start and stop Redis server.
    Sep 09 09:17:28 localhost.localdomain systemd[1]: Unit redis.service entered failed state.
    Sep 09 09:17:28 localhost.localdomain systemd[1]: redis.service failed.
  • 相关阅读:
    设计模式六大原则【转】
    2进制中1的个数
    最大子数组和
    八皇后问题
    读取tomcat下的文件夹路径
    <![CDATA[ ]]>
    数据库(第一范式,第二范式,第三范式)
    input设置disabled,经过strus2提交到后台,后台取不到值
    下载项目乱码
    jsp与Action值得对应
  • 原文地址:https://www.cnblogs.com/littlehb/p/11489796.html
Copyright © 2011-2022 走看看