试图使用mysql在Ubuntu18.04(在Ec2上)安装Sonarqube,通过这个数字海洋教程
但是,在所有这些sudo service sonarqube start错误之后:
ubuntu@ip-:/opt/sonarqube$ sudo service sonarqube start
Job for sonarqube.service failed because the control process exited with error code.
See "systemctl status sonarqube.service" and "journalctl -xe" for details.ubuntu@ip-:/opt/sonarqube$ systemctl status sonarqube.service
sonarqube.service - SonarQube service
Loaded: loaded (/etc/systemd/system/sonarqube.service; disabled; vendor prese
Active: failed (Result: exit-code) since Fri 2019-10-04 16:45:33 UTC; 1min 43
Process: 11036 ExecStart=/opt/sonarqube/bin/linux-x86-64/sonar.sh start (code=
Oct 04 16:45:32 ip-172-31-41-243 systemd[1]: sonarqube.service: Control process
Oct 04 16:45:32 ip-172-31-41-243 systemd[1]: sonarqube.service: Failed with resu
Oct 04 16:45:32 ip-172-31-41-243 systemd[1]: Failed to start SonarQube service.
Oct 04 16:45:33 ip-172-31-41-243 systemd[1]: sonarqube.service: Service hold-off
Oct 04 16:45:33 ip-172-31-41-243 systemd[1]: sonarqube.service: Scheduled restar
Oct 04 16:45:33 ip-172-31-41-243 systemd[1]: Stopped SonarQube service.
Oct 04 16:45:33 ip-172-31-41-243 systemd[1]: sonarqube.service: Start request re
Oct 04 16:45:33 ip-172-31-41-243 systemd[1]: sonarqube.service: Failed with resu
Oct 04 16:45:33 ip-172-31-41-243 systemd[1]: Failed to start SonarQube service.尝试了另一个教程和不同版本的声纳和不同的DB -相同的结果。是否需要用于声纳的资源(内存)--我正在EC2 t2上部署-micro-8GB-,假设这应该足够了?
尝试过/opt/sonarqube/bin/linux-x86-64/sonar.sh start,这会导致错误:
语法错误:新行意外(期待")")。我没有编辑sonar.sh文件
SonarQube Docker试着去码头路线 --没成功。端口9000上的连接被拒绝。我在安全组中打开了TCP/9000,NACL也都是开放的。http://IP:9000这个site can’t be reached x.x.x.x refused to connect
发布于 2022-06-21 22:01:56
我也有过类似的问题。我的原因是由于systemctl服务配置文件中有一个额外的空白。我建议您正确检查,或删除和重新创建服务文件。这次要小心点。
https://stackoverflow.com/questions/58240896
复制相似问题