Neo4j installation and encountered problems

neo4j download address: download address

1. Configure environment variables

NEO4J_HOME

如:NEO4J_HOME=D:\software\neo4j-community-4.4.18

Add the environment variable to the path %NEO4J_HOME%\bin

2. Start the service

Run cmd as an administrator, start the command  neo4j.bat console

The startup is successful and the following information is displayed

C:\Windows\system32>neo4j.bat console
Directories in use:
home:         D:\software\neo4j-community-4.4.18
config:       D:\software\neo4j-community-4.4.18\conf
logs:         D:\software\neo4j-community-4.4.18\logs
plugins:      D:\software\neo4j-community-4.4.18\plugins
import:       D:\software\neo4j-community-4.4.18\import
data:         D:\software\neo4j-community-4.4.18\data
certificates: D:\software\neo4j-community-4.4.18\certificates
licenses:     D:\software\neo4j-community-4.4.18\licenses
run:          D:\software\neo4j-community-4.4.18\run
Starting Neo4j.
2023-03-16 02:40:49.366+0000 INFO  Starting...
2023-03-16 02:40:50.198+0000 INFO  This instance is ServerId{0b37c696} (0b37c696-3a07-4a6d-84d0-24aad0019d17)
2023-03-16 02:40:51.403+0000 INFO  ======== Neo4j 4.4.18 ========
2023-03-16 02:40:53.090+0000 INFO  Performing postInitialization step for component 'security-users' with version 3 and status CURRENT
2023-03-16 02:40:53.090+0000 INFO  Updating the initial password in component 'security-users'
2023-03-16 02:40:54.127+0000 INFO  Bolt enabled on activate.navicat.com:7687.
2023-03-16 02:40:54.809+0000 INFO  Remote interface available at http://localhost:7474/
2023-03-16 02:40:54.813+0000 INFO  id: EBCA901C8B4EDDEB1AB9623F2BA03B940712D22AF0B63122604729B897469555
2023-03-16 02:40:54.813+0000 INFO  name: system
2023-03-16 02:40:54.814+0000 INFO  creationDate: 2023-03-16T02:17:25.514Z
2023-03-16 02:40:54.814+0000 INFO  Started.

The access address is in the startup information:  http://localhost:7474/

Default login username and password neo4j

3. Start error reporting

警告: ERROR! Neo4j cannot be started using java version 1.8.0_241
警告: * Please use Oracle(R) Java(TM) 11, OpenJDK(TM) 11 to run Neo4j Server.
* Please see https://neo4j.com/docs/ for Neo4j installation instructions.
Invoke-Neo4j : This instance of Java is not supported
所在位置 D:\software\neo4j-community-4.4.18\bin\neo4j.ps1:21 字符: 7
+ Exit (Invoke-Neo4j -Verbose:$Arguments.Verbose -CommandArgs $Argument ...
+       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-Neo4j

The cause of the problem: the jdk version is too low 

Problem solving method

a: Upgrade jdk version

b: Add set "JAVA_HOME=D:\software\jdk-11.0.2" in the first line of the neo4j.bat file to specify the jdk directory

Guess you like

Origin blog.csdn.net/fengxing_2/article/details/129581074