部署和破解Confluence 6.4

Confluence是一個專業的企業知識管理與協同軟件,也可以用於構建企業wiki。使用簡單,但它強大的編輯和站點管理特徵能夠幫助團隊成員之間共享信息、文檔協作、集體討論,信息推送。

下載

atlassian的官網地址爲:https://www.atlassian.com 他家的產品很多,比較有名的就是confluence和jira。但都是收費的,可以免費下載試用30天。這裏主要介紹confluence的安裝和破解,下回再介紹jira。

  1. confluence下載地址https://www.atlassian.com/software/confluence/download

  2. 破解jar包及mysql驅動 鏈接:http://pan.baidu.com/s/1ge5eGQv 密碼:diog

環境部署

安裝數據庫

這裏選擇mysql,直接yum安裝即可。 yum install -y mariadb mariadb-server 需要注意的是my.cnf的配置,在mysqld下添加如下配置

collation_server=utf8_bin
character_set_server=utf8
skip-character-set-client-handshake
default-storage-engine=INNODB
max_allowed_packet=256M
innodb_log_file_size=2GB
binlog_format=row
transaction-isolation=READ-COMMITTED

要問我爲什麼,請看官方文檔,https://confluence.atlassian.com/doc/database-setup-for-mysql-128747.html,這樣可以解決中文顯示異常的問題。 然後啓動數據庫,創建confluence數據庫並授權。

create database confluence default character set utf8 collate utf8_bin;
grant all privileges on confluence.* to 'confluence'@'%' identified by 'confluencepasswd';

安裝java環境

請參看博客http://www.boheyan.cn/java-install.html

安裝atlassian-confluence-6.4.0

將下載好的atlassian-confluence-6.4.0-x64.bin安裝包上傳到服務器任意目錄。

chmod +x atlassian-confluence-6.4.0-x64.bin
./atlassian-confluence-6.4.0-x64.bin

然後根據提示選擇,基本就是o、1、i、y

confluence安裝到了/opt/atlassian/confluence/var/atlassian/application-data/confluence目錄下,並且confluence默認監聽的端口是8090.一路默認安裝即可

破解

1.打開瀏覽器,輸入http://IP:8090,打開安裝web頁面

2.選擇語言中文後,產品安裝下一步

3.這裏需要授權碼,記下服務器ID

4.將服務器上/opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.2.jar文件下載到本地,並改名爲atlassian-extras-2.4.jar

5.在安裝了java環境的windows服務器上雙擊運行破解程序confluence_keygen.jar

name可以隨便填,Server ID填寫對應的ID,pathch選擇剛剛改名的atlassian-extras-2.4.jar,最後點擊gen生成key

6.將修改過的atlassian-extras-2.4.jar重新改回爲atlassian-extras-decoder-v2-3.2.jar,然後上傳到原目錄,替換原atlassian-extras-decoder-v2-3.2.jar文件。

7.上傳mysql-connector-java-5.1.42-bin.jar/opt/atlassian/confluence/confluence/WEB-INF/lib/目錄下,用於連接mysql的驅動程序。

8.重啓confluence服務 /etc/init.d/confluence restart 重新打開web服務端,輸入剛剛生成的key,點擊下一步

9.數據庫選擇mysql,選擇直連,配置前面創建數據庫時設置的賬號密碼

10.後面比較簡單了,省略。

配置nginx代理

安裝nginx

請參考博客http://www.boheyan.cn/nginx.html

修改配置

vim /application/nginx/conf/nginx.conf

        location / {
            root   html;
            index  index.html index.htm;
            proxy_set_header X-Forwarded-Host $host;
            proxy_set_header X-Forwarded-Server $host;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_pass http://localhost:8090;
        }

vim /opt/atlassian/confluence/conf/server.xml

        <Connector port="8090" connectionTimeout="20000" redirectPort="8443"
                maxThreads="48" minSpareThreads="10"
                enableLookups="false" acceptCount="10" debug="0" URIEncoding="UTF-8"
                protocol="org.apache.coyote.http11.Http11NioProtocol"
                proxyName="xxx.xxx.xxx.xxx" proxyPort="80" scheme="http" />

啓動nginx:/application/nginx/sbin/nginx 這樣訪問wiki時就不需要加端口號了。


詳細的使用和介紹參見如下博客

https://www.cnblogs.com/ZachRobin/p/6962062.html


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章