Guys,
Find the below process .
unzip sonar.zip file
Rename the file to sonar
chown -R sonar:sonar sonar/
Now create a sonarqube.service in /etc/systemd/system
Add the below syntax to the sonarqube.service file
[Unit]
Description=SonarQube service
After=syslog.target network.target
[Service]
Type=simple
User=sonar
Group=sonar
PermissionsStartOnly=true
ExecStart=/usr/bin/java -Xms32m -Xmx4000m -Djava.net.preferIPv4Stack=true -jar /opt/sonar/lib/sonar-application-9.9.1.69595.jar
StandardOutput=syslog
LimitNOFILE=131072
LimitNPROC=8192
TimeoutStartSec=5
Restart=always
SuccessExitStatus=143
[Install]
WantedBy=multi-user.target
Save the file
Then execute the below commands from the path /etc/systemd/system —> This is the path where sonarqube.service file created
systemctl daemon-reload
systemctl start sonarqube.service
systemctl enable sonarqube.service
Finally start the sonarqube …it will work
Then Thank to
Ahmad_Abu_Hashem