1、介紹
java
confluence是一個專業的企業知識管理與協同軟件,能夠用於構建企業wiki。經過它能夠實現團隊成員之間的協做和知識共享。如今大多數公司都會部署一套confluence,用做內部wiki。如今confluence已收費,那麼下面將介紹下安裝破解confluence的操做記錄(適用於centos6/7系統環境):mysql
2、安裝java環境
sql
注意confluence和jira環境,最好安裝oracle的java,默認的openjdk是不行數據庫
#java安裝省略。。。 #配置java環境 root@localhost:~# vi /etc/profile JAVA_HOME=/usr/java/jdk1.8.0_131 JAVA_BIN=/usr/java/jdk1.8.0_131/bin PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/bin:/sbin/ CLASSPATH=.:/lib/dt.jar:/lib/tools.jar export JAVA_HOME JAVA_BIN PATH CLASSPATH #生效小 root@localhost:~#source /etc/profile #查看版本 root@localhost:~#java -version
3、安裝mysql環境
centos
注意:
瀏覽器
centos7下的MariaDB,能夠根據本身的須要修改tomcat
#安裝MySQL [root@localhost ~]# yum -y install mariadb mariadb-server #啓動mysql服務 [root@localhost ~]# systemctl start mariadb #設置開機啓動 [root@localhost ~]# systemctl enable mariadb 進行MariaDB的相關簡單配置,設置密碼,會提示先輸入密碼 [root@test-vm03 ~]# 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] <– 是否從新加載權限表,回車 #登錄 [root@localhost ~]# mysql -p123456 Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 3 Server version: 5.5.56-MariaDB MariaDB Server Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | +--------------------+ 4 rows in set (0.01 sec) MariaDB [(none)]> #配置MariaDB的字符集: -> 首先是配置文件/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 #配置文件/etc/my.cnf.d/client.cnf,在[client]中添加 default-character-set=utf8 #配置文件/etc/my.cnf.d/mysql-clients.cnf,在[mysql]中添加 default-character-set=utf8 最後是重啓MariaDB,並登錄MariaDB查看字符集 [root@localhost my.cnf.d]# systemctl restart mariadb [root@localhost ~]# mysql -p123456 Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 4 Server version: 5.5.56-MariaDB MariaDB Server Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> show variables like "%character%";show variables like "%collation%"; +--------------------------+----------------------------+ | Variable_name | Value | +--------------------------+----------------------------+ | character_set_client | utf8 | | character_set_connection | utf8 | | character_set_database | utf8 | | character_set_filesystem | binary | | character_set_results | utf8 | | character_set_server | utf8 | | character_set_system | utf8 | | character_sets_dir | /usr/share/mysql/charsets/ | +--------------------------+----------------------------+ 8 rows in set (0.00 sec) +----------------------+-----------------+ | Variable_name | Value | +----------------------+-----------------+ | collation_connection | utf8_unicode_ci | | collation_database | utf8_unicode_ci | | collation_server | utf8_unicode_ci | +----------------------+-----------------+ 3 rows in set (0.00 sec) MariaDB [(none)]> #Confluence建立對應的數據庫、用戶名和密碼 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 'confluencepasswd'; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> flush privileges; Query OK, 0 rows affected (0.00 sec)
4、下載並安裝破解confluence6.3bash
#下載到本機的/opt目錄下,給二進制文件授執行權限,而後安裝 [root@localhost opt]# ls atlassian-confluence-6.3.1-x64.bin atlassian-extras-decoder-v2-3.2.jar [root@localhost opt]# chmod +x atlassian-confluence-6.3.1-x64.bin [root@localhost opt]# ./atlassian-confluence-6.3.1-x64.bin
經過上圖能夠看出confluence安裝到了/opt/atlassian/confluence和/var/atlassian/application-data/confluence目錄下,而且confluence默認監聽的端口是8090.一路默認安裝便可!服務器
注意:oracle
confluence的主要配置文件爲/opt/atlassian/confluence/conf/server.xml,和jira相似。此server.xml至關於tomcat中的server.xml配置文件,若是要修改訪問端口,能夠這裏修改。
若是要修改confluence的數據目錄,能夠在安裝的時候,在安裝過程當中進行更換(默認是/var/atlassian/application-data/confluence)
#查看confluence端口是否起來了 [root@localhost opt]# lsof -i:8090 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 18100 confluence 36u IPv6 188496 0t0 TCP *:8090 (LISTEN) #重啓confluence命令 [root@localhost opt]# /etc/init.d/confluence restart
瀏覽器裏輸入http://ip地址:8090,訪問confluence
選擇產品安裝並點擊下一步,繼續安裝
不用勾選
破解confluence受權碼的操做
#複製上述截圖中的Server ID(即BBMEC-9EIB-35GW-URME),而後關閉confluence [root@localhost opt]# /etc/init.d/confluence stop [root@localhost opt]# lsof -i:8090 [root@localhost opt]# #文件替換atlassian-extras-decoder-v2-3.2.jar文件(該文件下載到/opt下,替換前必須作以前的文件備份,方便回退) [root@localhost opt]# cp /opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.2.jar /mnt/ [root@localhost opt]# cp /opt/atlassian-extras-decoder-v2-3.2.jar /opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.2.jar #文件替換confluence自帶的atlassian-universal-plugin-manager-plugin-2.22.1.jar(該文件下載到/opt下,替換前必須作以前的文件備份,方便回退) [root@localhost opt]# mv /opt/atlassian/confluence/confluence/WEB-INF/atlassian-bundled-plugins/atlassian-universal-plugin-manager-plugin-2.22.1.jar /mnt/ [root@localhost opt]# cp atlassian-universal-plugin-manager-plugin-2.22.jar /opt/atlassian/confluence/confluence/WEB-INF/atlassian-bundled-plugins/ [root@localhost opt]# /etc/init.d/confluence start [root@localhost opt]# lsof -i:8090 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 18100 confluence 36u IPv6 188496 0t0 TCP *:8090 (LISTEN)
而後繼續訪問http://172.16.220.129:8090,接着註冊confluence的key
如下須要進行×××
配置序列號
稍微等一下子,就會自動彈出下面的信息,點擊"Yes"
如上,右邊能夠看到這個confluence的license key(把這些key手動粘貼到上面confluence安裝中"受權碼"的"服務器ID"下面的空白框裏便可)
選擇外界數據庫
若是出現下面報錯(缺乏java的mysql驅動)
解決辦法:
#下載java的mysql驅動:mysql-connector-java-5.0.8-bin.jar #下載地址:https://pan.baidu.com/s/1c2CQzcO #提取密碼:ku8s [root@localhost opt]# cp mysql-connector-java-5.0.8-bin.jar /opt/atlassian/confluence/lib/ [root@localhost opt]# /etc/init.d/confluence restart #而後繼續訪問http://172.16.220.129:8090/,配置數據庫
下面在首次鏈接mysql的時候(使用上面MariaDB裏面受權的信息鏈接,即用戶名:confluence,密碼:confluencepasswd)
注意:
若是mysql默認端口不是3306,須要在url中添加,如:localhost:3309
4、配置郵件
5、用戶管理
以下在管理員帳號下"添加用戶",添加後給用戶設置一個初始密碼,用戶收到郵件後,能夠登錄修改密碼。