在Ubuntu 16.04上。我安装了SonarQube 6.4。如下:
deb http://downloads.sourceforge.net/project/sonar-pkg/deb binary/
添加到/etc/apt/sources.list
sudo apt-get update
- 此成功,但prompts a warning。sudo apt-get install sonar
然后我尝试在控制台模式中启动 SonarQube ,但它立即停止。我看不出开始失败的原因。
~ sudo /opt/sonar/bin/linux-x86-64/sonar.sh console
Running SonarQube...
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | 2017.06.12 20:13:54 INFO app[][o.s.a.AppFileSystem]
Cleaning or creating temp directory /opt/sonar/temp
jvm 1 | 2017.06.12 20:13:54 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 -Djava.io.tmpdir=/opt/sonar/temp
-cp ./lib/common/*:./lib/search/* org.sonar.search.SearchServer
/opt/sonar/temp/sq-process8383619119685554365properties
jvm 1 | 2017.06.12 20:13:58 INFO app[][o.s.a.SchedulerImpl]
Process [es] is stopped
jvm 1 | 2017.06.12 20:13:58 INFO app[][o.s.a.SchedulerImpl]
SonarQube is stopped
wrapper | <-- Wrapper Stopped
我在/opt/sonar/conf/sonar.properties
resp中配置了用户设置,嵌入式数据库,网络服务器设置和Java 8。 /opt/sonar/conf/wrapper.conf
。
以下是output of the /opt/sonar/logs/es.log
答案 0 :(得分:1)
如果您的实例未启动:请检查您是否执行了以下步骤: