标签:操作 ref 管理 export systemctl emctl 图片 oca share
转:http://www.cnblogs.com/kevingrace/p/7607442.html
confluence是一个专业的企业知识管理与协同软件,可以用于构建企业wiki。通过它可以实现团队成员之间的协作和知识共享。现在大多数公司都会部署一套confluence,用作内部wiki。现在confluence已收费,那么下面将介绍下安装破解confluence的操作记录(适用于centos6/7系统环境):
一、安装jdk8环境(注意confluence和jira环境,最好安装oracle的java,默认的openjdk是不行的。)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
将jdk-8u131-linux-x64.rpm下载到 /opt 目录下 下载地址:https: //pan .baidu.com /s/1pLaAjPp 提取密码:x27s [root@ test -vm03 ~] # cd /opt/ [root@ test -vm03 opt] # ll jdk-8u131-linux-x64.rpm -rw-r--r--. 1 root root 169983496 Sep 28 2017 jdk-8u131-linux-x64.rpm [root@ test -vm03 opt] # rpm -ivh jdk-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 (build 1.8.0_131-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode) |
二、安装mysql环境(这里用的是centos7下的MariaDB)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
[root@ test -vm03 ~] # yum -y install mariadb mariadb-server [root@ test -vm03 ~] # systemctl start mariadb [root@ test -vm03 ~] # systemctl enable mariadb 接下来进行MariaDB的相关简单配置,设置密码,会提示先输入密码 [root@ test -vm03 ~] # mysql_secure_installation 首先是设置密码,会提示先输入密码 Enter current password for root (enter for none):<–初次运行直接回车 设置密码 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 MariaDB Server Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear 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] # systemctl restart 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 MariaDB Server Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear 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 database confluence default character set utf8 collate utf8_bin; Query OK, 1 row affected (0.00 sec) MariaDB [(none)]> grant all on confluence.* 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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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 +x atlassian-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)
1
2
3
4
5
6
7
|
查看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 |
浏览器里输入http://172.16.220.129:8090,访问confluence
选择产品安装并点击下一步,继续安装
通过上图可以看出需要输入授权码,下面介绍下破解confluence授权码的操作:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
复制上述截图中的Server ID(即BBMEC-9EIB-35GW-URME),然后关闭confluence [root@ test -vm03 opt] # /etc/init.d/confluence stop [root@ test -vm03 opt] # lsof -i:8090 [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] # cp atlassian-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://172.16.220.129:8090,接着注册confluence的key
下面的操作需要在FQ的前提下进行(我使用的是天眼通的浏览器插件方式进行FQ,http://www.tianyantong.org.cn),使用google邮箱注册
稍微等一会儿,就会自动弹出下面的信息,点击"Yes"
如上,右边可以看到这个confluence的license key(把这些key手动粘贴到上面confluence安装中"授权码"的"服务器ID"下面的空白框里即可)
如下,选择外界数据库
-------------------------------------------------------------------------------------------------------------------
如果出现下面报错(缺少java的mysql驱动):
解决办法:
1
2
3
4
5
6
7
8
|
下载java的mysql驱动:mysql-connector-java-5.0.8-bin.jar 下载地址:https: //pan .baidu.com /s/1c2CQzcO 提取密码:ku8s [root@ test -vm03 opt] # cp mysql-connector-java-5.0.8-bin.jar /opt/atlassian/confluence/lib/ [root@ test -vm03 opt] # /etc/init.d/confluence restart 然后继续访问http: //172 .16.220.129:8090/,配置数据库 |
标签:操作 ref 管理 export systemctl emctl 图片 oca share
原文地址:https://www.cnblogs.com/ceshi2016/p/9012728.html