我尝试两种方法在Mac/Maverics上安装Neo4j:
1) 从http://www.neo4j.org/下载zip文件,同时安装JDK8。
$ /Users/xx/Downloads/neo4j-community-2.1.2/bin/neo4j-installer install
WARNING: this installer is deprecated and may not be the optimal way to install Neo4j on your system.
Please see the Neo4j Manual for up to date information on installing Neo4j.
Press any key to continue
2) 然后我使用Homebrew安装了它,安装成功了,但是当我尝试启动时:
$ neo4j start
Another server-process is running with [311], cannot start a new one. Exiting.
$ neo4j stop
ERROR: Neo4j Server not running
$ neo4j status
Neo4j Server is not running
$ neo4j install
Legacy install now lives in the 'neo4j-installer' script
问题是什么,如何安装/启动?
更新
PID为311的服务器是Java。所以我只需将其杀死,然后重新启动它,现在可以正常工作了。这是处理问题的正常方法吗?
$ kill 311
$ /usr/local/Cellar/neo4j/2.1.2/bin/neo4j start
Using additional JVM arguments: -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Dneo4j.ext.udc.source=homebrew -Djava.awt.headless=true
Starting Neo4j Server...WARNING: not changing user
process [1748]... waiting for server to be ready....... OK.
http://localhost:7474/ is ready.