SonarQube setup on AWS using EC2
Trying to configure SonarQube on EC2 using basic installation settings.
- List item
- Install a standard EC2 AWS LINUX Ami connected to a large M4
- SSH into EC2 instance
- Install JAVA
- Install to use JAVA8
- Wget https://sonarsource.bintray.com/Distribution/sonarqube/sonarqube-6.4.zip
- unzip to / etc directory
- run sudo./sonar.sh start
- 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.
source to share
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.
source to share