Database Reference
In-Depth Information
Installing Neo4j as a Linux service
Installing Neo4j as a Linux service has always been a preferred procedure for administrat-
ors, especially in production environments where you want your critical applications to be
available for use at the server start-up itself and to also survive user logons/logoffs. Not
only in the production environment but in other development / QA environments, users
have always preferred ease of installation, configuration, and up-gradation, which can only
happen when we install Neo4j as a service.
To install Neo4j as a Linux Service, let's perform the following steps:
1. Once the Neo4j archive is downloaded, browse the directory where you want to
extract the Neo4j server, untar the Linux / Unix Archive— tar -xf <loca-
tion of Archive file> , and refer to the top-level extracted directory as
$NEO4J_HOME .
2. Change the directory to $NEO4J_HOME , execute the sudo bin/neo4j
neo4j-installer install command, and follow the steps as they appear
on screen.
Note
The installation procedure will provide an option to select the user that will be used
to run the Neo4j server. You can supply any existing or new Linux user (it defaults
to Neo4j). In case a user is not present, then it will be created as a system account
and the ownership of $NEO4J_HOME/data will be moved to that user.
3. Once the installation is successfully completed, execute sudo service
neo4j-service start on the Linux console to start the server and sudo
service neo4j-service stop to gracefully stop the server.
4. Browse http://localhost:7474/browser/ and you should see the Neo4j
browser.
Note
Accessing the Neo4j browser on a remote machine
To access the Neo4j browser on a remote machine, enable and modify
org.neo4j.server.webserver.address in neo4j-serv-
er.properties and restart the server.
Search WWH ::




Custom Search