[原創] debian 9.3 搭建Jira+Confluence+Bitbucket項目管理工具(三) -- 安裝confluence 6.6.1

[原創] debian 9.3 搭建Jira+Confluence+Bitbucket項目管理工具(三) -- 安裝confluence 6.6.1html

 

  有了安裝Jira的經驗, 此次再安裝confluence就會容易不少, 在"某SDN"上找到了6.3.1的破解包, 看說明6.0以上的均可以用. 破解confluence主程序的包是atlassian-extras-decoder-v2-3.2.jar, 破解confluence插件的包是atlassian-universal-plugin-manager-plugin-2.22.jar, 結合Jira7.5.2裏面的破解文件, 發現atlassian-extras-decoder-v2-3.2.jar並未變化, 猜想該破解包應該支持到6.X之後的版本. 因此就下載了, confluence的6.6.1,也就是最新的版本.java

 

1、跟安裝Jira相似, 第一步是建立confluence數據庫, 使用以下命令建立:mysql

      mysql -u root -psql

     輸入密碼後, 登陸mysql>命令行, 並建立數據庫.數據庫

      create database confluence_db default character set utf8mb4 collate utf8mb4_general_ci;瀏覽器

    在Mysql中建立confluence用戶, 並容許遠程登陸.socket

      grant all privileges on confluence_db.* to 'confluence'@'%' identified by 'XXXXX' with grant option;ide

      grant all privileges on confluence_db.* to 'confluence'@'localhost' identified by 'XXXXX' with grant option;工具

      flush privileges;ui

      exit;

 

2、 按照confluence的安裝要求, 須要將"數據庫的事物隔離"設置爲READ-COMMITTED. 所以, 須要在mysql的my.cnf文件的[mysqld]配置節, 添加transaction_isolation = READ-COMMITTED, 修改完的配置文件以下:

      

      # For advice on how to change settings please see

      # http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html

      [client]

      port = 3306

      socket = /var/run/mysqld/mysqld.sock

      default-character-set = utf8

 

      [mysqld_safe]

      pid-file = /var/run/mysqld/mysqld.pid

      socket = /var/run/mysqld/mysqld.sock

      nice = 0

 

      [mysqld]

 

      # Remove leading # and set to the amount of RAM for the most important data

      # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.

      # innodb_buffer_pool_size = 128M

 

      # Remove leading # to turn on a very important data integrity option: logging

      # changes to the binary log between backups.

      # log_bin

 

      # These are commonly set, remove the # and set as required.

      # basedir = .....

      # datadir = .....

      # port = .....

      # server_id = .....

      # socket = .....

      pid-file = /var/run/mysqld/mysqld.pid

      socket = /var/run/mysqld/mysqld.sock

      port = 3306

      basedir = /usr

      datadir = /data/mysql/data-file

      tmpdir = /tmp

      log-error = /data/mysql/log/error.log

 

      lc-messages-dir = /usr/share/mysql

      explicit_defaults_for_timestamp

      character-set-server = utf8

 

      collation-server = utf8_bin
      transaction_isolation = READ-COMMITTED

 

      max_connections = 1000

      table_open_cache = 256

      query_cache_size = 1M

      tmp_table_size = 32M

      thread_cache_size = 8

 

      innodb_flush_log_at_trx_commit = 1

      innodb_log_buffer_size = 128M

      innodb_buffer_pool_size = 128M

      innodb_log_file_size = 10M

      innodb_thread_concurrency = 16

      innodb-autoextend-increment = 1000




      # Remove leading # to set options mainly useful for reporting servers.

      # The server defaults are faster for transactions and fast SELECTs.

      # Adjust sizes as needed, experiment to find the optimal values.

      # join_buffer_size = 128M

      # sort_buffer_size = 2M

      # read_rnd_buffer_size = 2M

      join_buffer_size = 128M

      sort_buffer_size = 32M

      read_rnd_buffer_size = 32M

      max_allowed_packet = 32M

 

      sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

      symbolic-links = 0

 

      !includedir /etc/mysql/conf.d/

      

  這裏有個錯誤的地方, 配置文件中把basedir設置成了/usr, 因此讀取配置文件的可能去找/usr/my.cnf文件, 因此這裏把/etc/my.cnf拷貝到/usr/my.cnf中, 防止萬一出問題.  

 

  配置修改完成後, 重啓mysql數據庫.

      service mysql start

 

