如何在mac上安装/启动neo4j?

时间:2014-06-22 09:13:32

标签: macos neo4j install

我尝试以两种方式在mac / Maverics上安装neo4j:

1)从http://www.neo4j.org/下载zip,同时我安装了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)然后我用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.

3 个答案:

答案 0 :(得分:14)

使用起来更简单:brew install neo4j

答案 1 :(得分:1)

为了将来参考,也可以使用Docker安装它:

docker run --publish=7474:7474 --publish=7687:7687 --name neo4j --volume=$HOME/neo4j/data:/data neo4j:3.3

答案 2 :(得分:0)

在我看来,您遇到的问题只是由于您的特定本地设置。