CentOS 7.9 安装 Jira8.22

CentOS 运维避坑实战

CentOS7.9 安装 Python3.8.16 后 yum 报错,快速修复方案

系统:CentOS 7.9
软件:Jira 8.22

1. 安装MySQL 8.0.12

rpm -ivh mysql-8.0.12-1.el7.x86_64.rpm

source /etc/profile.d/mysql.sh

2.配置root密码

# mysql root 密码为空,先配置root密码
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root123' PASSWORD EXPIRE NEVER;
flush privileges;

3. 创建Jira数据库

mysql> CREATE DATABASE jira CHARACTER SET utf8mb4 collate utf8mb4_0900_ai_ci;
Query OK, 1 row affected (0.00 sec)

mysql> CREATE USER 'jira'@'localhost';
Query OK, 0 rows affected (0.00 sec)

mysql> ALTER USER 'jira'@'localhost' IDENTIFIED WITH mysql_native_password BY 'jira123';
Query OK, 0 rows affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON jira.* TO 'jira'@'localhost' WITH GRANT OPTION;
Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql> CREATE USER 'jira'@'127.0.0.1';
Query OK, 0 rows affected (0.00 sec)

mysql> ALTER USER 'jira'@'127.0.0.1' IDENTIFIED WITH mysql_native_password BY 'root123';
Query OK, 0 rows affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON jira.* to 'root'@'127.0.0.1' WITH GRANT OPTION;
Query OK, 0 rows affected (0.00 sec)

mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)

4. 修改my.cnf

将默认存储引擎设置为 InnoDB:
[mysqld]
...
default-storage-engine=INNODB
...
指定数据库服务器使用的字符集:

[mysqld]
...
character_set_server=utf8mb4
...
将默认行格式设置为 :DYNAMIC

[mysqld]
...
innodb_default_row_format=DYNAMIC
...
指定 innodb_redo_log_capacity 的值至少为 4G:

[mysqld]
... 
innodb_redo_log_capacity=4G
...
(信息) 该参数已取代 and 参数。在 MySQL 文档中了解更多信息innodb_redo_log_capacityinnodb_log_file_sizeinnodb_log_files_in_group

确保 sql_mode 参数未指定 NO_AUTO_VALUE_ON_ZERO
// remove this if it exists
sql_mode = NO_AUTO_VALUE_ON_ZERO

5.安装Jira

[root@localhost ~]# sudo ./atlassian-jira-software-8.22.0-x64.bin
Unpacking JRE ...
Starting Installer ...

This will install Jira Software 8.22.0 on your computer.
OK [o, Enter], Cancel [c]

Click Next to continue, or Cancel to exit Setup.

Choose the appropriate installation or upgrade option.
Please choose one of the following:
Express Install (use default settings) [1], Custom Install (recommended for advanced users) [2, Enter], Upgrade an existing Jira installation [3]
2
Select the folder where you would like Jira Software to be installed.
Where should Jira Software be installed?
[/opt/atlassian/jira]

Default location for Jira Software data
[/var/atlassian/application-data/jira]

Configure which ports Jira Software will use.
Jira requires two TCP ports that are not being used by any other
applications on this machine. The HTTP port is where you will access Jira
through your browser. The Control port is used to startup and shutdown Jira.
Use default ports (HTTP: 8080, Control: 8005) - Recommended [1, Enter], Set custom value for HTTP and Control ports [2]
2
HTTP Port Number
[8080]
Control Port Number
[8005]
Jira can be run in the background.
You may choose to run Jira as a service, which means it will start
automatically whenever the computer restarts.
Install Jira as Service?
Yes [y, Enter], No [n]
y

Details on where Jira Software will be installed and the settings that will be used.
Installation Directory: /opt/atlassian/jira
Home Directory: /var/atlassian/application-data/jira
HTTP Port: 8080
RMI Port: 8005
Install as service: Yes
Install [i, Enter], Exit [e]
i
Extracting files ...

Please wait a few moments while Jira Software is configured.
Installation of Jira Software 8.22.0 is complete
Start Jira Software 8.22.0 now?
Yes [y, Enter], No [n]
y

Please wait a few moments while Jira Software starts up.
Launching Jira Software ...

Installation of Jira Software 8.22.0 is complete
Your installation of Jira Software 8.22.0 is now ready and can be accessed
via your browser.
Jira Software 8.22.0 can be accessed at http://localhost:8080
Finishing installation ...
# 安装完成

6.破解Jira

# 停止Jira
/opt/atlassian/jira/bin/shutdown.sh

# 移动破解到安装目录
mv atlassian-agent.jar /opt/atlassian/jira/
mv mysql-connector-java-8.0.12.jar /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/
chmod 755 /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/mysql-connector-java-8.0.12.jar

# 修改/opt/atlassian/jira/bin/setenv.sh 最后添加
export JAVA_OPTS="-javaagent:/opt/crack/atlassian-agent.jar ${JAVA_OPTS}"

# 启动Jira
/opt/atlassian/jira/bin/start-jira.sh
# 生成许可
cd /opt/atlassian/jira/
java -jar atlassian-agent.jar -p jira -m test@qq.com -n test -o 192.168.10.254 -s BC5O-3BOY-2CUP-IAEV

CentOS 运维避坑实战

CentOS7.9 安装 Python3.8.16 后 yum 报错,快速修复方案

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

空城旧梦S

你的鼓励是我最大的动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值