gpt4 book ai didi

sonarqube - 无法在 Mac OSX 上安装 Sonarqube

转载 作者:行者123 更新时间:2023-12-01 12:30:13 27 4
gpt4 key购买 nike

我正在尝试使用他们的“2 分钟入门指南”安装 Sonarqube - http://docs.sonarqube.org/display/SONAR/Get+Started+in+Two+Minutes

我正在使用 mac OS X 10.10.5从设置->Java,我有 Java 版本 8,更新 71

按照说明,我下载了 SonarQube 发行版,并在控制台中启动了它

$ sh 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 | 2016.01.21 16:18:40 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[search]: /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/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=/Users/baldockm/Software - Not on Cloud/Sonar/sonarqube-5.3/temp -cp ./lib/common/*:./lib/search/* org.sonar.search.SearchServer /var/folders/xk/1vdhr2sd18g94b1hlzj1jwkw0000gp/T/sq-process5364430543207967313properties
jvm 1 | 2016.01.21 16:18:47 INFO app[o.s.p.m.Monitor] Process[search] is up
jvm 1 | 2016.01.21 16:18:47 INFO app[o.s.p.m.JavaProcessLauncher] Launch process[web]: /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djruby.management.enabled=false -Djruby.compile.invokedynamic=false -Xmx768m -Xms256m -XX:MaxPermSize=160m -XX:+HeapDumpOnOutOfMemoryError -Djava.net.preferIPv4Stack=true -Djava.io.tmpdir=/Users/baldockm/Software - Not on Cloud/Sonar/sonarqube-5.3/temp -cp ./lib/common/*:./lib/server/*:/Users/baldockm/Software - Not on Cloud/Sonar/sonarqube-5.3/lib/jdbc/h2/h2-1.3.176.jar org.sonar.server.app.WebServer /var/folders/xk/1vdhr2sd18g94b1hlzj1jwkw0000gp/T/sq-process6892403553294161903properties
jvm 1 | 2016.01.21 16:19:00 INFO app[o.s.p.m.Monitor] Process[web] is up

所以这一切看起来都在工作。

然后我下载并解压缩了 Sonarqube 扫描仪。然后下载并解压项目示例从不同的终端窗口运行(SonarQube 仍在第一个窗口中运行)

$cd path/to/.../java-sonar-runner-simple
$path/to//sonar-scanner-2.5/bin/sonar-runner

产生了输出:无法识别的选项:-错误:无法创建 Java 虚拟机。错误:发生致命异常。程序将退出。

此外,在浏览器中转到本地主机地址会产生错误:

We're sorry, but something went wrong. Please try back in a few minutes and contact support if the problem persists. Go back to the homepage

有没有人遇到过这个问题?或者有什么解决办法吗?

最佳答案

这个错误:

We're sorry, but something went wrong. Please try back in a few minutes and contact support if the problem persists. Go back to the homepage

(加上服务器日志中的 "en-US"is not a valid locale 错误)

好像地址是here .

关于sonarqube - 无法在 Mac OSX 上安装 Sonarqube,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34929790/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com