You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SonarQube Installation And Setup In AWS EC2 Redhat Instance.
Prerequisite
AWS Acccount.
Create Redhat EC2 T2.medium Instance with 4GB RAM.
Create Security Group and open Required ports.
9000 ..etc
Attach Security Group to EC2 Instance.
Install java openJDK 1.8+ for SonarQube version 7.8
1. Create sonar user to manage the SonarQube server
#As a good security practice, SonarQuber Server is not advised to run sonar service as a root user, # create a new user called sonar and grant sudo access to manage sonar services as follows
sudo useradd sonar
# Grand sudo access to sonar user
sudo echo"sonar ALL=(ALL) NOPASSWD:ALL"| sudo tee /etc/sudoers.d/sonar
sudo hostnamectl set-hostname sonar
sudo su - sonar
1b. Assign password to sonar user
sudo passwd sonar
2. Enable PasswordAuthentication in the server
sudo sed -i "/^[^#]*PasswordAuthentication[[:space:]]no/c\PasswordAuthentication yes" /etc/ssh/sshd_config
sudo service sshd restart
3. Install Java JDK 1.8+ required for sonarqube to start