1 下载安装包及破解包
安装包下载地址:https://www.atlassian.com/software/confluence/download-archives
or
wget https://downloads.atlassian.com/software/confluence/downloads/atlassian-confluence-6.14.1-x64.bin
破解包下载地址:http://down.51cto.com/data/2236416
atlassian-confluence-6.14.1-x64.bin
confluence5.6.6-crack.zip
mysql-connector-java-5.1.42-bin.jar
2、Linux服务器部署
习惯用Linux平台,Centos7.x版本(CentOS Linux release 7.6.1810 (Core)),Linux本身安装部署好,做测试为方便安装后就直接把防火墙,Selinux都关闭吧。
3 创建数据库
Centos7默认也没有Mysql源,默认支持的是一个类mysql的数据库MariaDB,所以先安装Mysql,使用如下命令:
#wgethttp://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
#rpm -ivh mysql-community-release-el7-5.noarch.rpm
#yum install mysql mysql-server mysql-devel (安装mysql)
#chown -R root:root /var/lib/mysql
#service mysql restart
#mysql -u root -p (修改root密码)
>use mysql;
>UPDATE user SET Password=PASSWORD('newpassword') WHERE user='root';
>FLUSH PRIVILEGES;
-- 创建数据库
mysql> create user 'confluenceuser'@'localhost' identified by 'confluenceuser';
Query OK, 0 rows affected (0.04 sec)
mysql> create database confluence character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.04 sec)
mysql> grant all privileges on confluence.* to 'confluenceuser'@'localhost' identified by 'confluenceuser';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> exit
安装好Mysql后,修改/etc/my.cnf,在[mysqld]段中增加:
default-storage-engine=INNODB
max_allowed_packet = 34M
innodb_log_file_size = 256M
binlog_format=row
transaction-isolation=READ-COMMITTED
collation_server=utf8_unicode_ci
character_set_server=utf8
skip-character-set-client-handshake
如果在后面的安装过程中连接数据库报错:不正确的隔离级别;您的数据库必须使用'READ-COMMITTED'作为默认隔离级别。
- 解决方法:
mysql>SET GLOBAL tx_isolation='READ-COMMITTED';
flush privileges;
3 安装
chmod +x atlassian-confluence-6.1.3-x64.bin
./atlassian-confluence-6.1.3-x64.bin
安装过程中需要交互确认:
Unpacking JRE ...
Starting Installer ...
五月 17, 2017 2:43:16 下午 java.util.prefs.FileSystemPreferences$1 run
信息: Created user preferences directory.
This will install Confluence 6.1.3 on your computer.
OK [o, Enter], Cancel [c]
Choose the appropriate installation or upgrade option.
Please choose one of the following:
Express Install (uses default settings) [1],
Custom Install (recommended for advanced users) [2, Enter],
Upgrade an existing Confluence installation [3]
See where Confluence will be installed and the settings that will be used.
Installation Directory: /opt/atlassian/confluence
Home Directory: /var/atlassian/application-data/confluence
HTTP Port: 8091
RMI Port: 8000
Install as service: Yes
Install [i, Enter], Exit [e]
i
Extracting files ...
Please wait a few moments while we configure Confluence.
Installation of Confluence 6.1.3 is complete
Start Confluence now?
Yes [y, Enter], No [n]
y
Please wait a few moments while Confluence starts up.
Launching Confluence ...
Installation of Confluence 6.1.3 is complete
Your installation of Confluence 6.1.3 is now ready and can be accessed via
your browser.
Confluence 6.1.3 can be accessed athttp://localhost:8091
Finishing installation ...
安装完成后,就可以通过ip:8091访问配置页面,如下图:
4 破解
1、如上图,保存获取到的服务器ID,关闭confluence:
#/etc/init.d/confluence stop
2、解压破解包,将confluence_keygen.jar 拷贝到windows。从/opt/atlassian/confluence/confluence/WEB-INF/lib中,拷贝atlassian-extras-decoder-v2- 3.2.jar到windows,并重命名为atlassian-extras-2.4.jar。
3、在windows下,生成License Key。
cmd 中执行:
java -jar confluence_keygen.jar
然后把上面保存的Server ID(服务器ID)粘贴进去,然后点击“.gen!”,保存生成的key。
4、打补丁。点击“.patch!”,选择第2步中重命名的atlassian-extras-2.4.jar,会生成新的atlassian-extras-2.4.jar,旧的jar包会被改为.bak。
5、上传新的atlassian-extras-2.4.jar 和 mysql-connector-java-5.1.42-bin.jar到/opt/atlassian/confluence/confluence/WEB-INF/lib,并且删除atlassian-extras-decoder-v2-3.2.jar。
6、启动confluence
/etc/init.d/confluence start
7、把生成的key复制粘贴到License Key框中,点击“Next”,如果顺利进入选择数据库页面,说明破解成功
5 配置
按照提示,一步步进行配置
选择外部数据库MySQL,建议选择:Manage Users and Groups With JIRA,首先要在JIRA中创建JIRA用户服务器,Confluence中配置时会需要,如下:
Confluence安装向导进入如下页面:
待上面updating完成,就大功告成了
点Start按钮跳转到登录页面,直接用jira里的用户名密码登录即可。
参考资料:
网友评论