我有一个运行Neo4j 3.0.5 Community Edition的Ubuntu 12.04 VM。我可以使用sudo /usr/bin/neo4j console
来启动它。
确定。那很棒。好的。
现在,我想在系统启动时启动Neo4j。所以,我编辑我的/etc/rc.local文件如下:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Start neo4j
/usr/bin/neo4j console &
echo test > /home/neoadmin/testfile
exit 0
当我重新启动时,我确实看到test
坐在testfile中。但没有neo4j。
我已经看到使用Neo4j 2(不再相关)的不同方法,或者将其用作已弃用的neo4j start
而不是推荐的neo4j console
的服务。
任何建议都将受到赞赏。