System Requirements: Open JDK 8 must be installed
You can use the following command to view the system Java environment
1 grep GCJ
1. Download the JDK and install
Official website: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
The version downloaded in this example is jdk-8u144-linux-x64.tar.gz
Unzip and place in the/usr/local/java/directory, as shown in
2. Modify the system environment variables to point the Java environment to the newly installed environment
1 vim/etc/profile23#在文件末尾添加如下环境变量 4 java_home=/usr/local/ Java 5 classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar6 path= $JAVA _home/ Bin: $PATH7 export Java_home CLASSPATH PATH
The modified file looks like the
3. Installing neo4j
Official website: https://neo4j.com/download/
This example version is: neo4j-community-3.2.2-unix.tar.gz
Unzip and place in the/usr/local/neo4j/directory as shown below
Modify the current user environment variable so that the current user can find the executable file for neo4j, using root (not recommended) in this example.
Can use other users, such as neo4j
1 vim/root/. Bash_profile2#在文件末尾加上如下代码 3 export path=/usr/local/neo4j/ Bin: $PATH
As shown
Make environment variables effective
1 source/root/.bash_profile
Modify the neo4j configuration file so that it can be accessed from the Remote Access console
1 vim/usr/local/neo4j/conf/neo4j.conf
Remove the previous comment, as shown in
4. Connection test
Start the NEO4J database,
Browser Connection test,
If the browser is not accessible, the SELinux and Iptables commands can be closed as follows
Setenforce 0
Iptables-f
Installation of Linux database neo4j