Reputation: 1559
I am trying out the community edition beta of Neo4j 2.0 for Windows but I can't see a way to install it as a service. The only way to start Neo4j appears to be through neo4j-community.exe, but that requires interactivity to push the start button. The batch file that existed in the 1.X release is gone.
Anyone have any ideas?
Upvotes: 8
Views: 5649
Reputation: 576
Use the powershell method now (the bat files are depreciated). There is a good guide here
C:\neo4j\bin\neo4j install-service
C:\neo4j\bin\neo4j restart
)If you run in to problems check the following:
Are you running powershell as an administrator?
Have you allowed powershell scripts to run (Set-ExecutionPolicy -ExecutionPolicy Unrestricted
- USE WITH CAUTION).
Have you installed java and set your JAVA_HOME environment variable to the java directory (ie. C:\Program Files\Java\jre1.8.0_65)?
Old answer (in case it works better for people)
Go to the neo4j download page, and choose other installs. Download the zip file.
Unzip it to C:\neo4j (not essential, but you can copy and paste the example scripts easier).
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 | Start-Neo4jServer
Upvotes: 9
Reputation: 15981
To extend @LameCoder's answer with some more steps that I had to do:
SETX JAVA_HOME "C:\Program Files\Java\jdk1.7.0_80"
. This sets the environment variable globally.<PATH>\bin\Neo4jInstaller.bat install
. You will get access denied if you didn't run the console elevated.http://localhost:7474
To run multiple instances
Neo4jInstaller.bat
to modify serviceName
and serviceDisplayName
propertiesorg.neo4j.server.webserver.port
and org.neo4j.server.webserver.https.port
to distinct portsTo run on a different host to the app server
org.neo4j.server.webserver.address
property in the neo4j-server.properties
file to expose the service hosts other than 127.0.0.1Upvotes: 4
Reputation: 1297
If you look here: http://www.neo4j.org/download/other_versions The windows version shows a .zip download. In the bin folder there are the bat files.
Run it as administrator and use the install
command to install it as a service.
Upvotes: 5