前言
上次安装了Sonarqube英文版使用起来不方便,这次为Sonarqube安装中文插件。
前期准备:
软件下载:
安装插件:
1.下载插件jar文件
2.将jar文件复制到Sonarqube主目录extensions/plugins文件夹内
3.重启Sonarqube服务
上传jar文件至服务器
[root@t-xi-sonar01 ~]# lsanaconda-ks.cfg mysql-community-libs-5.7.20-1.el6.x86_64.rpminstall.log mysql-community-libs-compat-5.7.20-1.el6.x86_64.rpminstall.log.syslog mysql-community-server-5.7.20-1.el6.x86_64.rpmjre-8u151-linux-x64.rpm mysql-community-test-5.7.20-1.el6.x86_64.rpmmysql-5.7.20-1.el6.x86_64.rpm-bundle.tar sonar-l10n-zh-plugin-1.16.jarmysql-community-client-5.7.20-1.el6.x86_64.rpm sonar-l10n-zh-sonar-l10n-zh-plugin-1.16.tar.gzmysql-community-common-5.7.20-1.el6.x86_64.rpm sonar-l10n-zh-sonar-l10n-zh-plugin-1.16.zipmysql-community-devel-5.7.20-1.el6.x86_64.rpm sonarqube-6.7.1mysql-community-embedded-5.7.20-1.el6.x86_64.rpm sonarqube-6.7.1.zipmysql-community-embedded-devel-5.7.20-1.el6.x86_64.rpm[root@t-xi-sonar01 ~]# mv sonar-l10* /etc/sonarqube/[root@t-xi-sonar01 ~]# chown -R sonar.sonar /etc/sonarqube/
切换到Sonarqube运行账户sonar下
[root@t-xi-sonar01 sonarqube]# su - sonar[sonar@t-xi-sonar01 ~]$ cd /etc/sonarqube/[sonar@t-xi-sonar01 sonarqube]$ lsbin data lib sonar-l10n-zh-sonar-l10n-zh-plugin-1.16.tar.gz webconf elasticsearch logs sonar-l10n-zh-sonar-l10n-zh-plugin-1.16.zipCOPYING extensions sonar-l10n-zh-plugin-1.16.jar temp[sonar@t-xi-sonar01 sonarqube]$ mv sonar-l10n-zh-plugin-1.16.jar extensions/plugins/
重启Sonarqube软件
[sonar@t-xi-sonar01 sonarqube]$ bin/linux-x86-64/sonar.sh stopStopping SonarQube...Waiting for SonarQube to exit...Stopped SonarQube.[sonar@t-xi-sonar01 sonarqube]$ bin/linux-x86-64/sonar.sh startStarting SonarQube...Started SonarQube.[sonar@t-xi-sonar01 sonarqube]$ tail -f logs/es.log
访问http://192.168.1.59:9000
参考: