【发布时间】:2017-10-01 03:20:20
【问题描述】:
我正在开发 Centos(CentOS Linux 版本 7.3.1611),并尝试使用 Cassandra(3.0.9)。安装很容易理解,到目前为止一切都很好。但是当我启动 Cassandra(使用systemctl start cassandra)时,服务是:
“active (exited)”而不是“active (running)”。
[root@localhost ~]# systemctl status cassandra
● cassandra.service - SYSV: Starts and stops Cassandra
Loaded: loaded (/etc/rc.d/init.d/cassandra; bad; vendor preset: disabled)
Active: active (exited) since Wed 2017-05-03 12:06:54 CEST; 5s ago
Docs: man:systemd-sysv-generator(8)
Process: 9337 ExecStart=/etc/rc.d/init.d/cassandra start (code=exited, status=0/SUCCESS)
May 03 12:06:54 localhost.localdomain systemd[1]: Starting SYSV: Starts and stops Cassandra...
May 03 12:06:54 localhost.localdomain su[9344]: (to cassandra) root on none
May 03 12:06:54 localhost.localdomain cassandra[9337]: Starting Cassandra: OK
May 03 12:06:54 localhost.localdomain systemd[1]: Started SYSV: Starts and stops Cassandra.
我决定重启服务,使用systemctl restart cassandra,但是停止过程有问题:
[root@localhost ~]# systemctl restart cassandra
[root@localhost ~]# systemctl status cassandra
● cassandra.service - SYSV: Starts and stops Cassandra
Loaded: loaded (/etc/rc.d/init.d/cassandra; bad; vendor preset: disabled)
Active: active (exited) since Wed 2017-05-03 12:15:50 CEST; 32s ago
Docs: man:systemd-sysv-generator(8)
Process: 9478 ExecStop=/etc/rc.d/init.d/cassandra stop (code=exited, status=1/FAILURE)
Process: 9508 ExecStart=/etc/rc.d/init.d/cassandra start (code=exited, status=0/SUCCESS)
May 03 12:15:49 localhost.localdomain systemd[1]: cassandra.service: control process exited, code=exited status=1
May 03 12:15:49 localhost.localdomain systemd[1]: Unit cassandra.service entered failed state.
May 03 12:15:49 localhost.localdomain systemd[1]: cassandra.service failed.
May 03 12:15:49 localhost.localdomain systemd[1]: Starting SYSV: Starts and stops Cassandra...
May 03 12:15:49 localhost.localdomain su[9515]: (to cassandra) root on none
May 03 12:15:50 localhost.localdomain cassandra[9508]: Starting Cassandra: OK
May 03 12:15:50 localhost.localdomain systemd[1]: Started SYSV: Starts and stops Cassandra.
你有解决这个问题的想法吗?谢谢你:)
祝你有美好的一天。
【问题讨论】:
-
嗨!你能解释一下我的问题有什么问题吗?这是第一次,我必须学习!
-
您的问题模式看起来不错!此外,您可以结帐How to create a Minimal, Complete, and Verifiable example -谢谢
-
能否也添加 Centos 版本和 Cassandra 版本?
-
完成! centos 7.3,cassandra 3.0.9
-
你的
system.log告诉你什么了吗?