Skip to content

Guidelines for Installing Neo4j on Ubuntu Version 24.04

Master the art of setting up Neo4j, an advanced graph database management system, on Ubuntu 24.04. Follow this easy-to-follow tutorial for a hassle-free installation process.

Instructions for Installing Neo4j on Ubuntu 24.04 LTS
Instructions for Installing Neo4j on Ubuntu 24.04 LTS

Guidelines for Installing Neo4j on Ubuntu Version 24.04

In this step-by-step guide, we will walk you through the process of installing and configuring Neo4j 5 on Ubuntu 24.04, enabling external access, and securing your graph database.

---

## 1. Import the Neo4j Repository

First, add the official Neo4j repository to your system to allow Ubuntu’s package manager (apt) to install and update Neo4j.

```bash curl -fsSL https://debian.neo4j.com/neotechnology.gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/neo4j.gpg echo "deb [signed-by=/usr/share/keyrings/neo4j.gpg] https://debian.neo4j.com stable 5" | sudo tee /etc/apt/sources.list.d/neo4j.list ```

---

## 2. Update Package Index

Refreshing your package list ensures you can install Neo4j and its dependencies.

```bash sudo apt update ```

---

## 3. Install Neo4j

Install the Neo4j package.

```bash sudo apt install neo4j ```

---

## 4. Enable and Start the Neo4j Service

Neo4j runs as a systemd service. Enable it to start on boot and start it immediately.

```bash sudo systemctl enable neo4j.service sudo systemctl start neo4j.service ```

Check its status to ensure it’s running.

```bash sudo systemctl status neo4j.service ```

---

## 5. Verify Service and Confirm Listening Port

Neo4j by default listens on `localhost:7474` for the browser interface, and `localhost:7687` for the Bolt protocol (used by clients). To verify, run:

```bash ss -tulpn | grep neo4j ```

---

## 6. Configure Neo4j for External Access

To enable external connections, you must modify the Neo4j configuration.

**Edit the main configuration file:**

```bash sudo nano /etc/neo4j/neo4j.conf ```

**Find and adjust the following settings:**

- **Web interface:** `dbms.default_listen_address=0.0.0.0` (Open the web UI to all interfaces) - **Bolt protocol (client access):** `server.default_listen_address=0.0.0.0` (Open Bolt to all networks)

**Consider security:** If your server is exposed to the internet, **do not** enable authentication via the web interface until you set strong credentials.

**Restart Neo4j to apply changes:**

```bash sudo systemctl restart neo4j.service ```

---

## 7. Set Up a Firewall (Optional but Recommended)

If you have `ufw` enabled, allow traffic to Neo4j’s ports:

```bash sudo ufw allow 7474/tcp sudo ufw allow 7687/tcp sudo ufw reload ```

---

## 8. Access Neo4j from Your Browser or Client

- **Web interface:** Open `http://

On first access, the web UI will prompt you to reset the password for the default `neo4j` user.

---

## Summary Table

| Step | Command/Action | Purpose | |---------------------|-----------------------------------------------------|---------------------------------------------| | Add Repository | `curl ... ; echo ...` | Enables apt to install Neo4j 5 | | Update Package Index| `sudo apt update` | Refreshes package lists | | Install Neo4j | `sudo apt install neo4j` | Installs Neo4j | | Enable Service | `sudo systemctl enable neo4j.service` | Starts Neo4j on boot | | Start Service | `sudo systemctl start neo4j.service` | Starts Neo4j now | | Check Status | `sudo systemctl status neo4j.service` | Verifies service is running | | Config for External | Edit `/etc/neo4j/neo4j.conf` as above | Allows remote connections | | Restart Service | `sudo systemctl restart neo4j.service` | Applies config changes | | Firewall (Optional) | `sudo ufw allow 7474/tcp; ufw allow 7687/tcp` | Opens ports for external access | | Access Neo4j | Browser: `http://

---

These steps follow the standard Ubuntu package management and service control, tailored specifically for enabling external access to Neo4j 5 on Ubuntu 24.04. Always secure your installation with strong credentials if exposing it to the internet. - Set a password for Neo4j login on first use - Confirm Neo4j is listening on port 7474 (HTTP interface) - Launch your graph database with Shape.Host for optimized Linux SSD VPS solutions for modern data platforms. - Shape.Host offers fast, secure cloud infrastructure supporting Neo4j and more. - Select Ubuntu 24.04 (64-bit) as the operating system - Successfully installed and configured Neo4j 5 on Ubuntu 24.04 with external access for managing and exploring graph-based data. - Access Shape.Host account at https://our website.host - Configure Neo4j to accept external connections by editing the configuration file and uncommenting/adding specific lines - Install OpenJDK 17 and Neo4j 3.1 on the server - Create an instance on Shape.Host by clicking "Create" and selecting "Instance" - Start and enable Neo4j service on the server - Choose a server location closest to your target users

  • To secure your cloud infrastructure and manage data effectively, consider utilizing data-and-cloud-computing solutions like Neo4j 5, which can be installed on your Ubuntu 24.04 server.
  • Once Neo4j is installed and configured, utilize secure technology such as Shape.Host's cloud infrastructure to optimize performance and ensure security for your graph database.

Read also:

    Latest