Linux tarball installation
Before you install Neo4j on Linux from a tarball and run it as a console application or service, check System Requirements to see if your setup is suitable.
Download the latest release from Neo4j Download Center.
Select the appropriate tar.gz distribution for your platform.
Make sure to download Neo4j from Neo4j Download Center and always check that the SHA hash of the downloaded file is correct:
To find the correct SHA hash, go to Neo4j Download Center and click on
SHA-256which will be located below your downloaded file.
Using the appropriate commands for your platform, display the
SHA-256hash for the file that you downloaded.
Ensure that the two are identical.
Extract the contents of the archive, using
tar -xf<filename>. For example,
tar -xf neo4j-community-5.2.0-unix.tar.gz.
Place the extracted files in a permanent home on your server. The top level directory is referred to as NEO4J_HOME.
To run Neo4j as a console application, use:
To run Neo4j in a background process, use:
Visit http://localhost:7474 in your web browser.
Connect using the username 'neo4j' with default password 'neo4j'. You’ll then be prompted to change the password.
Stop the server by typing
Ctrl-Cin the console.
Linux platforms impose an upper limit on the number of concurrently open files per user and session.
To check your limit for the current session, run the command
The default value is 1024.
user@localhost:~$ ulimit -n 1024
However, if you experience exceptions on
Too many open files or
Could not stat() directory, you have to increase the limit to 40000 or more, depending on your usage patterns.
This is especially true when many indexes are used, or the server installation sees too many open network connections or sockets.
A quick solution is the command
ulimit -n <the-new-limit>, but it will set a new limit only for the root user and will affect only the current session.
If you want to set the value system-wide, follow the instructions for your platform.
The following steps set the open file descriptor limit to 60000 for the user neo4j under Ubuntu 16.04 LTS, Debian 8, CentOS 7, or later versions.
Open the neo4j.service file with root privileges.
user@localhost:~$ sudo systemctl edit neo4j.service
[Service]section to the neo4j.service file.
Open the user.conf file with root privileges in a text editor, for example, Vim.
user@localhost:~$ sudo vi /etc/systemd/user.conf
Uncomment and define the value of
DefaultLimitNOFILE, found in the
[Manager] ... DefaultLimitNOFILE=60000
Open the /etc/security/limits.conf file.
user@localhost:~$ sudo vi /etc/security/limits.conf
Define the following values:
neo4j soft nofile 60000 neo4j hard nofile 60000
user@localhost:~$ sudo systemctl daemon-reload
Reboot your machine.
Was this page helpful?