利用Confluence搭建企業Wiki


Confluence安裝與部署

 

下載安裝包及破解包

安裝包下載地址:https://www.atlassian.com/software/confluence/download-archives

破解包下載地址:http://down.51cto.com/data/2236416

atlassian-confluence-6.1.3-x64.bin

confluence5.6.6-crack.zip

 

安裝

chmod +x atlassian-confluence-6.1.3-x64.bin

./atlassian-confluence-6.1.3-x64.bin

需要交互確認

Unpacking JRE ...
Starting Installer ...
五月 17, 2017 2:43:16 下午 java.util.prefs.FileSystemPreferences$1 run
信息: Created user preferences directory.

This will install Confluence 6.1.3 on your computer.
OK [o, Enter], Cancel [c]

Choose the appropriate installation or upgrade option.
Please choose one of the following:
Express Install (uses default settings) [1], 
Custom Install (recommended for advanced users) [2, Enter], 
Upgrade an existing Confluence installation [3]
1
See where Confluence will be installed and the settings that will be used.
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 we configure Confluence.
Installation of Confluence 6.1.3 is complete
Start Confluence now?
Yes [y, Enter], No [n]
y

Please wait a few moments while Confluence starts up.
Launching Confluence ...
Installation of Confluence 6.1.3 is complete
Your installation of Confluence 6.1.3 is now ready and can be accessed via
your browser.
Confluence 6.1.3 can be accessed at http://localhost:8090
Finishing installation ...

安裝完成后,就可以通過ip:8090訪問配置頁面:

 

接下來需要授權碼:

 

破解:

1、如上圖,保存獲取到的服務器ID,關閉confluence:

/etc/init.d/confluence stop

2、解壓破解包,將confluence_keygen.jar 拷貝到windows。從/opt/atlassian/confluence/confluence/WEB-INF/lib中,拷貝atlassian-extras-decoder-v2- 3.2.jar到windows,並重命名為atlassian-extras-2.4.jar。

3、在windows下,生成License Key。

cmd 中執行:

java -jar confluence_keygen.jar

然后把上面保存的Server ID(服務器ID)粘貼進去,然后點擊“.gen!”,保存生成的key。

4、打補丁。點擊“.patch!”,選擇第2步中重命名的atlassian-extras-2.4.jar,會生成新的atlassian-extras-2.4.jar,舊的jar包會被改為.bak。

5、上傳新的atlassian-extras-2.4.jar和破解包下的Confluence-5.6.6-language-pack-zh_CN.jar、mysql-connector-java-5.1.39-bin.jar到/opt/atlassian/confluence/confluence/WEB-INF/lib,並且刪除atlassian-extras-decoder-v2-3.2.jar。

6、啟動confluence

/etc/init.d/confluence start

7、把生成的key復制粘貼到License Key框中,點擊“Next”,如果順利進入選擇數據庫頁面,說明破解成功

后面就是設置連接數據庫了。。。

注意,連接mysql的時候,confluence默認連接confluence庫,需要提前創建好。

 

最終頁面是這個樣子:

 

 

郵件服務器配置(這里主要介紹騰訊企業郵箱的配置):

Confluence自帶的郵件服務配置不支持企鵝郵箱,因此我們需要使用JNDI方式:

 1、頁面配置項:

     發信地址、主題、內容等需要填寫。

     選擇下面的JNDI,配置如下:

 

2、准備mail包和配置文件:

     將${HOME}/confluence/confluence/WEB-INF/lib/mail-1.4.5.jar 轉移到${HOME}/confluence/lib/目錄下:

mv /data/local/atlassian/confluence/confluence/WEB-INF/lib/mail-1.4.5.jar /data/local/atlassian/confluence/lib/

    修改conf/server.xml文件,在</Context>上一行添加郵箱配置(以下粗體部分):

<Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true">
                    <!-- Logger is deprecated in Tomcat 5.5. Logging configuration for Confluence is specified in confluence/WEB-INF/classes/log4j.properties -->
                    <Manager pathname="" />
                    <Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60" />
                    <Resource name="mail/QqSMTPServer" auth="Container" type="javax.mail.Session" mail.smtp.host="smtp.exmail.qq.com" mail.smtp.port="465" mail.smtp.auth="true" mail.smtp.user="ahaii@mail.com" password="123456" mail.smtp.starttls.enable="true" mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"
                        />
                </Context>

以上配置完畢后,重啟confluence即可。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM