SonarQube已在运行,但无法从Web浏览器加载

时间:2019-02-13 21:13:30

标签: ubuntu jenkins sonarqube

我有一个已经安装了Jenkins的Ubuntu Server 18(在localhost:8080上),并且我安装了SonarQube,但是尽管从命令行看来Sonar Service正在运行,但是我却无法到达localhost:9000。

这是我的sonar.properties文件:

sonar.web.host = localhost sonar.web.port = 9000

服务状态:

fluzon@SPIDERMAN:/opt/sonarqube$ sudo service sonar status
● sonar.service - SonarQube service
   Loaded: loaded (/etc/systemd/system/sonar.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2019-02-13 18:10:13 -03; 2s ago
  Process: 22194 ExecStop=/opt/sonarqube/bin/linux-x86-64/sonar.sh stop (code=exited, status=0/SUCCESS)
  Process: 22235 ExecStart=/opt/sonarqube/bin/linux-x86-64/sonar.sh start (code=exited, status=0/SUCCESS)
 Main PID: 22278 (wrapper)
    Tasks: 22 (limit: 4663)
   CGroup: /system.slice/sonar.service
           ├─22278 /opt/sonarqube/bin/linux-x86-64/./wrapper /opt/sonarqube/bin/linux-x86-64/../../conf/wrapper.
           ├─22280 java -Dsonar.wrapped=true -Djava.awt.headless=true -Xms8m -Xmx32m -Djava.library.path=./lib -
           └─22301 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccup

feb 13 18:10:13 SPIDERMAN systemd[1]: Starting SonarQube service...
feb 13 18:10:13 SPIDERMAN sonar.sh[22235]: Starting SonarQube...
feb 13 18:10:13 SPIDERMAN sonar.sh[22235]: Started SonarQube.
feb 13 18:10:13 SPIDERMAN systemd[1]: Started SonarQube service.

尽管我无法访问localhost:9000,但我收到503 Apache错误。

0 个答案:

没有答案