Debian 8.1上neo4j服务的奇怪行为

Debian 8.1上neo4j服务的奇怪行为,neo4j,debian,Neo4j,Debian,由于以下说明,我已在Debian 8.1上安装了neo4j: 现在,如果作为root用户,我用这样的neo4j服务启动neo4j service neo4j-service start 有时它会正常工作,但大多数时候,neo4j服务会超时。但有趣的是,neo4j确实已经启动了,我可以在浏览器中进行一些查询。但是neo4j服务告诉我它失败了: root@ns***:~# service neo4j-service start Job for neo4j-service.service faile

由于以下说明,我已在Debian 8.1上安装了neo4j:

现在,如果作为root用户,我用这样的neo4j服务启动neo4j

service neo4j-service start
有时它会正常工作,但大多数时候,neo4j服务会超时。但有趣的是,neo4j确实已经启动了,我可以在浏览器中进行一些查询。但是neo4j服务告诉我它失败了:

root@ns***:~# service neo4j-service start
Job for neo4j-service.service failed. See 'systemctl status neo4j-service.service' and 'journalctl -xn' for details.
root@ns***:~# systemctl status neo4j-service.service
● neo4j-service.service - LSB: Neo4j Graph Database server
 Loaded: loaded (/etc/init.d/neo4j-service)
 Active: failed (Result: timeout) since Fri 2015-10-16 19:03:08 CEST; 6min ago
Process: 24556 ExecStop=/etc/init.d/neo4j-service stop (code=exited, status=0/SUCCESS)
Process: 29730 ExecStart=/etc/init.d/neo4j-service start (code=killed, signal=TERM)

Oct 16 18:58:08 ns***.ip-91-***-***.eu neo4j-service[29730]: WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
Oct 16 18:58:08 ns***.ip-91-***-***.eu neo4j-service[29730]: Starting Neo4j Server...WARNING: not changing user
Oct 16 19:03:08 ns***.ip-91-***-***.eu systemd[1]: neo4j-service.service start operation timed out. Terminating.
Oct 16 19:03:08 ns***.ip-91-***-***.eu systemd[1]: Failed to start LSB: Neo4j Graph Database server.
Oct 16 19:03:08 ns***.ip-91-***-***.eu systemd[1]: Unit neo4j-service.service entered failed state.
有时它会告诉我服务启动正确,但无法停止。
大多数情况下,我必须自己结束进程才能正确地“重置所有内容”

你知道为什么会这样吗?

您是否知道Debian 8.1上的neo4j服务存在任何问题?

这种运行neo4j的方法已被弃用,您应该使用neo4j命令


或者您可以编写自己的服务包装,为此我建议您使用

谢谢,毕竟我使用了systemd服务来启动和停止neo4j。工作起来很有魅力!