Posted on
May 9, 2017
Updated on
March 15, 2023
Read time
3 mins read
Neo4j has been heading as a best Graph Database choice and many enterprises using it in tech stack for specific needs. At Techuz, we are implementing social networking concept on Neo4j for some projects and thoughts to share an article on installation which helps new developers to start working on Neo4j.
The overall installation process is simple and needs a basic understanding of commands execution. We have created video guide and below you can check step by step guide.
1. Before we install neo4j you have to firstly check java is installed in your system using below command.
java -showversion
2. If java is not installed in your system then install java using below command.
sudo add-apt-repository ppa:webupd8team /java // we need to run this command for install java.
sudo apt-get update // using this command all dependency will be updated
sudo apt-get install oracle-java8-installer // now using this command java will be installed
3. After installing java please update all packages using below command.
sudo apt-get update // using this command all dependency will be updated
4. After installing java now we will start the installation process for neo4j.
5. To get started with Installation of neo4j follow this commands.
1) wget -O - https://debian.neo4j.org/neotechnology.gpg.key | sudo apt-key add -
2) echo 'deb http://debian.neo4j.org/repo stable/' >/tmp/neo4j.list
3) sudo mv /tmp/neo4j.list /etc/apt/sources.list.d
4) sudo apt-get update // using this command all dependency will be updated
5) Well, there are two neo4j versions available:
i.e. one for community and one for enterprise,
The community version is a free version to use where as the enterprise is paid version.
Now we install neo4j using
1. To install community edition: sudo apt-get install neo4j=3.1.4
2. To install enterprise edition: sudo apt-get install neo4j-enterprise
6. After completing installation process restart your neo4j service using below command.
sudo service neo4j restart
7. Now access neo4j using below URL
http://localhost:7474/browser/
8. To access neo4j using IP address please follow below process.
1) First, open neo4j config file using below command.
sudo gedit /etc/neo4j/neo4j.conf
2) Now uncomment below line
dbms.connector.http.address
3) And put your IP address like below
dbms.connector.http.listen_address = 172.16.16.155:7474
dbms.connector.bolt.listen_address = 0.0.0.0:7687
4) After completion, restart your neo4j service using below command
sudo service neo4j restart
5) Now you can access neo4j using below URL
http://172.16.16.177:7474/browser/
I hope this tutorial helps to provide a great start on Neo4J and Techuz as leading Graph Database Design Company will post more articles on Neo4j.