1、主机信息
IP
Confluence Server 10.64.10.2
MySQL Server 10.64.10.11OS
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.rpm2.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 andShutdown 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:8090Finishing 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 20162.5、网页访问
浏览器输入:http://10.64.10.2:8090