从Neo4j 3.0升级到3.1(以及随后的3.2)后,运行后出现以下错误sudo neo4j start:
/usr/share/neo4j/bin/neo4j: line 411: /var/run/neo4j/neo4j.pid: No such file or directory
Run Code Online (Sandbox Code Playgroud)
尽管如此,Neo4j在运行此命令后实际上正在运行.但是,之后我无法停止Neo4j sudo neo4j stop,因为没有PID.
我怎样才能解决这个问题?
笔记:
sudo apt upgradesudo mkdir /var/run/neo4j事先做好解决这个问题,但希望可能有更有效的解决方案.小智 13
使用安装包时,不应使用neo4j脚本启动/停止,而是使用已安装的服务.取决于您的Ubuntu版本
sudo service neo4j {start|stop|restart}
Run Code Online (Sandbox Code Playgroud)
要么
sudo systemctl {start|stop|restart} neo4j
Run Code Online (Sandbox Code Playgroud)
有关详细信息,请查看http://neo4j.com/docs/operations-manual/current/installation/linux/debian/和http://neo4j.com/docs/operations-manual/current/installation/linux/systemd/.
希望这会有所帮助,汤姆
PS注意,在不使用服务的情况下启动/停止可能已经使用错误的用户(root而不是neo4j)启动了Neo4j,因此文件现在可能拥有错误的所有权!