Installing Neo4j on Ubuntu 16.04

Getting Started

In this tutorial, we’ll show you how to install Neo4j on an Alibaba Cloud Elastic Compute Service (ECS) instance with Ubuntu 16.04.

Installing Java

To install Neo4j on Ubuntu, we must install Java first. Java might not be installed by default. We can verify it using this command.

bash
java -version
bash
The program 'java' can be found in the following packages:
* default-jre
* gcj-5-jre-headless
* openjdk-8-jre-headless
* gcj-4.8-jre-headless
* gcj-4.9-jre-headless
* openjdk-9-jre-headless
Ask your administrator to install one of them
bash
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
bash
java -version
bash
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)

Installing Neo4j

After we are done installing Java, we can now safely install Neo4j. To start with we need to add the Neo4j repository to the apt package manager of your instance since it doesn’t come in your apt by default.

bash
wget -O - https://debian.neo4j.org/neotechnology.gpg.key | sudo apt-key add -
echo 'deb https://debian.neo4j.org/repo stable/' | sudo tee -a /etc/apt/sources.list.d/neo4j.list
sudo apt-get update
bash
sudo apt-get install neo4j=<current stable version>
bash
sudo service neo4j start
http://<YOUR_IP>:7474/browser
bash
sudo nano /etc/neo4j/neo4j.conf
bash
sudo service neo4j restart

Conclusion

Neo4j is a fast growing platform and has extensive use cases; there are endless possibilities that can be achieved using Neo4j. You can dig deeper into it using Neo4j by visiting its official docs to solve your own use case with one of its features. However, if you are planning on using it for production workloads, you should consider getting the enterprise edition.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alibaba Cloud

Alibaba Cloud

4.97K Followers

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com