How to Install Neo4j Server on Centos/RHEL

5/15/2015

Run the following commands to download and import neotechnology's public gpg key into the rpm keyring

cd /tmp
wget http://debian.neo4j.org/neotechnology.gpg.key
sudo rpm --import neotechnology.gpg.key

Create the neo4j repo file using you editor of choice and add it to the yum repos definition directory. Add the following lines to the neo4j.repo file

[neo4j]
name=Neo4j Yum Repo
baseurl=http://yum.neo4j.org
enabled=1
gpgcheck=1

nano neo4j.repo
sudo cp neo4j.repo /etc/yum.repos.d/

Finally run the command to install neo4j
sudo yum install neo4j

Here are some things to note with the install:
  • - An java jdk (openjdk) is installed and configured for you even if you already have one on the server.
  • - The neo4j binaries are installed to /usr/share/neo4j
  • - The neo4j properties files are installed to /etc/neo4j
  • - The default/initial database location is /var/lib/neo4j
  • - Neo4j is installed as a service in the stopped state. You can start it by running sudo service neo4j start. By default, the neo4j instance is only accessible via http://localhost:7474/. If you want to enable outside access, you need to uncomment the line in the neo4j-server.properties file: #org.neo4j.server.webserver.address=0.0.0.0 and restart the server.


You Might Also Like

3 comments

  1. You made some decent points there. I looked on the internet to learn more about the issue and found most people will go along with your views on this site. netflix member login

    ReplyDelete
  2. Hellow, great article. But i have an problem.

    I install Centos and Neo4j on the remote server (VPS), The instalation run well.
    but how to access it from the browser..?

    I try to access from:7474 but it ir error like:

    ERR_CONNECTION_TIMED_OUT

    Please if you can help me solving this issue.

    ReplyDelete