Error installing Neo4j on Linux: error "neo4j: command not found"

I tried installing Neo4j1.9.2 on an Ubuntu machine. I downloaded neo4j-community-1.9.2-unix.tar.gz from Neo4j.org and unzipped it. The neo4j file is located in the bin directory.

In the bin directory, I typed the command "neo4j start", got the error "neo4j: command not found". I also tried the command "sudo neo4j install", after I provided the password, I got the same error "neo4j: command not found".

Java is installed on this computer: java version "1.6.0_27" OpenJDK environment (IcedTea6 1.12.5) (6b27-1.12.5-0ubuntu0.12.04.1) OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

+1
source share
3 answers

You probably haven't . in PATH , so you need to do ./neo4j start .

+8
source

If you install neo4j on your system using the package manager (mine runs on gentoo using overlay migration), the command is under /etc/init.d/neo4j . I found them useful in gentoo.

 rc-service neo4j start rc-update add neo4j default 

The shell is on the way for all users, but the service is not on the way. This applies to most services on most Linux distributions if you do not have a DIY installation.

+1
source

You can start the neo4j server with

service neo4j-service start

But if you have access to localhost: 7474, then the server is already running. You can check the status with:

service neo4j-service status

0
source

Source: https://habr.com/ru/post/1488856/


All Articles