How to Install Neo4j on Linux: A Beginner Guide

29.09.2024

Neo4j is a popular graph database management system that allows you to store and query graph data. If you are looking to install Neo4j on your Linux system, this beginner guide will walk you through the process step by step.

Rhomobile Beginner's Guide | Mobile | eBook

Prerequisites

Before you begin the installation process, make sure you have the following prerequisites:

Install & Use the APOC Utilities in Neo4j Desktop & Sandbox (#2 …
Jun 28, 2018 … Here we show how to install APOC in your Neo4j Desktop (really just one click). In Neo4j Sandbox and Neo4j Cloud, APOC comes already …
  • A Linux-based operating system (such as Ubuntu, CentOS, or Debian)
  • Access to the terminal with sudo privileges
  • Basic knowledge of working with the command line

Step 1: Update Package Repository

Before installing Neo4j, it’s a good practice to update the package repository to ensure you have the latest version of the software. Run the following commands in your terminal:

sudo apt update sudo apt upgrade

Step 2: Install Java

Neo4j requires Java to run, so you need to install it on your system. You can install OpenJDK, which is an open-source version of Java, using the following command:

sudo apt install default-jre

Step 3: Download and Install Neo4j

Now it’s time to download and install Neo4j on your Linux system. Follow these steps:

  1. Download the Neo4j Community Edition package from the official website or use the following command to download it directly:
wget https://neo4j.com/artifact.php?name=neo4j-community-4.3.5-unix.tar.gz
  1. Extract the downloaded package using the following command:
tar -xf neo4j-community-4.3.5-unix.tar.gz
  1. Move the extracted folder to the desired installation location:
sudo mv neo4j-community-4.3.5 /opt/neo4j

Step 4: Start Neo4j Server

After installing Neo4j, you can start the Neo4j server using the following command:

sudo /opt/neo4j/bin/neo4j start

Step 5: Access Neo4j Browser

Once the Neo4j server is running, you can access the Neo4j Browser by opening a web browser and navigating to http://localhost:7474. You will be prompted to set a new password for the default ‘neo4j’ user.

Step 6: Stop Neo4j Server

If you need to stop the Neo4j server for any reason, you can use the following command:

sudo /opt/neo4j/bin/neo4j stop

Conclusion

Congratulations! You have successfully installed Neo4j on your Linux system. You can now start exploring the world of graph databases and leverage Neo4j’s powerful features for your projects.

Yan Hadzhyisky

fullstack PHP+JS+REACT developer