1. confluence简介
Confluence是一个专业的企业知识管理与协同软件,也可以用于构建企业wiki。通过它可以实现团队成员之间的协作和知识共享。
Confluence为团队提供一个协作环境。在这里,团队成员齐心协力,各擅其能,协同地编写文档和管理项目。从此打破不同团队、不同部门以及个人之间信息孤岛的僵局,Confluence真正实现了组织资源共享。
Confluence使用简单,但它强大的编辑和站点管理特征能够帮助团队成员之间共享信息、文档协作、集体讨论。
2. confluence部署环境
[root@wiki ~]# uname -m
x86_64
[root@wiki ~]# uname -r
2.6.32-504.el6.x86_64
[root@wiki ~]# cat/etc/redhat-release
CentOS release 6.6 (Final)
3. confluence安装部署
3.1 安装jdk环境
[root@wiki ~]# tar -zxvf jdk-8u60inux-x64.tar.gz
[root@wiki ~]# mv jdk1.8.0_60 /usr/lcoal/
配置环境变量
[root@wiki ~]# vi /etc/profile
export JAVA_HOME=/usr/java/jdk1.8.0_60
export JRE_HOME=/usr/local/jdk1.8.0_60/jre
exportPATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
exportCLASSPATH=.:$JAVA_HOME/lib/jt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
更新
source /etc/profile
java -version
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build25.60-b23, mixed mode)
3.2 安装 mysql
安装最近mysql yum源
[root@wiki ~]# yum installhttp://repo.mysql.com//mysql-community-release-el6-5.noarch.rpm
[root@wiki ~]# yum install-y mysql-server mysql mysql-devel -y ####安装mysql
[root@wiki ~]# servicemysqld start #初始化及相关配置
[root@wiki ~]# cat/etc/my.cnf
##修改库字符集在[client]/[mysqld]下各添加一行:
default-character-set=utf8
[client]
default-character-set=utf8
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
character-set-server=utf8
collation-server=utf8_bin
default-storage-engine=INNODB
max_allowed_packet=256M
innodb_log_file_size=256M
[root@wiki ~]#/etc/init.d/mysqld restart ###重启服务
[root@wiki ~]# mysql -e" show variables like ‘%character%‘;" ##查看字符集
[root@wiki ~]# /etc/init.d/mysqldstart ##启动服务
Starting mysqld: [ OK ]
[root@wiki ~]# netstat-lntup |grep mysql
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 31687/mysqld
[root@wiki ~]# chkconfig--list | grep mysqld #查看mysql服务是不是开机自动启动
[root@wiki ~]# chkconfigmysqld on ####添加开机起动
[root@wiki ~]# mysqladmin -uroot password ‘123456‘ #通过该命令给root账号设置密码为 123456
[root@wiki ~]# mysql -u root-p #登录mysql数据库
mysql> show variableslike ‘%character%‘; ##查看字符集
mysql>drop user‘root‘@‘127.0.0.1‘; ###(可选)删除多余账号
mysql> CREATE DATABASEconfluence CHARACTER SET utf8 COLLATE utf8_bin;
Query OK, 1 row affected(0.00 sec)
###授权用户
mysql> grant all onconfluence.* to confluence@"localhost" identified by"wiki2016";
Query OK, 0 rows affected(0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected(0.00 sec)
3.3 安装 Confluence
上传atlassian-confluence-5.4.4-x64.bin软件包
[root@wiki ~]# chmod +xatlassian-confluence-5.4.4-x64.bin #赋予可执行权限
[root@wiki ~]#./atlassian-confluence-5.4.4-x64.bin #执行安装
根据提示输入,选择默认安装。
[root@confunce-wiki tools]#./atlassian-confluence-5.4.4-x64.bin
Unpacking JRE ...
Starting Installer ...
七月 14, 2016 11:23:55 上午 java.util.prefs.FileSystemPreferences$2 run
INFO: Created system preferencesdirectory in java.home.
This will install Confluence5.4.4 on your computer.
OK [o, Enter],Cancel [c]
o
Choose the appropriateinstallation or upgrade option.
Please choose one of thefollowing:
Express Install (usesdefault settings) [1], Custom Install (recommended for advanced users) [2, Enter], Upgrade an existing
Confluenceinstallation [3]2
Where should Confluence5.4.4 be installed?
[/opt/atlassian/confluence]##程序运行目录
/usr/local/confluence ##程序运行目录
Default location forConfluence data
[/var/atlassian/application-data/confluence]
/data/confluence##数据存放目录
Configure which portsConfluence will use.
Confluence requires two TCPports that are not being used by any other
applications on thismachine. The HTTP port is where you will access
Confluence through yourbrowser. The Control port is used to Startup and
Shutdown Confluence.
Use default ports (HTTP:8090, Control: 8000) - Recommended [1, Enter], Set custom value for HTTP and Control ports [2]
1
Confluence can be run in thebackground.
You may choose to runConfluence as a service, which means it will start
automatically whenever thecomputer restarts.
Install Confluence asService?
Yes [y, Enter], No[n]
y
Extracting files ...
Please wait a few momentswhile Confluence starts up.
Launching Confluence ...
Installation of Confluence5.4.4 is complete
Your installation ofConfluence 5.4.4 is now ready and can be accessed via
your browser.
Confluence 5.4.4 can beaccessed at http://localhost:8090
Finishing installation ...
#打开浏览器 输入 http://服务器ip:8090
3.4 Confluence 图形引导安装
访问已启动的Confluence
#打开浏览器 输入 http://服务器ip:8090
点击页面上的链接generate an evaluation license online按照官方提示,获取试用key,填入后进行下一步.
记下Server ID将ID号填入生成一个试用key复制到license key内点击自定义安装
解压并上传mysql driver 并重启
[root@wiki tools]# cpmysql-connector-java-5.1.32-bin.jar /usr/local/confluence/confl
[root@wikitools]# /etc/init.d/confluence restart
选择数据库,选择mysql数据库,点 Externam Database(注意必须先上传mysql driver,并重启,否则会报错)
grant all on confluence.* toroot@"localhost" identified by "wiki2016";
这里应该输入前面连接confluence数据库授权用户密码
后面的设置主要加载内容(我选择Empty Site)、用户配置、设置Confluence 管理员密码信息等(各位自行根据自己的环境来做)
3.5 Confluence 破解
复制上面下载的破解文件到/opt/atlassian/confluence/confluence/WEB-INF/lib下,重启服务
[root@wiki tools]# mvatlassian-extras-2.4.jar /usr/local/confluence/confluence/WEB-INF/lib/
[root@wiki tools]# /etc/init.d/confluence restart
3.6 Confluence 汉化
[root@wiki tools]#
cp Confluence-5.4.4-language-pack-zh_CN.jar/usr/local/confluence/confluence/WE
B-INF/lib/
[root@wiki tools]# /etc/init.d/confluencestart
用管理员帐号登陆,点击右上角的add-ones进入插件安装界面,进入后再点击Upload add-on上传下载的汉化包,再从右侧的Language选择中文即可.
查看Confluence 破解信息
本文出自 “Linux运维之路” 博客,请务必保留此出处http://rw2016.blog.51cto.com/7690222/1834450
原文地址:http://rw2016.blog.51cto.com/7690222/1834450