我在this链接的帮助下在我的Ubuntu服务器上安装 SonarQube 。当我从终端启动/重启Sonar时,它显示如下:
但是当我尝试打开声纳页面 ipaddress:9000 /声纳时,页面根本没有打开。
但我在我的ubuntu VM上按照相同的链接进行安装,它按预期工作。
netstat -ntl
获得以下输出后
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:32000 0.0.0.0:* LISTEN
tcp6 0 0 :::36870 :::* LISTEN
tcp6 0 0 :::9000 :::* LISTEN
tcp6 0 0 127.0.0.1:9001 :::* LISTEN
tcp6 0 0 :::8080 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 :::35866 :::* LISTEN
This是我用于安装的sonarQube属性文件。
重新启动SonarQube后得到的日志
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
2017.06.06 23:14:50 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonar/temp
2017.06.06 23:14:50 INFO app[][o.s.a.p.JavaProcessLauncherImpl] Launch process[es]: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Djava.awt.headless=true -Xmx1G -Xms256m -Xss256k -Djna.nosys=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Des.network.host=127.0.0.1 -Djava.io.tmpdir=/opt/sonar/temp -cp ./lib/common/*:./lib/search/* org.sonar.search.SearchServer /opt/sonar/temp/sq-process4114582605652920236properties
2017.06.06 23:15:00 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
2017.06.06 23:15:00 INFO app[][o.s.a.p.JavaProcessLauncherImpl] Launch process[web]: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=/opt/sonar/temp -cp ./lib/common/*:./lib/server/*:/opt/sonar/lib/jdbc/mysql/mysql-connector-java-5.1.42.jar org.sonar.server.app.WebServer /opt/sonar/temp/sq-process3191822142101588969properties
2017.06.06 23:15:04 INFO app[][o.s.a.SchedulerImpl] Process [web] is stopped
2017.06.06 23:15:04 INFO app[][o.s.a.SchedulerImpl] Process [es] is stopped
2017.06.06 23:15:04 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped
答案 0 :(得分:0)
安装Ubuntu 16 Desktop edition
后问题解决了。我没有提供错误的具体原因,但在安装Desktop
版本之后,没有改变任何问题就解决了。