1. 程式人生 > >CentOS 6.5下安裝Confluence 5.4

CentOS 6.5下安裝Confluence 5.4

shell visible pri fail 文件中 false centos 6 chm var

1、主機信息
IP 
    Confluence Server 10.64.10.2
    MySQL Server 10.64.10.11

OS
    Confluence CentOS 6.5 帶桌面環境
    MySQL CentOS 6.5 可以不帶桌面環境

2、安裝配置confluence

2.1、建庫和創建賬戶

在mysql server 10.64.10.11上建confluence庫和相關賬戶

mysql> create database confluence character set utf8;
mysql> grant all on confluence.* to confluence@‘10.64.10.2‘ identified by ‘confpassword‘;
mysql> flush privileges;

2.2、安裝jdk

Shell>rpm -ivh jdk-7u79-linux-x64.rpm

2.3、安裝confluence

(1)、軟件清單

shell>cd /root/soft/confluence
shell>ll
總用量 245524
-rwxr-xr-x. 1 root root 246958968 4月  20 2015 atlassian-confluence-5.4.4-x64_1.bin  #confluence主程序
-rw-r--r--. 1 root root    632101 4月  20 2015 confluence5.1-crack.zip #破解包
-rw-r--r--. 1 root root    122673 4月  20 2015 Confluence-Language-STD-CN.jar #中文語言包
-rw-r--r--. 1 root root   3692324 4月  20 2015 mysql-connector-java-5.1.24.tar.gz #mysql的java連接器

(2)、開始安裝confluence

shell>chmod a+x atlassian-confluence-5.4.4-x64_1.bin 
shell>./atlassian-confluence-5.4.4-x64_1.bin 

安裝輸出信息

shell>./atlassian-confluence-5.4.4-x64_1.bin 
Unpacking JRE ...
Starting Installer ...
七月 27, 2016 9:53:49 下午 java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.

This will install Confluence 5.4.4 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]

Where should Confluence 5.4.4 be installed?
[/opt/atlassian/confluence]

Default location for Confluence data
[/var/atlassian/application-data/confluence]

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]

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]

Extracting files ...

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

(3)、安裝總結:

? 安裝版本:Confluence 5.4.4
? 主目錄:/opt/atlassian/confluence
? 數據目錄:/var/atlassian/application-data/confluence
? 安裝confluence作為服務,開機啟動
? Web訪問:http://localhost:8090

2.4、設置iptables

cat /etc/sysconfig/iptables
# Generated by iptables-save v1.4.7 on Wed Jul 27 22:01:31 2016
*filter
:INPUT DROP [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [269:392806]
#confluence
-A INPUT  -p tcp -m tcp --dport 8090 -j ACCEPT 
#
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT 
-A INPUT -p icmp -j ACCEPT 
-A INPUT -i lo -j ACCEPT 
-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT 
-A INPUT -j REJECT --reject-with icmp-host-prohibited 
-A FORWARD -j REJECT --reject-with icmp-host-prohibited 
COMMIT
# Completed on Wed Jul 27 22:01:31 2016

2.5、網頁訪問

瀏覽器輸入:http://10.64.10.2:8090

技術分享圖片

Server ID B70E-DR6F-9GKF-GN2A(記下來,有用)

2.6、準備破解

(1)、先停止服務

Shell>/etc/init.d/confluence stop

(2)、解壓crack文件

shell>unzip confluence5.1-crack.zip 
Archive:  confluence5.1-crack.zip
   creating: confluence5.1-crack/
  inflating: confluence5.1-crack/atlassian-extras-2.4.jar  
   creating: confluence5.1-crack/iNViSiBLE/
  inflating: confluence5.1-crack/iNViSiBLE/confluence_keygen.jar  
  inflating: confluence5.1-crack/iNViSiBLE/keygen.bat  
  inflating: confluence5.1-crack/iNViSiBLE/keygen.sh  
  inflating: confluence5.1-crack/iNViSiBLE/keygen_MacOSX.sh  
[root@DL_OA_Confluence_01 confluence]# 
[root@DL_OA_Confluence_01 confluence]# 

查看破解文件中文件列表


shell>tree
.
├── atlassian-extras-2.4.jar
└── iNViSiBLE
    ├── confluence_keygen.jar
    ├── keygen.bat
    ├── keygen_MacOSX.sh
    └── keygen.sh

1 directory, 6 files

(3)、進入到桌面環境

在桌面環境中運行./keygen.sh

Shell>cd /root/soft/confluence/confluence5.1-crack/iNViSiBLE

技術分享圖片

path選項選擇jar包
gen生成key

復制key

AAABLQ0ODAoPeJxtkF1vgjAUhu/7K5rsugTKFDVpMgbVOAWMaJZddvXommGRthj990OZN8suz8f75
Dnn6R12+K2tMI0wpZMgnAwCnJQbTP1giFKw0qiTU7VmSa33VQtaAsrb4yeYYr+1YCwjAUoMiNtSK
hywW5L4EaER6jJOSJeLI7CLEnXTINlhvK6nzsCcaeGxwzOhKjYKR8PnsR8EL03jyfqI+FlU7Z3N9
qKy0OeXSoK2sLme4M5Oiizj62QeL1GH0Q606Dz55aTMtXcKw4gElNBBD3hckFStdWDyegeW+ajkO
fsotjiLFxxnHMe4jFO8ivM09lBhDkIr28sc5Lf1pEYlmDOYecpeI5+TdD2ckvFsMSWznMboV7ObL
ufpo/rfatUa+SUs/PngDxjohI4wLAIUDmoRV+bH9mMcAFUNqUv3Z5JXr/ICFDSPFIwEE/5jhjHZz
Ya+AZlBW7a/X02f3

(4)、拷貝jar包

cp atlassian-extras-2.4.jar /opt/atlassian/confluence/confluence/WEB-INF/lib/
cp mysql-connector-java-5.1.24-bin.jar  /opt/atlassian/confluence/lib/

(5)、啟動服務

Shell>service confluence start

(6)、復制key到瀏覽器

重新打開瀏覽器訪問 http://10.64.10.2:8090
將key復制到瀏覽器裏

(7)、配置數據庫

jdbc:mysql://10.64.10.11:3306/confluence?sessionVariables=storage_engine%3DInnoDB&autoReconnect=true&failOverReadOnly=false&useUnicode=true&characterEncoding=utf8
jdbc:mysql://10.64.10.11:3306/confluence?sessionVariables=storage_engine%3DInnoDB

至此confluence安裝配置配置完成

CentOS 6.5下安裝Confluence 5.4