How to install Neo4j on Centos

prabhin mp
2 min readAug 21, 2018

Neo4j is the world’s leading graph database. It is built from the ground up to be a graph database, meaning that its architecture is designed for optimizing fast management, storage, and the traversal of nodes and relationships. Therefore, relationships are described as first-class citizens in Neo4j.

Let’s see how to install Neo4j

Prerequisites

Minimum 2GB RAM
JDK 1.8 required,if not installed click here
OS used here is CentOS.

Install Instructions

SSH onto the server then run the following commands

sudo sucd /tmp

add the GPG Key

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

Add the repository

cat <<EOF> /etc/yum.repos.d/neo4j.repo
[neo4j]
name=Neo4j Yum Repo
baseurl=http://yum.neo4j.org
enabled=1
gpgcheck=1
EOF

If you wish to install a certain version of Neo4J then run a command like the one below replace the version number as required

yum -y install neo4j-3.4.5

If you just want the latest version run the alternative below command instead

yum -y install neo4j

edit /etc/neo4j/neo4j.conf

vim /etc/neo4j/neo4j.conf

Remove the # from the line below in the file

#org.neo4j.server.webserver.address=0.0.0.0

Restart the service

service neo4j restart

To have this run as a service run these commands

chkconfig --add neo4j
chkconfig neo4j on

Log into Neo4J on

http://<IP Address>:7474

The default username and password are neo4j/neo4j you will be prompted to change the password after the first login.

--

--