演示环境:Mac OSX10.12.2 Xcode8
先瞄一眼最终成果~
1.JDK,DBMS(演示环境使用Mysql)
2.创建sonar数据库和用户
mysql -u root -pCREATE 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;
3.下载sonar 演示环境使用v6.1,下载后解压到
/usr/local/sonar/
4.下载sonar-runner:演示环境使用v2.4,下载后解压到
/usr/local/sonar-runner/
完成后配置bin环境变量PATH~(不清楚的search一下,