ubuntu - ./sonar.sh 在 ubuntu 上启动不启动 Sonar 服务器

标签 ubuntu sonarqube

我已经从 sonar 下载了 sonar 3.5.1使用 wget“http://dist.sonar.codehaus.org/sonar-3.5.1.zip”命令。然后我使用 unzip sonar-3.5.1.zip 命令解压缩。但是当我尝试使用“sudo ./sonar.sh start”启动 Sonar 时,我得到了错误:

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

谁知道原因。

编辑: 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

最佳答案

问题是您运行的是 32 位机器。

只需编辑/etc/systemd/system/sonar.service 文件并将 linux-x86-64 更改为 linux-x86-32

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

ExecStop=/opt/sonarqube/bin/linux-x86-**32**/sonar.sh stop

关于ubuntu - ./sonar.sh 在 ubuntu 上启动不启动 Sonar 服务器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18735862/

相关文章:

python - 在同一函数中的子进程调用之前运行 python 命令?

vim - vim 中的 Ctrl-W 在终端的插入模式下不起作用

ubuntu - JRuby 安装后的 Ruby gems

java - SonarQube Eclipse 插件 3.4 由于连接超时而无法到达 Sonar 服务器

java - 如何在 SonarQube 中获取 MAVEN 多模块项目的代码覆盖率

linux - FFMPEG 拖放 sh 文件

ubuntu - Bluemix cli panic

css - 空样式 (.css/.scss) 文件

github - 使用 SonarQube(社区版)装饰 GitHub 中的拉取请求

sonarqube - 无法在 Windows 7 上启动 Sonarqube 6.7