./sonar.sh start on ubuntu giving not starting son

2019-08-07 18:42发布

I have downloaded sonar 3.5.1 from sonar using wget "http://dist.sonar.codehaus.org/sonar-3.5.1.zip" command. Then I unziped using unzip sonar-3.5.1.zip command. But when I tried to start sonar using "sudo ./sonar.sh start", I got the error:

 .../sonar-3.5.1/bin/linux-x86-64/./wrapper:Syntax error: "(" unexpected
Failed to start sonar.

May I know the reason by anyone.

edited: output of uname -a,

Linux ocrfrt 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:32:08 UTC 2012 i686 i686 i686 GNU/Linux

2条回答
我欲成王,谁敢阻挡
2楼-- · 2019-08-07 18:46

The problem is you are running a 32 bit machine.

Just edit /etc/systemd/system/sonar.service file and change linux-x86-64 for linux-x86-32

ExecStart=/opt/sonarqube/bin/linux-x86-**32**/sonar.sh start

ExecStop=/opt/sonarqube/bin/linux-x86-**32**/sonar.sh stop
查看更多
欢心
3楼-- · 2019-08-07 19:05

I also have faced same issue and later identified that installer provided in bin/ directory was used other than the OS actual architecture.

First do check the OS architecture (x86-32 or else) and do use correct installer as per the OS architecture.

查看更多
登录 后发表回答