在啓動Sonar服務器時遇到Java進程啓動器錯誤。 請注意我們已經使用了Sonarqube-4.5.7,sonarqube-5.0.1,Sonarqube 5.6和JDK 7,8組合。但仍沒有運氣使用最新版本無法啓動Sonarqube服務器
下面是日誌:
2016.06.20 18:31:24 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[search]: C:\Program Files\Java\jre7\bin\java -Djava.awt.headless=true -Xmx1G -Xms256m -Xss256k -Djava.net.preferIPv4Stack=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Djava.io.tmpdir=C:\Users\swmuthuk\Documents\sonarqube-5.0.1\temp -cp ./lib/common/*;./lib/search/* org.sonar.search.SearchServer C:\Users\swmuthuk\AppData\Local\Temp\sq-process2908084003470791693properties
2016.06.20 18:31:25 INFO sea[o.s.p.ProcessEntryPoint] Starting search
2016.06.20 18:31:25 INFO sea[o.s.s.SearchServer] Starting Elasticsearch[sonarqube] on port 9001
2016.06.20 18:31:25 INFO sea[o.elasticsearch.node] [sonar-1466427684530] version[1.1.2], pid[4912], build[e511f7b/2014-05-22T12:27:39Z]
2016.06.20 18:31:25 INFO sea[o.elasticsearch.node] [sonar-1466427684530] initializing ...
2016.06.20 18:31:25 INFO sea[o.e.plugins] [sonar-1466427684530] loaded [], sites []
2016.06.20 18:31:27 INFO sea[o.elasticsearch.node] [sonar-1466427684530] initialized
2016.06.20 18:31:27 INFO sea[o.elasticsearch.node] [sonar-1466427684530] starting ...
2016.06.20 18:31:27 WARN sea[o.s.p.ProcessEntryPoint] Fail to start search
org.elasticsearch.transport.BindTransportException: Failed to bind to [9001]
問題是「無法綁定到[9001]」。檢查是否已有端口處於活動狀態。 – Konrad