安装JDK
- RPM包的方来源(Source):www.dqzboy.com式安装OracleJDK1.8版本
[root@gitlab ~]# rpm -ivh jdk-8u231-linux-x64.rpm 警告:jdk-8u231-linux-x64.rpm: 头V3 RSA/SHA256 Signature, 密钥 ID ec551f03: NOKEY 准备中... ################################# [100%] 正在升级/安装... 1:jdk1.8-2000:1.8.0_231-fcs ################################# [100%] Unpacking JAR files... tools.jar... plugin.jar... javaws.jar... deploy.jar... rt.jar... jsse.jar... charsets.jar... localedata.jar...
安装MySQL数据库
- 安装方式RPM方式
[root@gitlab ~]# ll 总用量 1163368 -rw-r--r--. 1 root root 26452496 7月 7 10:33 mysql-community-client-5.7.30-1.el7.x86_64.rpm -rw-r--r--. 1 root root 318688 7月 7 10:33 mysql-community-common-5.7.30-1.el7.x86_64.rpm -rw-r--r--. 1 root root 2459484 7月 7 10:33 mysql-community-libs-5.7.30-1.el7.x86_64.rpm -rw-r--r--. 1 root root 181564660 7月 7 10:33 mysql-community-server-5.7.30-1.el7.x86_64.rpm
- 安装之前先卸载系统自带的MariaDB
[root@gitlab ~]# rpm -qa | grep mariadb mariadb-libs-5.5.65-1.el7.x86_64 [root@gitlab ~]# rpm -e mariadb-libs-5.5.65-1.el7.x86_64 --nodeps
- 开始安装MySQL
[root@gitlab ~]# yum install libaio.so.1 gcc gcc-c++ ncurses ncurses-devel cmake openssl-devel libaio perl net-tools -y [root@gitlab ~]# rpm -ivh mysql-community-*
- 配置数据库
[root@gitlab ~]# vim /etc/my.cnf default-storage-engine=INNODB character_set_server=utf8mb4 innodb_default_row_format=DYNAMIC innodb_file_format=Barracuda innodb_log_file_size=2G sql_mode=ONLY_FULL_GROUP_BY,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
- 启动数据库
[root@gitlab ~]# systemctl start mysqld [root@gitlab ~]# systemctl enable mysqld
- 查看默认密码登入数据库
[root@gitlab ~]# cat /var/log/mysqld.log |grep password 2020-07-07T02:45:15.931823Z 1 [Note] A temporary password is generated for root@localhost: -W+GwPFi?5e6
- 重置root密码
root@gitlab ~]# mysql -uroot -p-W+GwPFi?5e6 mysql: [Warning] Using a password on the command line interface can be insecure. Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.7.30 Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> set global validate_password_policy=0; Query OK, 0 rows affected (0.00 sec) mysql> set global validate_password_number_count=0; Query OK, 0 rows affected (0.00 sec) mysql> set global validate_password_special_char_count=0; Query OK, 0 rows affected (0.00 sec) mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'dqz123456'; Query OK, 0 rows affected (0.01 sec) mysql> CREATE USER 'root'@'%' IDENTIFIED BY 'dqz123456'; Query OK, 0 rows affected (0.00 sec) mysql> grant all privileges on *.* to root@'%'; Query OK, 0 rows affected (0.00 sec) mysql> CREATE DATABASE jira CHARACTER SET utf8mb4 COLLATE utf8mb4_bin; Query OK, 1 row affected (0.00 sec) mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,REFERENCES,ALTER,INDEX on jira.* TO 'jira'@'%' IDENTIFIED BY 'dqz123456'; Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> flush privileges; Query OK, 0 rows affected (0.00 sec)
安装JIRA
- 一路跟着博主的手速按起来
[root@iZ2ze2jlupmjlwwfuyg30gZ ~]# ll total 396336 -rwxr-xr-x 1 root root 405846075 Jul 6 16:38 atlassian-jira-software-8.10.0-x64.bin [root@iZ2ze2jlupmjlwwfuyg30gZ ~]# chmod +x atlassian-jira-software-8.10.0-x64.bin [root@iZ2ze2jlupmjlwwfuyg30gZ ~]# ./atlassian-jira-software-8.10.0-x64.bin We couldn't find fontconfig, which is required to use OpenJDK. Press [y, Enter] to install it. For more info, see https://confluence.atlassian.com/x/PRCEOQ y This will install Jira Software 8.10.0 on your computer. OK [o, Enter], Cancel [c] o 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] 1 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 Installation of Jira Software 8.10.0 is complete Start Jira Software 8.10.0 now? Yes [y, Enter], No [n] y
- 安装完成后jira自动启动
Installation of Jira Software 8.10.0 is complete Your installation of Jira Software 8.10.0 is now ready and can be accessed via your browser. Jira Software 8.10.0 can be accessed at http://localhost:8080 Finishing installation ...
执行破解
- 先将jira停止
[root@iZ2ze2jlupmjlwwfuyg30gZ ~]# /etc/init.d/jira stop [root@iZ2ze2jlupmjlwwfuyg30jZ ~]# chown -R jira:jira /var/atlassian/application-data/jira [root@iZ2ze2jlupmjlwwfuyg30jZ ~]# chown -R jira:jira /opt/atlassian/jira/logs [root@iZ2ze2jlupmjlwwfuyg30jZ ~]# chown -R jira:jira /opt/atlassian/jira/temp [root@iZ2ze2jlupmjlwwfuyg30jZ ~]# chown -R jira:jira /opt/atlassian/jira/work [root@iZ2ze2jlupmjlwwfuyg30jZ ~]# chmod -R u=rwx,g=rx,o=rx /var/atlassian/application-data/jira [root@iZ2ze2jlupmjlwwfuyg30jZ ~]# chmod -R u=rwx,g=rx,o=rx /opt/atlassian/jira/logs [root@iZ2ze2jlupmjlwwfuyg30jZ ~]# chmod -R u=rwx,g=rx,o=rx /opt/atlassian/jira/temp [root@iZ2ze2jlupmjlwwfuyg30jZ ~]# chmod -R u=rwx,g=rx,o=rx /opt/atlassian/jira/work [root@iZ2ze2jlupmjlwwfuyg30jZ ~]# cd /opt/atlassian/jira/logs [root@iZ2ze2jlupmjlwwfuyg30jZ logs]# mv catalina.out catalina.out_bak
- MySQL驱动文件下载地址mysql-connector-java-5.1.49.tar
- 将MySQL驱动文件和破解包放入到/opt/atlassian/jira/atlassian-jira/WEB-I来源(Source):www.dqzboy.comNF/lib/中
- 将默认的atlassian-extras-3.2.jar移除到其他目录,将破解好的atlassian-extras-3.2.jar放入进去
[root@iZ2ze2jlupmjlwwfuyg30gZ ~]# cd /opt/atlassian/jira/atlassian-jira/WEB-INF/lib [root@iZ2ze2jlupmjlwwfuyg30gZ lib]# mv atlassian-extras-3.2.jar /opt
- 此时把破解的包放进来
- 现在再把MySQL驱动文件放进来
[root@iZ2ze2jlupmjlwwfuyg30gZ lib]# cp /root/atlassian-extras-3.2.jar /opt/atlassian/jira/atlassian-jira/WEB-INF/lib [root@iZ2ze2jlupmjlwwfuyg30gZ ~]# tar -xf mysql-connector-java-5.1.49.tar.gz [root@iZ2ze2jlupmjlwwfuyg30gZ ~]# cd mysql-connector-java-5.1.49 [root@iZ2ze2jlupmjlwwfuyg30gZ mysql-connector-java-5.1.49]# cp *.jar /opt/atlassian/jira/atlassian-jira/WEB-INF/lib
- 启动jira
[root@iZ2ze2jlupmjlwwfuyg30gZ ~]# /etc/init.d/jira start
访问网页
- JIRA默认端口8080


- 这里需要等待程序进行数据初始化,需要一段时间
- 总共创建了264张表

因为我们没有正式的license,所以需要我们在jira官网注册一个账号,然后利用这个账号申请一个可以试用30天的license,点击生成jira许可证。如下













- 到此JIRA安装完成
检查破解是否生效
- 破解jira,其实我们已经破解了在前面复制atlassian-extras-3.1.2.jar到/来源(Source):www.dqzboy.comopt/atlassian/jira/atlassian-jira/WEB-INF/lib/目录下时,再次启动jira时就已经破解了
- 我们现在登陆到jira中查看授权信息,如下
继续阅读
- 我的QQ
- QQ扫一扫
-
- 我的头条
- 头条扫一扫
-
评论