标签:confluence
准备工作
1)操作系统linux
2)软件包
把4个 软件包放在 /confluence
atlassian-confluence-5.8.6.tar.gz jdk-8u51-linux-x64.gz Confluence-5.7.1-language-pack-zh_CN.jar mysql-5.5.19.tar.gz mysql-connector-java-5.1.31-bin.jar
Windows准备 jdk-8u51-windows-x64.exe atlassian-extras-2.4.jar confluence_keygen.jar
1)双击安装jdk-8u51-windows-x64.exe
2)双击confluence_keygen.jar,会打开一个界面,
点击 .patch! ,选择atlassian-extras-2.4.jar ,此时会生成一个新的atlassian-extras-2.4.jar,原有的变成 了atlassian-extras-2.4.jar.bak
3)把新生成的atlassian-extras-2.4.jar改名为atlassian-extras-3.2.jar
把atlassian-extras-3.2.jar 上传至 /confluence
解压atlassian-confluence-5.8.6.tar.gz
# tar zxf atlassian-confluence-5.8.6.tar.gz
# cd /confluence/atlassian-confluence-5.8.6/confluence/WEB-INF/lib/
#ls atlassian-extras-*
atlassian-extras-api-3.2.jar atlassian-extras-core-3.2.jar atlassian-extras-decoder-v2-3.2.jar atlassian-extras-common-3.2.jar atlassian-extras-decoder-api-3.2.jar atlassian-extras-legacy-3.2.jar
删除atlassian-extras开头的6个包,并把atlassian-extras-3.2.jar复制或移动进来
# rm -f atlassian-extras-*
# cp /confluence/atlassian-extras-3.2.jar ./
修改confluence的“家目录”
# vim confluence/WEB-INF/classes/confluence-init.properties
confluence.home=/data
# mkdir /data
若想启动 /confluence/atlassian-confluence-5.8.6/bin/startup.sh 还需要java环境
这个版本需要jdk1.8的,下面为jdk的安装步骤
1)安装 JDK (Java Development Kit)
# cd /confluence/
# tar zxf jdk-8u51-linux-x64.gz
# mv jdk1.8.0_51 /usr/lib/jvm/java-8u5-sun
# cd /usr/lib/jvm/java-8u5-sun/
# JAVA_HOME=/usr/lib/jvm/java-8u5-sun/
# PATH=$JAVA_HOME/bin:$PATH
# export JAVA_HOME
# export PATH
# java -version #出现以下信息表示环境
java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.51-b03, mixed mode)
# vim /etc/profile 写在配置文件里永久有效
55 JAVA_HOME=/usr/lib/jvm/java-8u5-sun
56 export JAVA_HOME
57 PATH=$JAVA_HOME/bin:$PATH
58 export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL
9.启动 startup.sh
# cd /confluence/atlassian-confluence-5.8.6/bin/
./startup.sh
# echo " ./confluence/atlassian-confluence-5.8.6/bin/startup.sh" >> /etc/rc.local
# netstat -an | grep 8090 默认端口号
tcp 0 0 :::8090 :::*
LISTEN
10.浏览器访问 http://172.16.0.203:8090 并设置
选择 Production Installation 并 next
2).Get add-ons
不选任何,直接next
3).License key
会给一个server ID,把这个ID输入到confluence_keygen.jar打开的界面
NAME:随便输入点什么,内容不要太短,否则会提示Name太短
点击 .gen!
把生成的Key内容复制,粘贴到 license key 的Confluence,然后下一步
4)选择数据库:两种方式
这里选择外部数据库--MYSQL
5)把mysql-connector-java-5.1.31-bin.jar 复制到atlassian-confluence-5.8.6/confluence/WEB-INF/lib/
# cp mysql-connector-java-5.1.31-bin.jar atlassian-confluence-5.8.6/confluence/WEB-INF/lib/
6)停掉java进程,再启动 ./startup
7)重新访问http://172.16.0.203:8090 ,选择外部数据库---MYSQL,点击那个按钮,会看到
jdbc:mysql://localhost/confluence?sessionVariables=storage_engine%3DInnoDB&useUnicode=true&characterEncoding=utf8
mysql> create database confluence character set utf8 COLLATE utf8_bin;
mysql> grant all privileges on confluence.* to ‘user‘@‘localhost‘ identified by ‘password‘;
汉化:
把Confluence-5.7.1-language-pack-zh_CN.jar 复制到atlassian-confluence-5.8.6/confluence/WEB-INF/lib/
# cp Confluence-5.7.1-language-pack-zh_CN.jar atlassian-confluence-5.8.6/confluence/WEB-INF/lib/
本文出自 “梦三国” 博客,请务必保留此出处http://nmszh.blog.51cto.com/4609205/1682002
标签:confluence
原文地址:http://nmszh.blog.51cto.com/4609205/1682002