安装环境:Centos 6.4 32位 confluence5.4.4
安装文件,安装图片均已打包 http://pan.baidu.com/s/1dDsLdVN
一、安装jdk,配置Java环境
(1)从官网下载jdk1.7
[ptt003@pfq ~]$ wget http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-i586.rpm?AuthParam=1447868874_00e936ba8683ad2a0b089d3c7e0d228a
(2)查看系统原版本jdk,并卸载openjdk
[ptt003@pfq ~]$ java -version java version "1.7.0_09-icedtea" OpenJDK Runtime Environment (rhel-2.3.4.1.el6_3-i386) OpenJDK Client VM (build 23.2-b09, mixed mode) [ptt003@pfq ~]$ rpm -qa|grep java java-1.6.0-openjdk-1.6.0.0-1.50.1.11.5.el6_3.i686 java-1.7.0-openjdk-1.7.0.9-2.3.4.1.el6_3.i686 tzdata-java-2012j-1.el6.noarch [ptt003@pfq ~]$ sudo rpm -e --nodeps java-1.6.0-openjdk-1.6.0.0-1.50.1.11.5.el6_3.i686 java-1.7.0-openjdk-1.7.0.9-2.3.4.1.el6_3.i686 tzdata-java-2012j-1.el6.noarch
(3)安装jdk1.7
[ptt003@pfq ~]$ sudo rpm -vih jdk-7u79-linux-i586.rpm Preparing... ########################################### [100%] 1:jdk ########################################### [100%] Unpacking JAR files... rt.jar... jsse.jar... charsets.jar... tools.jar... localedata.jar... jfxrt.jar... plugin.jar... javaws.jar... deploy.jar...
(4)测试安装是否成功
[ptt003@pfq ~]$ java -version java version "1.7.0_79" Java(TM) SE Runtime Environment (build 1.7.0_79-b15) Java HotSpot(TM) Client VM (build 24.79-b02, mixed mode, sharing) [ptt003@pfq ~]$ javac -version javac 1.7.0_7
(5)配置环境变量
改变当前用户:更改用户家目录下的.bashrc文件;改变全局环境变量:更改/etc/profile文件。添加以下内容,然后source /home/ptt003/.bashrc或者/etc/profile即可 JAVA_HOME=/usr/java/jdk1.7.0_79 JRE_HOME=/usr/java/jdk1.7.0_79/jre PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib export JAVA_HOME JRE_HOME PATH CLASSPATH
二、安装mysql,并创建一个confluence库
(1)yum安装mysl并添加开机自启动
[ptt003@pfq ~]$ sudo yum install -y mysql-server mysql mysql-devel [ptt003@pfq ~]$ sudo service mysqld start [ptt003@pfq ~]$ sudo chkconfig mysqld on [ptt003@pfq ~]$ chkconfig --list | grep mysqld mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off
(2)创建confluence库
给mysql root设置一个密码 [ptt003@pfq ~]$ sudo mysqladmin -u root password 'xxxxxx' 登陆mysql数据库 [ptt003@pfq ~]$ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 Server version: 5.1.73 Source distribution Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. 创建confluence库 mysql> create database confluence character set UTF8; Query OK, 1 row affected (0.00 sec) mysql> grant all on confluence.* to confluence@"%" identified by "confluence"; Query OK, 0 rows affected (0.01 sec) mysql> grant all on confluence.* to confluence@"localhost" identified by "confluence"; Query OK, 0 rows affected (0.00 sec) mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec) 退出 mysql> quit Bye
(3)解决中文显示乱码问题
[ptt003@pfq ~]$ sudo service mysqld stop [ptt003@pfq ~]$ sudo vi /etc/my.cnf [mysqld] character-set-server =utf8 :wq [ptt003@pfq ~]$ sudo service mysqld restart
三、安装confluence
(1)下载并解压confluence
[ptt003@pfq ~]$ rz -y 选择atlassian-confluence-5.4.4.tar.gz [ptt003@pfq ~]$ tar zxf atlassian-confluence-5.4.4.tar.gz [ptt003@pfq ~]$ cd atlassian-confluence-5.4.4 [ptt003@pfq atlassian-confluence-5.4.4]$ ll total 108 drwxr-xr-x. 2 ptt003 ptt003 4096 Nov 20 17:00 bin drwxr-xr-x. 2 ptt003 ptt003 4096 Nov 20 17:00 conf drwxr-xr-x. 25 ptt003 ptt003 4096 Nov 20 17:00 confluence drwxr-xr-x. 2 ptt003 ptt003 4096 Nov 20 17:00 lib -rw-r--r--. 1 ptt003 ptt003 38657 Nov 28 2011 LICENSE drwxr-xr-x. 3 ptt003 ptt003 4096 Mar 13 2014 licenses drwxr-xr-x. 2 ptt003 ptt003 4096 Nov 28 2011 logs -rw-r--r--. 1 ptt003 ptt003 574 Nov 28 2011 NOTICE -rw-r--r--. 1 ptt003 ptt003 2291 Mar 13 2014 README.html -rw-r--r--. 1 ptt003 ptt003 1212 Mar 13 2014 README.txt -rw-r--r--. 1 ptt003 ptt003 8680 Nov 28 2011 RELEASE-NOTES -rw-r--r--. 1 ptt003 ptt003 6836 Nov 28 2011 RUNNING.txt drwxr-xr-x. 2 ptt003 ptt003 4096 Nov 20 17:00 temp drwxr-xr-x. 2 ptt003 ptt003 4096 Mar 13 2014 webapps drwxr-xr-x. 2 ptt003 ptt003 4096 Nov 28 2011 work
(2)启动confluence
配置data目录 [ptt003@pfq atlassian-confluence-5.4.4]$ vim confluence/WEB-INF/classes/confluence-init.properties # confluence.home=c:/confluence/dat 修改此句,设置一个目录 confluence.home=/home/ptt003/atlassian-confluence-5.4.4/data :wq [ptt003@pfq atlassian-confluence-5.4.4]$ mkdir data 启动confluence [ptt003@pfq atlassian-confluence-5.4.4]$ ./bin/start-confluence.sh 查看是否成功启动 [ptt003@pfq bin]$ ps aux|grep java ptt003 2280 37.6 15.7 893844 162544 pts/0 Sl 17:05 0:05 /usr/java/jdk1.7.0_79/jre/bin/java -Djava.util.logging.config.file=/home/ptt003/atlassian-confluence-5.4.4/conf/logging.properties -Xms256m -Xmx512m -XX:MaxPermSize=256m -Djava.awt.headless=true -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/home/ptt003/atlassian-confluence-5.4.4/endorsed -classpath /home/ptt003/atlassian-confluence-5.4.4/bin/bootstrap.jar -Dcatalina.base=/home/ptt003/atlassian-confluence-5.4.4 -Dcatalina.home=/home/ptt003/atlassian-confluence-5.4.4 -Djava.io.tmpdir=/home/ptt003/atlassian-confluence-5.4.4/temp org.apache.catalina.startup.Bootstrap start ptt003 2301 0.0 0.0 4356 732 pts/0 S+ 17:06 0:00 grep java [ptt003@pfq bin]$ netstat -an|grep 8090 tcp 0 0 :::8090 :::* LISTEN
(3)开放防火墙8090端口,并访问confluence
[ptt003@pfq bin]$ sudo vim /etc/sysconfig/iptables # Firewall configuration written by system-config-firewall # Manual customization of this file is not recommended. *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 3690 -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 8090 -j ACCEPT -A INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j REJECT --reject-with icmp-host-prohibited COMMIT :wq
打开网页 http://服务器ip:8090,记下Server ID
图片confluence1
四、破解confluence
(1)上传破解文件,停止confluence
上传解压破解文件 [ptt003@pfq ~]$ rz -y 上传confluence.zip [ptt003@pfq 2]$ ll total 4344 -rw-r--r--. 1 ptt003 ptt003 4445867 Nov 19 02:19 confluence.zip [ptt003@pfq 2]$ unzip confluence.zip [ptt003@pfq conflu]$ ll total 4348 -rw-rw-r--. 1 ptt003 ptt003 632101 Apr 20 2015 confluence5.1-crack.zip -rw-rw-r--. 1 ptt003 ptt003 122673 Apr 20 2015 Confluence-Language-STD-CN.jar -rw-rw-r--. 1 ptt003 ptt003 3692324 Apr 20 2015 mysql-connector-java-5.1.24.tar.gz [ptt003@pfq conflu]$ unzip confluence5.1-crack.zip [ptt003@pfq conflu]$ tar zxf mysql-connector-java-5.1.24.tar.gz [ptt003@pfq conflu]$ ll total 4356 drwxrwxr-x. 3 ptt003 ptt003 4096 Dec 28 2010 confluence5.1-crack -rw-rw-r--. 1 ptt003 ptt003 632101 Apr 20 2015 confluence5.1-crack.zip -rw-rw-r--. 1 ptt003 ptt003 122673 Apr 20 2015 Confluence-Language-STD-CN.jar drwxr-xr-x. 4 ptt003 ptt003 4096 Mar 11 2013 mysql-connector-java-5.1.24 -rw-rw-r--. 1 ptt003 ptt003 3692324 Apr 20 2015 mysql-connector-java-5.1.24.tar.gz 停止confluence [ptt003@pfq atlassian-confluence-5.4.4]$ ./bin/stop-confluence.sh
(2)破解confluence
将/home/ptt003/atlassian-confluence-5.4.4/confluence/WEB-INF/lib/atlassian-extras-2.4.jar复制出来,替换掉破解包中的atlassian-extras-2.4.jar,执行破解文件,输入Name,及之前记录下来的Server ID,按.patch!破解atlassian-extras-2.4.jar,会得到一个新的atlassian-extras-2.4.jar,原来的变为atlassian-extras-2.4.jar.bak,再按.gen!得到key,复制破解后的atlassian-extras-2.4.jar 到/home/ptt003/atlassian-confluence-5.4.4/confluence/WEB-INF/lib覆盖原文件。
[ptt003@pfq conflu]$ cd confluence5.1-crack [ptt003@pfq confluence5.1-crack]$ ll total 152 -rw-rw-r--. 1 ptt003 ptt003 148874 Dec 7 2010 atlassian-extras-2.4.jar drwxrwxr-x. 2 ptt003 ptt003 4096 Oct 25 2010 iNViSiBLE [ptt003@pfq confluence5.1-crack]$ cp /home/ptt003/atlassian-confluence-5.4.4/confluence/WEB-INF/lib/atlassian-extras-2.4.jar . [ptt003@pfq confluence5.1-crack]$ ll total 148 -rw-rw-r--. 1 ptt003 ptt003 147405 Nov 20 21:17 atlassian-extras-2.4.jar drwxrwxr-x. 2 ptt003 ptt003 4096 Oct 25 2010 iNViSiBLE [ptt003@pfq confluence5.1-crack]$ cd iNViSiBLE/ [ptt003@pfq iNViSiBLE]$ ll total 580 -rw-rw-r--. 1 ptt003 ptt003 578992 May 10 2010 confluence_keygen.jar -rw-rw-r--. 1 ptt003 ptt003 1863 Sep 21 2010 keygen.bat -rw-rw-r--. 1 ptt003 ptt003 309 Sep 21 2010 keygen_MacOSX.sh -rw-rw-r--. 1 ptt003 ptt003 299 Sep 21 2010 keygen.sh [ptt003@pfq iNViSiBLE]$ chmod +x keygen.sh [ptt003@pfq iNViSiBLE]$ ./key.sh
图片confluence2-4
[ptt003@pfq iNViSiBLE]$ cd .. [ptt003@pfq confluence5.1-crack]$ ll total 292 -rw-rw-r--. 1 ptt003 ptt003 147405 Nov 20 21:22 atlassian-extras-2.4.bak -rw-rw-r--. 1 ptt003 ptt003 147064 Nov 20 21:22 atlassian-extras-2.4.jar drwxrwxr-x. 2 ptt003 ptt003 4096 Oct 25 2010 iNViSiBLE [ptt003@pfq lib]$ cp /home/ptt003/2/conflu/confluence5.1-crack/atlassian-extras-2.4.jar . [ptt003@pfq lib]$ ll |grep atlassian-extras-2.4.jar -rw-r--r--. 1 ptt003 ptt003 147064 Nov 20 21:29 atlassian-extras-2.4.jar
(3)复制数据库链接文件,启动Confluence
[ptt003@pfq confluence5.1-crack]$ cd /home/ptt003/2/conflu/mysql-connector-java-5.1.24 [ptt003@pfq mysql-connector-java-5.1.24]$ ll total 1248 -rw-r--r--. 1 ptt003 ptt003 45947 Mar 11 2013 build.xml -rw-r--r--. 1 ptt003 ptt003 215644 Mar 11 2013 CHANGES -rw-r--r--. 1 ptt003 ptt003 18122 Mar 11 2013 COPYING drwxr-xr-x. 2 ptt003 ptt003 4096 Nov 20 20:50 docs -rw-r--r--. 1 ptt003 ptt003 846263 Mar 11 2013 mysql-connector-java-5.1.24-bin.jar -rw-r--r--. 1 ptt003 ptt003 63924 Mar 11 2013 README -rw-r--r--. 1 ptt003 ptt003 66228 Mar 11 2013 README.txt drwxr-xr-x. 7 ptt003 ptt003 4096 Mar 11 2013 src [ptt003@pfq mysql-connector-java-5.1.24]$ cp mysql-connector-java-5.1.24-bin.jar /home/ptt003/atlassian-confluence-5.4.4/confluence/WEB-INF/lib 启动confluence [ptt003@pfq atlassian-confluence-5.4.4]$ ./bin/start-confluence.sh
重新打开网页 http://服务器ip:8090
输入之前得到的key
按下面的图,一步步设置即可顺利完成。
图片confluence5-12
五、汉化confluence
图片confluence13-19
重启confluence
[ptt003@pfq atlassian-confluence-5.4.4]$ ./bin/stop-confluence.sh [ptt003@pfq atlassian-confluence-5.4.4]$ ./bin/start-confluence.sh