简体   繁体   中英

Unable to start neo4j service on Linux

We followed the steps to install neo4j and create service from installation link

We were able to create the service on our linux machine but its giving the following Error of Java path.

[root@localhost Desktop]# service neo4j-service status
which: no java in (/sbin:/usr/sbin:/bin:/usr/bin)
ERROR: Unable to find java. (Cannot execute )
* Please use Oracle(R) Java(TM) 7 or OpenJDK(TM) to run Neo4j Server.
* Please see http://docs.neo4j.org/ for Neo4j Server installation instructions.[root@localhost Desktop]# 

On echo $JAVA_HOME = /usr/java/jdk1.7.0_71/bin/java

On echo $PATH= /usr/local/apache2/bin:/usr/java/jdk1.7.0_71/bin:/usr/local/apache2/bin:/usr/java/jdk1.7.0_71/bin:/usr/lib/qt-3.3/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/root/bin:/root/bin

Where is the problem in starting the service?

尝试

sudo ln -s  /usr/java/jdk1.7.0_71/bin/java /usr/bin

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM