分类: LINUX
2011-06-28 20:15:58
一、选择合适的java版本安装并配置环境变量
1、安装jdk软件包
sh ./jdk-6u22-linux-x64.bin
mv -f jdk1.6.0_22 /usr/local/
rm -rf /usr/local/jdk
ln -s /usr/local/jdk1.6.0_22 /usr/local/jdk
rm -rf /usr/bin/java
ln -s /usr/local/jdk/bin/java /usr/bin/java
2、配置环境变量
vim ~/.bashrc
JAVA_HOME=/usr/local/jdk
export JAVA_HOME
PATH=$JAVA_HOME/bin/:$PATH
export PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export CLASSPATH
3、加载环境变量
source ~/.bashrc
二、配置mysql
1、修改mysql配置文件,并重启mysql(新版本是如下设置老版本是default-character-set=utf8)
[client]
character-set-server = utf8
[mysqld]
character-set-server = utf8
2、创建数据库,建立用户并授权。
mysql>create database confluence character set UTF8;
mysql>grant all on confluence.* to confluence@"localhost" identified by "confluence";
mysql> flush privileges;
三、部署confluence
1、解压confluence包并配置数据储存目录
tar -xvf confluence-3.2.1_01-std.tar.gz -C /usr/local/
ln -s /usr/local/confluence-3.2.1_01-std /usr/local/confluence
mkdir -p /usr/local/confluence/data
echo "confluence.home=/usr/local/confluence/data" >>/usr/local/confluence\
/confluence/WEB-INF/classes\
/confluence-init.properties
确认一下
cat /usr/local/confluence/confluence/WEB-INF/classes/confluence-init.properties
2、下载汉化包,并进行汉化。
wget
cp -f confluence-zh_CN-plugin.jar /usr/local/confluence/confluence/WEB-INF/lib/
3、启动confluence。
sh /usr/local/confluence/bin/startup.sh
If you encounter issues starting up Confluence Standalone, please see the Installation guide at
Using CATALINA_BASE: /usr/local/confluence
Using CATALINA_HOME: /usr/local/confluence
Using CATALINA_TMPDIR: /usr/local/confluence/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/local/confluence/bin/bootstrap.jar
4、用浏览器访问:
复制Server ID:xxxxx
5、confluence破解
cd iNViSiBLE/
(1)java -jar confluence_keygen.jar,把复制的service ID粘贴到service ID框子,其他的随便填写。
(2)选择atlassian-extras-2.4.jar路径
(/usr/local/confluence/confluence/WEB-INF/lib/atlassian-extras-2.4.jar)
(3)生成licence
(4)输入licence
(5)选择定制安装(custome Installation)
(6)选择mysql数据库
(7)选择Direct JDBC
(8)、输入mysql的用户名及密码
(9)选择Example Site
(10)设置admin的用户名及密码
(11)、选择start using Confluece now.
(12)输入admin用户的密码
(13)选择Confluence Admin
(14)选择语言设置为汉语
(15)查看licence