confluence安裝部署(企業(yè)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

安裝

<pre style="margin: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word; font-family: "Courier New" !important; font-size: 12px !important;">chmod +x atlassian-confluence-6.1.3-x64.bin

./atlassian-confluence-6.1.3-x64.bin</pre>

需要交互確認(rèn)

[
復(fù)制代碼

](javascript:void(0); "復(fù)制代碼")

<pre style="margin: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word; font-family: "Courier New" !important; font-size: 12px !important;">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 ...</pre>

[
復(fù)制代碼

](javascript:void(0); "復(fù)制代碼")

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

image

[圖片上傳中...(image-75ac0a-1552544042577-8)]

接下來需要授權(quán)碼:

[圖片上傳中...(image-a2709c-1552544042577-7)]

破解:

1、如上圖,保存獲取到的服務(wù)器ID,關(guān)閉confluence:

<pre style="margin: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word; font-family: "Courier New" !important; font-size: 12px !important;">/etc/init.d/confluence stop</pre>

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 中執(zhí)行:

<pre style="margin: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word; font-family: "Courier New" !important; font-size: 12px !important;">java -jar confluence_keygen.jar</pre>

然后把上面保存的Server ID(服務(wù)器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

<pre style="margin: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word; font-family: "Courier New" !important; font-size: 12px !important;">/etc/init.d/confluence start</pre>

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

[圖片上傳中...(image-97e940-1552544042577-6)]

后面就是設(shè)置連接數(shù)據(jù)庫了。。。

注意,連接mysql的時候,confluence默認(rèn)連接confluence庫,需要提前創(chuàng)建好。

最終頁面是這個樣子:

[圖片上傳中...(image-6aaab2-1552544042577-5)]

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

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

1、頁面配置項:

 發(fā)信地址、主題、內(nèi)容等需要填寫。

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

[圖片上傳中...(image-979ea0-1552544042577-4)]

2、準(zhǔn)備mail包和配置文件:

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

<pre style="margin: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word; font-family: "Courier New" !important; font-size: 12px !important;">mv /data/local/atlassian/confluence/confluence/WEB-INF/lib/mail-1.4.5.jar /data/local/atlassian/confluence/lib/</pre>

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

[[圖片上傳中...(image-1607da-1552544042574-1)]](javascript:void(0); "復(fù)制代碼")

<pre style="margin: 0px; padding: 0px; white-space: pre-wrap; overflow-wrap: break-word; font-family: "Courier New" !important; font-size: 12px !important;"><Context path="" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true">

<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></pre>

[
復(fù)制代碼

](javascript:void(0); "復(fù)制代碼")

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

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容