2014-06-22 197 views
2

我试图在Mac上安装/ Maverics Neo4j的方式有两种:如何在mac上安装/启动neo4j?

1)从http://www.neo4j.org/与此同时,我安装了JDK 8

$ /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)然后,我用自制安装了下载的zip,它是全成,但是当我尝试启动时:

$ 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 

什么问题,如何安装/启动?

UPDATE

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. 
+0

“PID为311的服务器是java”。 “java”是什么意思? – Rolf

+0

我打开了Monitor并向下滚动到PID 311,并且没有任何其他信息的进程调用java。 –

+0

嗯,好的。所以,当我回答时,我的猜测是这是完全特定于您的设置,而不是通常必须做的事情。 – Rolf

回答

0

在我看来,你面临的问题只是由于你特定的本地设置。

+0

是的,重复冲突的安装。无论是二进制下载还是自制软件 –

11

它更易于使用:brew install neo4j