qq_42934929
zhangyuesheng666
采纳率45.5%
2019-04-03 14:30 阅读 2.1k

启redis服务时报错,帮忙看下

5

[root@redhat ~]# 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@redhat ~]#
[root@redhat ~]#
[root@redhat ~]# service redis status
鈼[0m redis.service - SYSV: Redis is an open source, advanced key-value store.
Loaded: loaded (/etc/rc.d/init.d/redis)
Active: failed (Result: exit-code) since Wed 2019-04-03 14:25:04 CST; 3min 1s ago
Docs: man:systemd-sysv-generator(8)
Process: 4374 ExecStart=/etc/rc.d/init.d/redis start (code=exited, status=255)
CGroup: /system.slice/redis.service
鈹斺攢3305 /usr/local/redis/bin/redis-server *:6379

Apr 03 14:25:04 redhat systemd[1]: Starting SYSV: Redis is an open source, advanced key-value store....
Apr 03 14:25:04 redhat redis[4374]: Starting Redis Server: [ OK ]
Apr 03 14:25:04 redhat redis[4374]: /etc/rc.d/init.d/redis: line 29: [: $: integer expression expected
Apr 03 14:25:04 redhat redis[4374]: /etc/rc.d/init.d/redis: line 30: return: $: numeric argument required
Apr 03 14:25:04 redhat redis[4374]: /etc/rc.d/init.d/redis: line 66: exit: $: numeric argument required
Apr 03 14:25:04 redhat systemd[1]: redis.service: control process exited, code=exited status=255
Apr 03 14:25:04 redhat systemd[1]: Failed to start SYSV: Redis is an open source, advanced key-value store..
Apr 03 14:25:04 redhat systemd[1]: Unit redis.service entered failed state.
Apr 03 14:25:04 redhat systemd[1]: redis.service failed.
/etc/init.d/redis: line 66: exit: $: numeric argument required

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

3条回答 默认 最新

  • Anytime_man 无明之徒 2019-04-04 13:32

    直接上解决方案,辛苦一番,望给分
    https://baijiahao.baidu.com/s?id=1552330515936646&wfr=spider&for=pc

    点赞 1 评论 复制链接分享
  • weixin_44144932 rpmdeb 2019-04-03 16:10

    目测是启动脚本有问题,你检查下报错的行数

    点赞 评论 复制链接分享
  • qq_41623714 qq_41623714 2019-04-04 21:57

    你要打开启动脚本看下,看报错像是少参数,有的脚本要传参数的。

    点赞 评论 复制链接分享

相关推荐