日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

搭建confluence服务器(详细操作+踩坑说明)

發布時間:2023/12/15 编程问答 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 搭建confluence服务器(详细操作+踩坑说明) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

linux服務器配置推薦

前提:web服務,文件服務,數據庫服務部署在同一臺服務器上。

推薦配置

2核 + 4G8G內存 + 300G硬盤

經過實踐,4G內存還是不夠用。

部署資源

  • atlassian-confluence-6.9.1-x64.bin
  • confluence破解工具
  • mysql-8.0.20-linux-glibc2.12-i686.tar.xz
  • mysql-connector-java-8.0.20.jar
  • JDK1.8 ?(安裝在本地windows上面,支持運行破解工具的jar文件)

部署過程

  • 上傳atlassian-confluence-6.9.1-x64.bin到服務器

  • 給atlassian-confluence-6.9.1-x64.bin文件賦執行權限
cd /home/confluence chmod 777 atlassian-confluence-6.9.1-x64.bin
  • 執行atlassian-confluence-6.9.1-x64.bin文件進行安裝
[root@localhost confluence]# ./atlassian-confluence-6.9.1-x64.bin Unpacking JRE ... Starting Installer ... #是否要安裝:是 This will install Confluence 6.9.1 on your computer. OK [o, Enter], Cancel [c] o Click Next to continue, or Cancel to exit Setup. #如何安裝:自定義 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] 2 #默認安裝目錄?:否 /home/confluence/app Select the folder where you would like Confluence 6.9.1 to be installed, then click Next. Where should Confluence 6.9.1 be installed? [/opt/atlassian/confluence] /home/confluence/app #默認數據目錄?:否 /home/confluence/data Default location for Confluence data [/var/atlassian/application-data/confluence] /home/confluence/data #默認端口?:是 Configure which ports Confluence will use. Confluence requires two TCP ports that are not being used by any other applications on this machine. The HTTP port is where you will access Confluence through your browser. The Control port is used to Startup and Shutdown Confluence. Use default ports (HTTP: 8090, Control: 8000) - Recommended [1, Enter], Set custom value for HTTP and Control ports [2] 1 #確認安裝confluence作為服務?:是 Confluence can be run in the background. You may choose to run Confluence as a service, which means it will start automatically whenever the computer restarts. Install Confluence as Service? Yes [y, Enter], No [n] y Extracting files ...Please wait a few moments while we configure Confluence. #安裝完成,是否啟動?是 Installation of Confluence 6.9.1 is complete Start Confluence now? Yes [y, Enter], No [n] yPlease wait a few moments while Confluence starts up. Launching Confluence ...Installation of Confluence 6.9.1 is complete Your installation of Confluence 6.9.1 is now ready and can be accessed via your browser. Confluence 6.9.1 can be accessed at http://localhost:8090 Finishing installation ...
  • 防火墻開放兩個默認端口8090和8000 并重啟防火墻
[root@localhost confluence]# firewall-cmd --zone=public --add-port=8090/tcp --permanent success [root@localhost confluence]# firewall-cmd --zone=public --add-port=8000/tcp --permanent success [root@localhost confluence]# systemctl reload firewalld

?

  • 驗證安裝畫面可以訪問 地址:http://服務器IP:8090

  • 停止服務
[root@localhost ~]# /home/confluence/app/bin/shutdown.sh If you encounter issues starting up Confluence, please see the Installation guide at http://confluence.atlassian.com/display/DOC/Confluence+Installation+GuideServer startup logs are located in /home/confluence/app/logs/catalina.out --------------------------------------------------------------------------- Using Java: /home/confluence/app/jre//bin/java 2020-09-17 08:22:40,784 INFO [main] [atlassian.confluence.bootstrap.SynchronyProxyWatchdog] A Context element for ${confluence.context.path}/synchrony-proxy is found in /home/confluence/app/conf/server.xml. No further action is required --------------------------------------------------------------------------- Using CATALINA_BASE: /home/confluence/app Using CATALINA_HOME: /home/confluence/app Using CATALINA_TMPDIR: /home/confluence/app/temp Using JRE_HOME: /home/confluence/app/jre/ Using CLASSPATH: /home/confluence/app/bin/bootstrap.jar:/home/confluence/app/bin/tomcat-juli.jar Using CATALINA_PID: /home/confluence/app/work/catalina.pid Tomcat stopped. [root@localhost ~]#

  • 把atlassian-extras-decoder-v2-3.3.0.jar 下載到本地并重命名為atlassian-extras-2.4.jar
  • 在本地windows系統上啟動啟動破解程序


?

?

  • 保留破解工具的窗口,一定不能關閉
  • 重命名剛才的文件為atlassian-extras-decoder-v2-3.3.0.jar(原先的名字),上傳到linux服務器原來的位置/home/confluence/app/confluence/WEB-INF/lib
  • 把mysql-connector-java-8.0.20.jar同樣上傳到/home/confluence/app/confluence/WEB-INF/lib(踩過的坑,后面需要用它連接數據庫,在這里提前放進去,后面就不需要重啟了)
  • 啟動服務(tomcat已啟動不代表web服務已經啟動完成,需要稍等一會兒)

?

