码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS 6.5下安装Confluence 5.4

时间:2018-01-27 23:08:22      阅读:286      评论:0      收藏:0      [点我收藏+]

标签:nis   connector   jar包   eject   auto   images   use   extra   主程序   

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

标签:nis   connector   jar包   eject   auto   images   use   extra   主程序   

原文地址:http://blog.51cto.com/weixiaoxin/2065881

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!