【问题标题】:Neo4j unable start on CentosNeo4j 无法在 Centos 上启动
【发布时间】:2014-12-12 01:34:14
【问题描述】:

我将在我的 Centos 服务器上安装 neo4j-community-2.1.6,其 JAVA 版本为 1.7.0_60。
我关注了this instruction from neo4j

当我尝试启动它时,我得到了这个错误:

bin/utils: line 38: syntax error in conditional expression: unexpected token ('
bin/utils: line 38: syntax error near ^([
bin/utils: line 38:       if [[ ${line} =~ ^([^#\s][^=]+)=(.+)$ ]]; then
./neo4j: line 60: getconfigquoted: command not found
./neo4j: line 61: getconfigquoted: command not found
./neo4j: line 154: detectos: command not found
./neo4j: line 155: exitonnojava: command not found
./neo4j: line 156: checkstatus: command not found
./neo4j: line 157: checklimits: command not found
./neo4j: line 159: checkjvmcompatibility: command not found
./neo4j: line 141: [: =: unary operator expected
Using additional JVM arguments:  -server -XX:+DisableExplicitGC
./neo4j: line 169: [: =: unary operator expected
Starting Neo4j Server..../neo4j: line 186: checkclasspath: command not found
./neo4j: line 187: checkandrepairenv: command not found
process [13449]... waiting for server to be ready. Failed to start within 120 seconds
Neo4j Server may have failed to start, please check the logs.

我检查了日志,我只看到这个:

bash: : command not found

如果有人可以就如何解决这个问题给我建议。

提前致谢。

【问题讨论】:

    标签: java linux neo4j centos


    【解决方案1】:

    看起来你没有安装 bash shell,这对于 CentOS 来说真的很奇怪。

    您需要use yum 来安装 bash,它应该已经存在。尝试运行:

    yum install bash
    

    作为根用户。

    【讨论】:

    • 看起来 bash shell 不是最新的。我运行了 yum install bash,现在问题解决了。谢谢!
    猜你喜欢
    • 2023-03-30
    • 2018-08-30
    • 2014-05-13
    • 1970-01-01
    • 1970-01-01
    • 2016-06-09
    • 1970-01-01
    • 2020-07-12
    • 2015-02-24
    相关资源
    最近更新 更多