请参阅bash脚本 - 我的Java SDK和JRE升级到版本7 - 我很难过。
charless-mbp:~ charlesdibsdale$ java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
charless-mbp:~ charlesdibsdale$ neo4j stop
Instance running via launchd with PID 3196, stopping it...
charless-mbp:~ charlesdibsdale$ neo4j start
WARNING! You are using an unsupported version of the Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7.
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
Detected installation in launchd, starting it...
有关详细信息,请参阅here。
答案 0 :(得分:2)
您必须先从launchd中删除旧安装。
所以转到旧安装并执行bin/neo4j remove
然后您的新服务器应该没有问题地启动。