不能 运行 Neo4j on Antergos(需要整数表达式)

Can't run Neo4j on Antergos (integer expression expected)

每次我尝试 运行 最新版本的 Neo4j(2.3.2 社区)时,我总是收到一个不断循环的错误。

[telmo@Telmo-LT neo4j-community-2.3.2]$ bin/neo4j start
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
bin/neo4j: line 150: [: : integer expression expected
bin/neo4j: line 153: lsof: command not found
Starting Neo4j Server...WARNING: not changing user
process [1283]... waiting for server to be ready.bin/neo4j: line 150: [: : integer expression expected
bin/neo4j: line 153: lsof: command not found
.bin/neo4j: line 150: [: : integer expression expected
bin/neo4j: line 153: lsof: command not found
.bin/neo4j: line 150: [: : integer expression expected
bin/neo4j: line 153: lsof: command not found
.bin/neo4j: line 150: [: : integer expression expected
bin/neo4j: line 153: lsof: command not found

这是一个稳定的版本,我找不到有类似问题的人。

你能运行你的shell中的'lsof'命令吗?看起来它在您的机器上丢失了。它用于定义 neo4j 进程的 PID 并在您的情况下失败。只需查看 /bin/neo4j 文件并查看失败的原因。我在 lsof 版本号方面遇到了一些问题,导致第 150 行的 IF 失败。我最终使用了一个肮脏的 hack,通过硬编码版本号来获得它 运行ning。

line 153: lsof: command not found,你可以试试安装losf,我用的是centos系统,用这个命令yum install lsof -y,然后试试bin/neo4j start