Download sonarqube-7.1
wget -t 0 -c https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-7.1.zip
Unzip to / usr / local / sonar, enter the directory.
cd usr/local/sonar;
Modify the configuration file
vi conf / sonar.properties
Modify the following configuration
sonar.jdbc.username=sonar
sonar.jdbc.password=sonar
sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance&useSSL=false
sonar.web.port=9090
Centos7.5 above has been installed jdk1.8 and mysql5.7 and performs initialization related scripts.
# Root password is dbpasswd
mysql -uroot -pdbpasswd;
CREATE DATABASE sonar CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'sonar' IDENTIFIED BY 'sonar';
GRANT ALL ON sonar.* TO 'sonar'@'%' IDENTIFIED BY 'sonar';
GRANT ALL ON sonar.* TO 'sonar'@'localhost' IDENTIFIED BY 'sonar';
FLUSH PRIVILEGES;
Establish an account to start sonar sonar Centos7.5 above.
usradd sound;
cd /usr/local/sonar;
./bin/linux-x86-64/sonar.sh start
After startup, the first time you start slow, direct access http://192.168.10.22:9090 (Centos7.5 Ip is 192.168.10.22 )