How to install Neo4j in Ubuntu

Sumit Kumar Sharan
1 min readMay 2, 2021

To get started, update your existing list of packages:

sudo apt update

Run the following command to install the key:

wget -O - https://debian.neo4j.com/neotechnology.gpg.key | sudo apt-key add -

Adding neo4j to the repo

echo 'deb https://debian.neo4j.com stable 4.2' | sudo tee -a /etc/apt/sources.list.d/neo4j.list

Now, install neo4j

sudo apt-get install neo4j

Now, confirm installation by following command

neo4j start

if it throws following error,

WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.

Then add these contents to /etc/security/limits.conf

neo4j   soft    nofile  40000
neo4j hard nofile 40000

If you receive following error

./bin/neo4j: line 390: /usr/share/neo4j/logs/neo4j.log: No such file or directory
Unable to start. See /usr/share/neo4j/logs/neo4j.log for details.

Then run following

sudo mkdir /usr/share/neo4j/logs

Now run following

sudo neo4j start

This will start running your neo4j

Now, add neo4j to your path, by running following

nano .bashrc

add following line to it

export PATH=$PATH:/usr/share/neo4j/bin

Now, run cypher-shell and enjoy!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response