Linux下为Sonarqube安装中文插件
前言
上次安装了Sonarqube英文版使用起来不方便,这次为Sonarqube安装中文插件。
前期准备:
软件下载:
https://github.com/SonarQubeCommunity/sonar-l10n-zh
安装插件:
1.下载插件jar文件
2.将jar文件复制到Sonarqube主目录extensions/plugins文件夹内
3.重启Sonarqube服务
上传jar文件至服务器
[root@t-xi-sonar01 ~]# ls
anaconda-ks.cfg mysql-community-libs-5.7.20-1.el6.x86_64.rpm
install.log mysql-community-libs-compat-5.7.20-1.el6.x86_64.rpm
install.log.syslog mysql-community-server-5.7.20-1.el6.x86_64.rpm
jre-8u151-linux-x64.rpm mysql-community-test-5.7.20-1.el6.x86_64.rpm
mysql-5.7.20-1.el6.x86_64.rpm-bundle.tar sonar-l10n-zh-plugin-1.16.jar
mysql-community-client-5.7.20-1.el6.x86_64.rpm sonar-l10n-zh-sonar-l10n-zh-plugin-1.16.tar.gz
mysql-community-common-5.7.20-1.el6.x86_64.rpm sonar-l10n-zh-sonar-l10n-zh-plugin-1.16.zip
mysql-community-devel-5.7.20-1.el6.x86_64.rpm sonarqube-6.7.1
mysql-community-embedded-5.7.20-1.el6.x86_64.rpm sonarqube-6.7.1.zip
mysql-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]$ ls
bin data lib sonar-l10n-zh-sonar-l10n-zh-plugin-1.16.tar.gz web
conf elasticsearch logs sonar-l10n-zh-sonar-l10n-zh-plugin-1.16.zip
COPYING 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 stop
Stopping SonarQube...
Waiting for SonarQube to exit...
Stopped SonarQube.
[sonar@t-xi-sonar01 sonarqube]$ bin/linux-x86-64/sonar.sh start
Starting SonarQube...
Started SonarQube.
[sonar@t-xi-sonar01 sonarqube]$ tail -f logs/es.log
访问http://192.168.1.59:9000
Sonar 的详细介绍:请点这里
Sonar 的下载地址:请点这里