centos7下confluence7.2和wiki详细安装教程

  • A+
所属分类:Linux

1.安装java

yum install java -y
查看安装版本
java -version

centos7下confluence7.2和wiki详细安装教程

2.安装mysql5.数据库

rpm -ivh https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
vim /etc/yum.repos.d/mysql-community.repo

修改 mysql-community.repo 将MySQL8.0的enable=1修改成enable=0。将MySQL5.6的enable=1修改成enable=1

centos7下confluence7.2和wiki详细安装教程

yum install mysql-server #安装数据库
systemctl start mysql #启动数据库
vim /etc/my.cnf #修改配置文件

#wiki
transaction-isolation = READ-COMMITTED
max_allowed_packet=512M
innodb_log_file_size=512M
innodb_buffer_pool_size=512M
innodb_file_per_table=1
collation-server=utf8_bin
character-set-server=utf8
default-storage-engine=INNODB
binlog_format=row
performance_schema_max_table_instances=400
table_definition_cache=400
table_open_cache=256
######################
systemctl restart mysq #重启数据库,配置文件生效

centos7下confluence7.2和wiki详细安装教程

创建数据库及分配权限

create database 数据库名称 character set utf8 collate utf8_bin; #创建数据库
create user 'confluence'@'localhost' identified by 'confluence'; #创建用户
grant all privileges on 数据库名称.* to 'confluence'@'localhost'; #用户授权
flush privileges; #刷新权限

3.安装confluence

wget https://product-downloads.atlassian.com/software/confluence/downloads/atlassian-confluence-7.2.1-x64.bin
chmod a+x atlassian-confluence-7.2.1-x64.bin
./atlassian-confluence-7.2.1-x64.bin

centos7下confluence7.2和wiki详细安装教程

mysql链接驱动下载及设置

wget https://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.24/mysql-connector-java-5.1.24.jar
cp mysql-connector-java-5.1.42-bin.jar /opt/atlassian/confluence/confluence/WEB-INF/lib/

下载crack(仅用于学习使用,商用请购买正版)

https://gitee.com/pengzhile/atlassian-agent/releases
tar -xzvf atlassian-agent-v1.2.3.tar.gz
cd atlassian-agent-v1.2.3/
cp atlassian-agent.jar /opt/atlassian/confluence/
vim /opt/atlassian/confluence/bin/setenv.sh
#####
CATALINA_OPTS="-javaagent:/opt/atlassian/confluence/atlassian-agent.jar ${CATALINA_OPTS}"
########

centos7下confluence7.2和wiki详细安装教程

启动confluence及安装配置

/opt/atlassian/confluence/bin/start-confluence.sh
http://localhost:8090

centos7下confluence7.2和wiki详细安装教程centos7下confluence7.2和wiki详细安装教程
选择生产安装,默认点击下一步,下一步出现Server ID界面

获取confluence序列号,填入上图confluence方框中,点击Next

opt/atlassian/confluence/jre/bin/
./java -jar /opt/atlassian/confluence/atlassian-agent.jar -p conf -m test@u22e.com -n u22e -o https://www.u22e.com -s xxxx-xxxx-xxxx-xxxx

配置数据库链接,如下图所示,账号和密码用我们之前创建的“confluence”,点击Next

centos7下confluence7.2和wiki详细安装教程

默认创建一个空网站

centos7下confluence7.2和wiki详细安装教程

设置confluence管理员账号和密码

centos7下confluence7.2和wiki详细安装教程

centos7下confluence7.2和wiki详细安装教程

到这里我们就完成了confluence的安装、破解工作,可以使用confluence了。

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: