wiki部署 author: 李建生 版本:confluence5.6
[root@web01 tools]# ls apache-tomcat-8.0.27.tar.gz atlassian-jira-software-7.6.0-EAP01.tar.gz atlassian-confluence-6.5.0.tar.gz jdk-8u60-linux-x64.tar.gz [root@web01 tools]#
[root@web01 tools]# tar xf jdk-8u60-linux-x64.tar.gz -C /application/ [root@web01 tools]# ln -s /application/jdk1.8.0_60/ /application/jdk
[root@web01 tools]# sed -i.ori '$a export JAVA_HOME=/application/jdk\nexport PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH\nexportCLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib:$JAVA_HOME/lib/tools.jar' /etc/profile [root@web01 tools]# source /etc/pro profile profile.d/ profile.ori protocols [root@web01 tools]# source /etc/profile [root@web01 tools]# java -version java version "1.8.0_60" Java(TM) SE Runtime Environment (build 1.8.0_60-b27) Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode) [root@web01 tools]#
數據庫使用mysql5.7php
MariaDB [(none)]> create database confluencedb character set utf8 collate utf8_bin; Query OK, 1 row affected (0.00 sec) MariaDB [(none)]> CREATE user 'confluenece'@'%' IDENTIFIED BY 'rtmap911'; Query OK, 0 rows affected (0.09 sec) MariaDB [(none)]> GRANT ALL PRIVILEGES ON confluencedb.* TO 'confluence'@'%' IDENTIFIED BY 'traffic'; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> flush privileges; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]>
cd /server/tools wget https://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-5.6.6-x64.bin
破解須要在有java環境的pc段進行java
https://page00.ctfile.com/fs/15323800-217465309
修改權限mysql
[root@conflunce tools]# chmod 755 atlassian-confluence-5.6.6-x64.bin [root@conflunce tools]# ./atlassian-confluence-5.6.6-x64.bin
執行程序進行安裝linux
[root@conflunce tools]# ./atlassian-confluence-5.6.6-x64.bin Unpacking JRE ... Starting Installer ... java.util.prefs.FileSystemPreferences$ INFO: Created system preferences directory in java.home. This will install Confluence 5.6.6 on your computer. OK [o, Enter], Cancel [c] o Choose the appropriate installation or upgrade option. Please choose one of the following: Express Install (uses default settings) [1], Custom Install (recommd users) [2, Enter], Upgrade an existing Confluence installation [3 1 See where Confluence will be installed and the settings that will b Installation Directory: /opt/atlassian/confluence Home Directory: /var/atlassian/application-data/confluence HTTP Port: 8090 RMI Port: 8000 Install as service: Yes Install [i, Enter], Exit [e] i Extracting files ... …… Please wait a few moments while Confluence starts up. Launching Confluence ... Installation of Confluence 5.6.6 is complete Your installation of Confluence 5.6.6 is now ready and can be accessed via your browser. Confluence 5.6.6 can be accessed at http://localhost:8090 Finishing installation ...
注意:這個訪問地址根據本身的世紀服務器地址進行調整。web
此時開始破解不要關閉頁面sql
4、破解
1.先中止 conflunce服務數據庫
[root@conflunce tools]# /etc/init.d/confluence stop executing using dedicated user If you encounter issues starting up Confluence, please see the Installation guide at http://confluence.atlassian.com/display/DOC/Confluence+Installation+Guide Server startup logs are located in /opt/atlassian/confluence/logs/catalina.out Using CATALINA_BASE: /opt/atlassian/confluence Using CATALINA_HOME: /opt/atlassian/confluence Using CATALINA_TMPDIR: /opt/atlassian/confluence/temp Using JRE_HOME: /opt/atlassian/confluence/jre/ Using CLASSPATH: /opt/atlassian/confluence/bin/bootstrap.jar:/opt/atlassian/confluence/bin/tomcat-juli.jar Using CATALINA_PID: /opt/atlassian/confluence/work/catalina.pid Tomcat stopped.
2.刪除文件apache
root@conflunce ~]# cd /opt/atlassian/confluence/confluence/WEB-INF/lib [root@conflunce lib]# ll |grep atlassian-extra |wc -l 6 [root@conflunce lib]# ll |grep atlassian-extra -rw-r--r-- 1 root root 14935 12月 1 2014 atlassian-extras-api-3.2.jar -rw-r--r-- 1 root root 21788 12月 1 2014 atlassian-extras-common-3.2.jar -rw-r--r-- 1 root root 38244 12月 1 2014 atlassian-extras-core-3.2.jar -rw-r--r-- 1 root root 5171 12月 1 2014 atlassian-extras-decoder-api-3.2.jar -rw-r--r-- 1 root root 6668 12月 1 2014 atlassian-extras-decoder-v2-3.2.jar -rw-r--r-- 1 root root 68438 12月 1 2014 atlassian-extras-legacy-3.2.jar [root@conflunce lib]# rm -fr atlassian-extra*
解壓修改包,而後把裏面的 atlassian-extras-3.2.jar、Confluence-5.6.6-language-pack-zh_CN.jar、mysql-connector-java-5.1.39-bin.jar 將三個jar文件複製到/opt/atlassian/confluence/confluence/WEB-INF/lib目錄下bootstrap
atlassian-extras-3.2.jar #破解文件 Confluence-5.6.6-language-pack-zh_CN.jar #中文插件 mysql-connector-java-5.1.39-bin.jar #mysql鏈接器
mysql-connector-java-5.1.39-bin.jar文件能夠鏈接mysql5.7及其如下的mysql版本,能夠參考以下鏈接:windows
http://www.w3resource.com/mysql/mysql-java-connection.php
3.啓動confluence
[root@conflunce ~]# /etc/init.d/confluence start
注意windows上須要安裝jdk運行環境。
serverID 要填寫web界面上的
將生成的key複製帶web界面便可