[root@localhost ~]# /home/confluence/app/bin/startup.sh If you encounter issues starting up Confluence, please see the Installation guide at http://confluence.atlassian.com/display/DOC/Confluence+Installation+GuideServer startup logs are located in /home/confluence/app/logs/catalina.out --------------------------------------------------------------------------- Using Java: /home/confluence/app/jre//bin/java 2020-09-17 08:29:19,271 INFO [main] [atlassian.confluence.bootstrap.SynchronyProxyWatchdog] A Context element for ${confluence.context.path}/synchrony-proxy is found in /home/confluence/app/conf/server.xml. No further action is required --------------------------------------------------------------------------- Using CATALINA_BASE: /home/confluence/app Using CATALINA_HOME: /home/confluence/app Using CATALINA_TMPDIR: /home/confluence/app/temp Using JRE_HOME: /home/confluence/app/jre/ Using CLASSPATH: /home/confluence/app/bin/bootstrap.jar:/home/confluence/app/bin/tomcat-juli.jar Using CATALINA_PID: /home/confluence/app/work/catalina.pid Tomcat started.
  • 在本地windows系統訪問 http://服務器IP:8090 并進行下一步安裝
  • 選擇中文語言(響應時間較長),選擇產品安裝, 下一步

?

  • 使用之前的破解工具獲取key,填好Name,和Server ID然后點擊.gen!

  • 將生成的key復制到web頁面進行下一步

?

?

  • 接下來要進行數據庫的安裝,先不要點擊下一步

?

  • 在服務器上裝mariadb

#mariadb是mysql的一個分支,具體內容參考百科

#https://baike.baidu.com/item/mariaDB/6466119?fr=aladdin

?

yum -y install mariadb mariadb-server

systemctl start mariadb

接下來進行MariaDB的相關簡單配置

執行命令

mysql_secure_installation

首先是設置密碼,會提示先輸入密碼

Enter current password for root (enter for none):<–初次運行直接回車

設置密碼

Set root password? [Y/n] <– 是否設置root用戶密碼,輸入y并回車或直接回車

New password: <– 設置root用戶的密碼

Re-enter new password: <– 再輸入一次你設置的密碼

其他配置

Remove anonymous users? [Y/n] <– 是否刪除匿名用戶,回車

Disallow root login remotely? [Y/n] <–是否禁止root遠程登錄,回車,

Remove test database and access to it? [Y/n] <– 是否刪除test數據庫,回車

Reload privilege tables now? [Y/n] <– 是否重新加載權限表,回車

初始化MariaDB完成,接下來測試登錄

mysql -u root -p

修改my.cnf文件設置字符集等配置

my.cnf文件配置的坑:

坑1:

# Disabling symbolic-links is recommended to prevent assorted security risks symbolic-links=0

應該是分兩行展示了,修改該行為一行顯示,或者把這兩行全部注釋掉即可

坑2:

以下紅色部分提前配置一下,否則后面會有進行配置和重啟數據庫服務的操作。

[root@heaven00 soft]# cat /etc/my.cnf

[mysqld]

init_connect='SET collation_connection = utf8_unicode_ci'

init_connect='SET NAMES utf8'

character-set-server=utf8

collation-server=utf8_unicode_ci

skip-character-set-client-handshake

max_allowed_packet=256M

innodb_log_file_size=1G

[client]

default-character-set=utf8

[mysql]

default-character-set=utf8

重啟數據庫

systemctl restart mariadb.service

#如果重啟失敗了,刪除以下log再重啟

cd /var/lib/mysql

rm -rf ib_logfile*

systemctl restart mariadb.service

  • 創建confluence使用的數據庫,以及創建連接的用戶,及授權
[root@localhost ~]# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 2 Server version: 5.5.65-MariaDB MariaDB ServerCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.MariaDB [(none)]> create database confluence default character set utf8 collate utf8_bin; Query OK, 1 row affected (0.00 sec)MariaDB [(none)]> grant all on confluence.* to 'confluence'@'%' identified by '123456'; Query OK, 0 rows affected (0.00 sec)MariaDB [(none)]> flush privileges; Query OK, 0 rows affected (0.00 sec)MariaDB [(none)]> SET GLOBAL tx_isolation='READ-COMMITTED'; Query OK, 0 rows affected (0.00 sec)MariaDB [(none)]>

?

  • 在畫面上接著下一步

  • 填寫好數據庫連接信息,測試連接,下一步

?

  • 需要一些時間,等待一下

  • 選擇示范站點就是在confluence里面創建一個sample,空白站點就是從0開始。此處我選擇了空白站點。

官網找demo:?https://gitee.com/enterprises/demo

?

  • 配置管理用戶與組

?

?

  • 按照網上常見的流程,? 點擊開始以后還會遇到這3個問題,這里我們應該是只遇到第一個問題
  • 壽命終止檢查:意思就是版本不受支持,要求更新到最新版本,作為破解版的使用,可以讓它不要再提醒了。
  • 最大允許數據包檢查:在前面【坑2】處已經提前做了處理,這邊可能不會再出現
  • InnoDB日志文件大小檢查:在前面【坑2】處已經提前做了處理,這邊可能不會再出現
    • 用新session訪問 http://服務器IP:8090 就能訪問到以下畫面了。

    ? ? ? ?用管理員創建用戶什么的就不在此細說了。

    ?

    • 登陸之后會遇到這樣的問題

    設置一下就可以了

    mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 416 Server version: 5.5.65-MariaDB MariaDB ServerCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.MariaDB [(none)]> use confluence Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -ADatabase changed MariaDB [confluence]> set @@session.tx_isolation='read-committed'; Query OK, 0 rows affected (0.00 sec)MariaDB [confluence]> select @@session.tx_isolation; +------------------------+ | @@session.tx_isolation | +------------------------+ | READ-COMMITTED | +------------------------+ 1 row in set (0.00 sec)

    總結

    以上是生活随笔為你收集整理的搭建confluence服务器(详细操作+踩坑说明)的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。