前言 上次安裝了Sonarqube英文版使用起來不方便,這次為Sonarqube安裝中文插件。 前期準備: 軟體下載: https://github.com/SonarQubeCommunity/sonar-l10n-zh 安裝插件: 1.下載插件jar文件 2.將jar文件複製到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
參考: https://www.jianshu.com/p/6cc4632628b1