简体   繁体   English

Neo4j无法在Centos上启动

[英]Neo4j unable start on Centos

I am going to install neo4j-community-2.1.6 on my Centos Server with JAVA version 1.7.0_60. 我将在JAVA版本1.7.0_60的Centos服务器上安装neo4j-community-2.1.6。
I followed this instruction from neo4j 我遵循了neo4j的指示

When I tried to start it, I got this error : 当我尝试启动它时,出现此错误:

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.

I checked the log, I only see this : 我检查了日志,只看到了这个:

bash: : command not found

Appreciate if someone could give me advice on how to fix this problem. 感谢有人可以给我有关如何解决此问题的建议。

Thanks in advance. 提前致谢。

It looks like you don't have the bash shell installed, which is really weird for CentOS. 看来您没有安装bash shell,这对于CentOS来说确实很奇怪。

You need to use yum to install bash, which ought to already be there. 您需要使用yum安装bash,该bash应该已经存在了。 Try running: 尝试运行:

yum install bash

As the root user. 作为root用户。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM