docker搭建jira + 破解
首先安装好centos系统
关闭selinux防火墙
vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
修改SELINUX=disabled 保存退出
关闭firewalld防火墙
关闭: systemctl stop firewalld
开机禁用 : systemctl disable firewalld
安装docker
yum install docker -y
sudo systemctl enable docker
sudo systemctl start docker
使用docker ps 确认docker安装成功
pull docker 镜像: jira:7.11.1(目前的最新版本) mysql:5.7
docker pull cptactionhank/atlassian-jira-software docker pull mysql:5.7
启动mysql docker实例
docker run --name atlassian-mysql --restart always -p 3306:3306 -v /opt/mysql_data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=passwd -d mysql:5.7 #记得修改passwd
连接mysql
docker run -it --link atlassian-mysql:mysql --rm mysql sh -c 'exec mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD"'
创建jira数据库,并添加jira用户
create database jira default character set utf8 collate utf8_bin; CREATE USER `jira`@`%` IDENTIFIED BY 'jira';GRANT ALL ON *.* TO `jira`@`%` WITH GRANT OPTION; alter user 'jira'@'%' identified with mysql_native_password by 'jira';
修改mysql事物隔离级别
set global transaction isolation level read committed;set session transaction isolation level read committed;
启动jira实例
docker run --detach --restart always -v /data/atlassian/confluence:/home --publish 8080:8080 cptactionhank/atlassian-jira-software
安装完成 配置JIRA
系统会自动跳转到jira的默认配置页面,在此我们选择自定义配置
数据库选择MYSQL
输入数据库信息
数据库地址:JIRA服务器地址
数据库名称:jira
用户名:jira
密码:jira
然后输入管理员信息,安装完成
关于破解
docker exec --user root 97 mv /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/atlassian-extras-3.2.jar /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/atlassian-extras-3.2.jar_bak docker cp atlassian-extras-3.1.2.jar 97:/opt/atlassian/jira/atlassian-jira/WEB-INF/lib/ docker restart 97 #
atlassian-extras-3.1.2.jar 下载地址: 解压缩后上传 最后修改系统时间为上海。