Article Directory
Record the installation process to facilitate subsequent repeated installations.
1. Download neo4j
Download neo4j community edition.
Address: https://neo4j.com/download/other-releases/ Select windows community edition
I downloaded Neo4j4.3.2 (zip)
and unzip my path: C:\Program Files (x86)\neo4j-community-4.3.2
2. Download and install JAVA JDK
Download and install java jdk at https://www.oracle.com/java/technologies/javase-downloads.html
Neo4j4.3.2 requires jdk11 (the previously installed jdk1.8, the version does not meet the requirements, and later installed 16, and finally had to obediently install jdk11).
After I downloaded the file jdk-11.0.11_windows-x64_bin.exe, click Install and finish.
3. Configure environment variables
Create the home directory environment variable NEO4J_HOME, and set the home directory as the variable value.
Edit PATH, add %NEO4J_HOME%\bin
Fourth, try to start neo4j
Run the console as an administrator and enter the command neo4j console.
Open the browser and enter http://localhost:7474/ in the address bar.
If the picture above is displayed, the startup is successful.
Five, other configuration
1. Configuration service
Close the anti-virus security software, open cmd.
Install service:
neo4j install-service
Uninstall service:
neo4j uninstall-service
Start the service, stop the service, restart the service and query the status of the service:
neo4j start
neo4j stop
neo4j restart
neo4j status
After the service is installed successfully, you can start neo4j through the service form, without having to open the cmd background all the time.
Enter neo4j start to display
the view status
2. Set the default listening address
Set the default IP address for network monitoring. The default address is used to set the listening addresses of the three network protocols (Bolt, HTTP and HTTPs), that is, to set the property of the network protocol: listen_address address. By default, Neo4j only allows local host (localhost) access. If you want to remotely access the Neo4j database through the network, you need to modify the listening address to 0.0.0.0. After this setting, you can allow remote host access.
Find the neo4j.conf configuration file under the conf folder of the main directory, and modify the listening address.
6. Summary
The fifth step is optional, configure as needed. Pay attention to the matching of jdk version and neo4j version during the installation of other versions.