发表于: 2018-03-26 19:54:41
2 714
Confluence是一个专业的企业知识管理与协同软件,可以用于构建企业wiki。通过它可以实现团队成员之间的协作和知识共享。现在大多数公司都会部署一套confluence,用作内部wiki。现在confluence已收费,那么下面将介绍下安装破解confluence的操作记录(适用于centos6/7系统环境):
一、安装jdk8环境(注意confluence和jira环境,最好安装oracle的java,默认的openjdk是不行的)。
将jdk-8u131-linux-x64.rpm下载到/opt目录下
下载地址:https://pan.baidu.com/s/1pLaAjPp
提取密码:x27s
[root@test-vm03 ~]# cd /opt/
[root@test-vm03 opt]# lljdk-8u131-linux-x64.rpm
-rw-r--r--. 1 root root 169983496 Sep28 2017 jdk-8u131-linux-x64.rpm
[root@test-vm03 opt]# rpm -ivhjdk-8u131-linux-x64.rpm
[root@test-vm03 opt]# vim /etc/profile
......
JAVA_HOME=/usr/java/jdk1.8.0_131
JAVA_BIN=/usr/java/jdk1.8.0_131/bin
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/bin:/sbin/
CLASSPATH=.:/lib/dt.jar:/lib/tools.jar
export JAVA_HOME JAVA_BIN PATH CLASSPATH
[root@test-vm03 opt]# source /etc/profile
[root@test-vm03 opt]# java –version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build25.131-b11, mixed mode)
二、安装mysql环境(这里用的是centos7下的MariaDB)
[root@test-vm03 ~]# yum -y install mariadb mariadb-server
[root@test-vm03 ~]# systemctl start mariadb
[root@test-vm03 ~]# systemctl enablemariadb
接下来进行MariaDB的相关简单配置,设置密码,会提示先输入密码
[root@test-vm03 ~]#mysql_secure_installation
首先是设置密码,会提示先输入密码
Enter current password for root (enter fornone):<–初次运行直接回车
设置密码
Set root password? [Y/n] <– 是否设置root用户密码,输入y并回车或直接回车
New password: <– 设置root用户的密码
Re-enter new password: <– 再输入一次你设置的密码
其他配置
Remove anonymous users? [Y/n] <– 是否删除匿名用户,回车
Disallow root login remotely? [Y/n] <–是否禁止root远程登录,回车,
Remove test database and access to it?[Y/n] <– 是否删除test数据库,回车
Reload privilege tables now? [Y/n] <– 是否重新加载权限表,回车
[root@test-vm03 ~]# mysql -p123456
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 5.5.56-MariaDB MariaDBServer
Copyright (c) 2000, 2017, Oracle, MariaDBCorporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' toclear the current input statement.
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
+--------------------+
4 rows in set (0.01 sec)
MariaDB [(none)]>
接下来配置MariaDB的字符集:
-> 首先是配置文件/etc/my.cnf,在[mysqld]标签下添加
init_connect='SET collation_connection =utf8_unicode_ci'
init_connect='SET NAMES utf8'
character-set-server=utf8
collation-server=utf8_unicode_ci
skip-character-set-client-handshake
-> 接着配置文件/etc/my.cnf.d/client.cnf,在[client]中添加
default-character-set=utf8
-> 然后配置文件/etc/my.cnf.d/mysql-clients.cnf,在[mysql]中添加
default-character-set=utf8
最后是重启MariaDB,并登陆MariaDB查看字符集
[root@test-vm001 my.cnf.d]# systemctlrestart mariadb
[root@test-vm03 ~]# mysql -p123456
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 4
Server version: 5.5.56-MariaDB MariaDBServer
Copyright (c) 2000, 2017, Oracle, MariaDBCorporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' toclear the current input statement.
MariaDB [(none)]> show variables like"%character%";show variables like "%collation%";
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | utf8 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.00 sec)
+----------------------+-----------------+
| Variable_name | Value |
+----------------------+-----------------+
| collation_connection | utf8_unicode_ci |
| collation_database | utf8_unicode_ci |
| collation_server | utf8_unicode_ci |
+----------------------+-----------------+
3 rows in set (0.00 sec)
MariaDB [(none)]>
为Confluence创建对应的数据库、用户名和密码
MariaDB [(none)]> create databaseconfluence default character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.00 sec)
赋予confluence用户任意主机访问confluence数据库,密码是confluencepasswd
MariaDB [(none)]> grant all onconfluence.* to 'confluence'@'%' identified by 'confluencepasswd';
Query OK, 0 rows affected (0.00 sec)
刷新配置权限
MariaDB [(none)]> flush privileges;
Query OK, 0 rows affected (0.00 sec)
三、下载并安装破解confluence6.3
atlassian-confluence-6.3.1-x64.bin
下载地址:https://pan.baidu.com/s/1skD5DQt 获取密码:5vmk
atlassian-extras-decoder-v2-3.2.jar
下载地址:https://pan.baidu.com/s/1eRKDDOA 获取密码:mbjp
atlassian-universal-plugin-manager-plugin-2.22.jar
下载地址:https://pan.baidu.com/s/1o7Lfv6M 提取密码:1i3y
将上面两个包下载到本机的/opt目录下,给二进制文件授执行权限,然后安装
[root@test-vm03 opt]# ls
atlassian-confluence-6.3.1-x64.bin atlassian-extras-decoder-v2-3.2.jar
[root@test-vm03 opt]# chmod +xatlassian-confluence-6.3.1-x64.bin
[root@test-vm03 opt]#./atlassian-confluence-6.3.1-x64.bin
通过上图可以看出confluence安装到了/opt/atlassian/confluence和/var/atlassian/application-data/confluence目录下,并且confluence默认监听的端口是8090.一路默认安装即可!
注意:confluence的主要配置文件为/opt/atlassian/confluence/conf/server.xml,和jira类似。此server.xml相当于tomcat中的server.xml配置文件,如果要修改访问端口,可以这里修改。
如果要修改confluence的数据目录,可以在安装的时候,在安装过程中进行更换(默认是/var/atlassian/application-data/confluence)
查看confluence端口是否起来了
[root@test-vm03 opt]# lsof -i:8090
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 18100 confluence 36u IPv6 188496 0t0 TCP *:8090 (LISTEN)
重启confluence命令
[root@test-vm03 opt]#/etc/init.d/confluence restart
看下主机的ip
浏览器里输入http://192.168.123.72:8090,访问confluence
通过上图可以看出需要输入授权码,下面介绍下破解confluence授权码的操作:
复制上述截图中的Server ID(即BBMEC-9EIB-35GW-URME),然后关闭confluence
[root@test-vm03 opt]#/etc/init.d/confluence stop
[root@test-vm03 opt]# lsof -i:8080
[root@test-vm03 opt]#
用下载的文件替换atlassian-extras-decoder-v2-3.2.jar文件(该文件下载到/opt下,替换前必须做之前的文件备份,方便回退)
[root@test-vm03 opt]# cp/opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.2.jar/mnt/
[root@test-vm03 opt]# cp/opt/atlassian-extras-decoder-v2-3.2.jar/opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-decoder-v2-3.2.jar
用下载的文件替换confluence自带的atlassian-universal-plugin-manager-plugin-2.22.1.jar(该文件下载到/opt下,替换前必须做之前的文件备份,方便回退)
[root@test-vm03 opt]# mv/opt/atlassian/confluence/confluence/WEB-INF/atlassian-bundled-plugins/atlassian-universal-plugin-manager-plugin-2.22.1.jar/mnt/
[root@test-vm03 opt]# cpatlassian-universal-plugin-manager-plugin-2.22.jar/opt/atlassian/confluence/confluence/WEB-INF/atlassian-bundled-plugins/
[root@test-vm03 opt]#/etc/init.d/confluence start
[root@test-vm03 opt]# lsof -i:8090
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 18100 confluence 36u IPv6 188496 0t0 TCP *:8090 (LISTEN)
然后继续访问http://192.168.123.72:8090,接着注册confluence的key
点击获得试用授权
下面的操作需要在fanqiang的前提下进行,使用google邮箱注册
如上,右边可以看到这个confluence的license key(把这些key手动粘贴到上面confluence安装中"授权码"的"服务器ID"下面的空白框里即可)
如下,选择外部数据库
如果出现下面报错(缺少java的mysql驱动):
解决办法:
下载java的mysql驱动:mysql-connector-java-5.0.8-bin.jar
下载地址:https://pan.baidu.com/s/1c2CQzcO
提取密码:ku8s
[root@test-vm03 opt]# cpmysql-connector-java-5.0.8-bin.jar /opt/atlassian/confluence/lib/
[root@test-vm03 opt]#/etc/init.d/confluence restart
然后继续访问http://192.168.123.72:8090/,配置数据库
下面在首次连接mysql的时候(使用上面MariaDB里面授权的信息连接,即用户名:confluence,密码:confluencepasswd),可能有点慢,耐心等待~
就已经配置好了confluence,下面说下在管理员账号下创建或邀请其他用户的做法:
到此,confluence的安装破解已经完全搞定!
外网怎么访问你的confluence?
解决方法:
1、最简单的办法:关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
firewall-cmd --state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)
2、自己百度 centos7开启防火墙80端口!!
评论