我正在运行Windows 10并安装了虚拟盒子,以便在无业游民的帮助下使用ubuntu,所以最后我在Ubuntu上运行了无业游民的ubuntu 14.04
我已经按照这里安装了SonarQube
所以声纳立方体安装在ubuntu上/opt/sonar/bin/linux-x86-64/
,当我如下检查时它运行良好
(env) vagrant@vagrant-ubuntu-trusty-64:~/Work/sonar$ sudo /opt/sonar/bin/linux-x86-64/sonar.sh status
SonarQube is running (7705).
我的声纳属性文件(/opt/sonar/conf/sonar.properties
)包含以下设置
sonar.jdbc.username=sonar
sonar.jdbc.password=sonar
sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance
sonar.web.host=127.0.0.1
sonar.web.context=/sonar
sonar.web.port=9002
现在当我尝试如下访问它时,它说 404 not found
(env) vagrant@vagrant-ubuntu-trusty-64:~/Work/sonar$ wget http://127.0.0.1:9002
--2017-07-31 08:07:32-- http://127.0.0.1:9002/sonar
Connecting to 127.0.0.1:9002... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-07-31 08:07:32 ERROR 404: Not Found.
所以有人可以让我知道使用链接无法访问声纳服务器的原因是http://127.0.0.1:9002/sonar
什么,需要做哪些更改或者我丢失了sonar.properties
文件中的内容?,
仅供参考,我使用wget http://127.0.0.1:9002/sonar
而不是输入浏览器URL,因为因为我正在Windows内部使用流浪汉运行ubuntu,所以我需要进行端口转发等,这是额外的工作,因此暂时我只能像上面那样访问它
我发现上述问题的解决方案只是评论以下选项并重新启动声纳服务器
#sonar.web.host=127.0.0.1
#sonar.web.context=/sonar
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句