Setting up SonarQube on AWS using EC2

会有一股神秘感。 提交于 2019-12-21 11:32:08

问题


Trying to setup SonarQube on EC2 using what should be basic install settings.

  1. List item
  2. Setup a standard EC2 AWS LINUX Ami attached to M4 large
  3. SSH into EC2 instance
  4. Install JAVA
  5. Set to use JAVA8
  6. wget https://sonarsource.bintray.com/Distribution/sonarqube/sonarqube-6.4.zip
  7. unzip into the /etc dir
  8. run sudo ./sonar.sh start
  9. Instance starts

But when I try to go to the app it never comes up when I try either the IPv4 Public IP 187.187.87.87:9000 (ex not real IP) or try ec2-134-73-134-114.compute-1.amazonaws.com:9000 (not real IP either just for example)

Perhaps it is my ignorance or me not configuring something correctly as it pertains to the initial EC2 setup.

If anyone has any ideas, please let me know.


回答1:


Issue was that SonarQube default port is 9000. and by default this port is not open in the security group if you dont apply the default security group in which all the ports are open(which is Not recommended).

As suggested in comment @Issac, opened the 9000 port to allow incoming request to SonarQube, in AWS security group setting of instance. Which solved the issue.




回答2:


need to have an db and give permissions to the db insonar.properties file in sonar nd need to open firewalls



来源:https://stackoverflow.com/questions/44658510/setting-up-sonarqube-on-aws-using-ec2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!