当前位置:网站首页>Detailed explanation of neo4j installation process

Detailed explanation of neo4j installation process

2022-07-07 07:22:00 Programmer base camp

In the installation neo4j Before , Need to install Java JRE, And configuration Java development environment , Then install neo4j service .

One 、CentOS Lower installation

1. download Neo4j

Go to the official website to download the latest neo4j, Choose the community version . Address :https://neo4j.com/download/other-releases/#releases

Download locally Neo4j The compressed package is uploaded to CentOS The server , command :scp neo4j-community-3.5.13-unix.tar.gz [email protected] The server ip:/usr/local.( Or upload it in other ways )

2. decompression

Will upload neo4j Decompress the package , command :tar -xzvf neo4j-community-3.5.13-unix.tar.gz

If you encounter the following problems during decompression :

 

This indicates that there is a problem with the compressed package , No download complete , Solve after downloading again .

3. start-up

After successful decompression Neo4j Start... In the directory , Get into Neo4j Under the table of contents , Start command :./bin/neo4j console

If you get the following information , That is the java Version is too low ,Neo4j The official demand is jdk1.8

ERROR: Unable to find Java executable.
* Please use Oracle(R) Java(TM) 8, OpenJDK(TM) or IBM J9 to run Neo4j.
* Please see https://neo4j.com/docs/ for Neo4j installation instructions.

If everything is normal , You will get the following prompt message :

 

  Open a browser locally , Input url:http:// The server ip:7474/browser, cannot access :

 

  Now ,① Check whether the firewall state of the server is off ;② Check 7474 Whether the port is occupied

If neither of the above is , Find the configuration file :cd /usr/local/neo4j-community-3.5.13/conf

Edit profile   vi  neo4j.conf

Find these two sentences , Remove the notation , Save and exit , restart neo4j Everything is normal after the service .

Two 、Windows Lower installation

1. download Neo4j

Go to the official website to download the latest neo4j, Choose the community version . Address :https://neo4j.com/download/other-releases/#releases

 

2. decompression

decompression Neo4j Compressed package .

Neo4j The application has the following main directory structure :

  1. bin Catalog : Used to store Neo4j Executable program of ;
  2. conf Catalog : Used to control the Neo4j Boot profile ;
  3. data Catalog : Used to store core database files ;
  4. plugins Catalog : Used to store Neo4j Plug in for ;

3. Configure environment variables

My computer → attribute → Advanced system setup → senior → environment variable
New variable :NEO4J_HOME, A variable's value :D:\Programming\neo4j-community-3.5.13
Modify variables :path, Added value :%NEO4J_HOME%\bin;

4. start-up

Open the command line , Get into neo4j Of bin Catalog , Enter the command :neo4j console. Open database , And in the browser  http://localhost:7474  View in NEO4J database  

default host yes bolt://localhost:7687, The default user is neo4j, The default password is :neo4j, First successful login to Neo4j After the server , Password reset required .

原网站

版权声明
本文为[Programmer base camp]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202130704049789.html