3、安裝confluence, 將confluence6.6.1的安裝包atlassian-confluence-6.6.1-x64.bin和破解包一併經過samba服務傳到debian9.3的機器上/usr/atlassion目錄下.

  3.1  經過如下命令執行安裝操做:

      cd /usr/atlassian

      ./atlassian-confluence-6.6.1-x64.bin  

    以上2條命令後, 就開始安裝Confluence, 注意看安裝說明, 無非就是輸入'o'繼續安裝, 而後配置一下端口號, 只要按着提示來作就不會有問題.

   安裝到最後一步, 就是提示"是否要啓動Jira"的那一步, 選擇n, 不要啓動. 由於, 咱們要爆破, 你懂的.

 

  3.2  把破解包裏面的atlassian-extras-decoder-v2-3.2.jar和mysql-connector-java-5.1.42-bin.jar兩個文件複製到/opt/atlassian/confluence/confluence/WEB-INF/lib/目錄下便可. 其中atlassian-extras-decoder-v2-3.2.jar是破解confluence的文件, 另外一個mysql-connector-java-5.1.42-bin.jar是鏈接mysql的驅動包.

    把破解包裏面的atlassian-universal-plugin-manager-plugin-2.22.jar文件複製到/opt/atlassian/confluence/confluence/WEB-INF/atlassian-bundled-plugins/目錄下, 這裏須要【注意】當覆蓋完畢後, 檢查一下該文件的版本號, 我複製過去後並未提示覆蓋, 所以查看了如下有2個同名包, 只是最後的版本號不同, 原先的是atlassian-universal-plugin-manager-plugin-2.22.5.jar, 而我複製的破解包是2.22.jar, 這樣就好辦了. 把原先的2.22.5.jar包更名爲2.22.5.jar.bak , 再把破解包2.22.jar更名爲2.22.5.jar, 即: 把破解包複製過去後, 改末尾的版本號來達到覆蓋源文件的目的.

   覆蓋完畢後, 經過以下命令啓動confluence.  

       cd /opt/atlassian/confluence/bin

      ./start-confluence.sh

     備註, 關閉命令是 ./stop-confluence.sh

 

  3.3  Confluence啓動完畢後, 在瀏覽器中輸入地址: 192.168.X.X:8081端口, 便可訪問confluence的配置界面, 具體步驟以下:

    3.3.1 在首頁上, 將選擇"語言(Language)"選爲中文, 並選擇"產品安裝(Production Installation)".

    3.3.2 在得到插件頁面, 因爲沒有插件受權, 所以這裏不勾選插件, 直接下一步.

    3.3.3 受權碼頁面, 須要到Atlanssian的官網註冊30天的試用許可. 按說明操做, 隨後附上圖例. 只要注意, 序列號填成該頁面上顯示的便可.

    3.3.4 選擇數據庫設置頁面, 須要選擇外部數據庫mysql, 並填上我麼已經配置好的mysql數據庫信息.

    3.3.5 在漫長的等待以後, 進入加載內容頁面, 咱們選擇"空白站點"後繼續安裝.

    3.3.6 在配置用戶管理頁面, 咱們選擇"與Jira鏈接", 並填入Jira應用的相關信息.

    3.3.7 進入歡迎頁面, confluence的安裝配置就已經完成了.

 

  照例, 貼一些別人帖子的圖, 帖子地址以下:  https://yq.aliyun.com/articles/144747?t=t1

    

    

    

    

    

    

    

    

    

    

    

相關文章
相關標籤/搜索