一. 安装confluence-5.4.4
1. 安装JAVA
yum –y update #更新所有套件
mkedir/usr/java
tar zxvf jdk-7u80-linux-x64.tar.gz–C /usr/java
vim /etc/profile
#在最后加入以下几行:
exportPATH=$PATH:/usr/local/mysql/bin
export JAVA_HOME=/usr/java/jdk1.7.0_80
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
2. 创建mysql库
mysql –u root –p
create databaseconfluence character set UTF8;
grant all onconfluence.* to confluence@"%" identified by "confluence";
grant all onconfluence.* to confluence@"localhost" identified by"confluence";
FLUSHPRIVILEGES;
vi my.cnf
在[mysqld]下面加上character-set-server=utf8
Service mysqldrestart
3. 安装Confluence
拷入atlassian-confluence-5.4.4-x64.bin
chmod +xatlassian-confluence-5.4.4-x64.bin
./atlassian-confluence-5.4.4-x64.bin #执行安装
根据提示输入,选择默认安装。
#打开网页 http://服务器ip:8090,记下Server ID
serviceconfluence stop #停掉Confluence 服务
#将/opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-2.4.jar复制出来。替换破解包/usr/local/src/install/confluence5.1-crack/atlassian-extras-2.4.jar,执行破解文件,输了Name,及之前记录下来的ServerID,按.patch!破解atlassian-extras-2.4.jar
复制破解后的atlassian-extras-2.4.jar到/opt/atlassian/confluence/confluence/WEB-INF/lib/覆盖源文件。
cp /usr/local/src/install/mysql-connector-java-5.1.36opt /atlassian/confluence/confluence/WEB-INF/lib/#mysql驱动
#重新打开网页 http://服务器ip:8090
#输了之前得到的key,按图输入配置信息完成安装。
二.安装配置Crowd
1. 修改配置文件
tar zxvf atlassian-crowd-2.8.3.tar.gz –C /usr/local/
mkdir –p /usr/local/data/crowd
cd /usr/local/atlassian-crowd-2.8.3/crowd-webapp/WEB-INF/classes/
vim crowd-init.properties 将
#crowd.home=/var/crowd-home 修改为
crowd.home=/usr/local/date/crowd
2. 创建Crowd数据库
mysql> create database crowd character set utf8 collate utf8_bin;
mysql> grant all on crowd.* to crowd@"%" identified by"crowd";
mysql>grant all on crowd.* to crowd@"localhost" identified by"crowd";
mysql> flush privileges;
3. 破解crowd程序加载驱动(与破解confluence类似)
./start_crowd.sh #安装目录下启动
打开http://crowdIP:8095,记住serverID,
./stop_crowd.sh #停止服务
将crowd安装目录/crowd-webapp/WEB-INF/lib目录下atlassian-extras-3.2.jar复制到破解程序/usr/local/src/keygen_crowd2.1下,改名为atlassian-extras-2.6.jar,破解后改回atlassian-extras-3.2.jar,覆盖到原目录。
将JDBC驱动包mysql-connector-java-5.1.6-bin.jar上传到/usr/local/crowd/apache-tomcat/lib 目录
破解完成后启动服务,登录web界面设置。