图形数据库Neo4j restart --( /var/run/neo4j/neo4j.pid: 没有那个文件或目录

175 阅读1分钟

\

启动Neo4j报错如下:

raini@biyuzhe:~$ sudo neo4j restart
Neo4j not running
Starting Neo4j.
WARNING: Max 1024 open files allowed, minimum of 40000 recommended. See the Neo4j manual.
/usr/share/neo4j/bin/neo4j: 行 411: /var/run/neo4j/neo4j.pid: 没有那个文件或目录

\

检查该目录,并没有:

raini@biyuzhe:~$ ll  /var/run/neo4j
ls: 无法访问'/var/run/neo4j': 没有那个文件或目录


raini@biyuzhe:~$ ll  /var/run/
总用量 76\

\

\

解决:

手动创建该目录

\

raini@biyuzhe:~$ sudo mkdir  /var/run/neo4j
raini@biyuzhe:~$ sudo neo4j start
Active database: graph.db
Directories in use:
home:         /var/lib/neo4j
config:       /etc/neo4j
logs:         /var/log/neo4j
plugins:      /var/lib/neo4j/plugins
import:       /var/lib/neo4j/import
data:         /home/raini/app/tmp/neo4j/data
certificates: /var/lib/neo4j/certificates
run:          /var/run/neo4j
Starting Neo4j.
WARNING: Max 1024 open files allowed, minimum of 40000 recommended. See the Neo4j manual.
Started neo4j (pid 31427). It is available at http://localhost:7474/
There may be a short delay until the server is ready.
See /var/log/neo4j/neo4j.log for current status.\

\

\