SonarQube setup on AWS using EC2

Trying to configure SonarQube on EC2 using basic installation settings.

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

But when I try to go into the app it never shows up when I try to either use IPv4 Public IP 187.187.87.87:9000 (no real IP) or try ec2-134-73-134-114.compute-1.amazonaws. com: 9000 (not the real IP address, for example)

Perhaps this is my ignorance or I am not configuring something correctly as it relates to the initial EC2 setup.

If anyone has any ideas please let me know.

+7


source to share


2 answers


The problem was that the default port SonarQube

is 9000

. and by default this port is not open in the security group unless you use the default security group in which all ports are open ( which is not recommended ).



As suggested in @Issac's comment, opened port 9000 to allow incoming request for SonarQube

, in the instance's AWS security group setup. Which solved the problem.

+2


source


need to have database and give permissions to db insonar.properties file in sonar and need to open firewalls



0


source







All Articles