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

[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个回答

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

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

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

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问