Now use the powershell method (bat files become obsolete). There is a good guide here
- Download the ZIP file ( download page ).
- Unzip it to C: \ neo4j
- Open PowerShell as an administrator and use:
C:\neo4j\bin\neo4j install-service - Use the same command for all other operations (i.e.
C:\neo4j\bin\neo4j restart )
If you encounter problems, check the following :
Are you running powershell as an administrator?
You are allowed to run powershell scripts ( Set-ExecutionPolicy -ExecutionPolicy Unrestricted - USE WITH CAUTION).
Have you installed java and set the JAVA_HOME environment variable to the java directory (e.g. C: \ Program Files \ Java \ jre1.8.0_65)?
Old answer (in case it works better for people)
Go to the neo4j download page and select other settings. Download the zip file.
Unzip it to C: \ neo4j (optional, but you can copy and paste script examples more easily).
Follow the instructions here in brief:
Type: Import-Module C:\Neo4j\bin\Neo4j-Management.psd1
To install the service, enter:
'C: \ Neo4j' | Initialize-Neo4jServer -ListenOnIPAddress 127.0.0.1 -PassThru | Install-Neo4jServer -PassThru | Launch Neo4jServer
source share