1.安装jdk1.8
在oracle官网获取下载链接并下载jdk1.8文件jdk-8u301-linux-x64.tar.gz
mkdir /www/server/java
tar -zvxf jdk-8u301-linux-x64.tar.gz -C /www/server/java 解压文件
vim /etc/profile 修改环境变量
最后添加:
export JAVA_HOME=/www/server/java/jdk1.8.0_301
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
source /etc/profile 加载环境变量
java -version 检查是否安装成功
参考:https://www.cnblogs.com/stulzq/p/9286878.html
2.安装配置mysql 5.7
可以用宝塔面板安装
(如果遇到内存限制可在宝塔内编辑/www/server/panel/class/panelPlugin.py文件
搜索‘至少’注释掉内存限制
参考:https://www.cnblogs.com/alpiny/p/11253285.html)
修改my.conf文件或在宝塔内修改mysql配置文件,修改后需要重启:
skip_ssl
default-storage-engine=INNODB
character_set_server=utf8mb4
innodb_default_row_format=DYNAMIC
innodb_large_prefix=ON
innodb_file_format=Barracuda
innodb_log_file_size=2G
创建数据库和用户:
CREATE DATABASE jiradb CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
grant all on jiradb.* to 'jirauser'@'%' identified by 'jirakey';
3.下载安装和破解文件
下载破解文件:https://files-cdn.cnblogs.com/files/sanduzxcvbnm/atlassian-agent-v1.2.3.zip 解压得到atlassian-agent.jar
到官网下载jira安装文件:https://product-downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-8.13.10-x64.bin
到官网下载mysql-connector-java文件https://cdn.mysql.com/archives/mysql-connector-java-5.1/mysql-connector-java-5.1.49.tar.gz
解压得到mysql-connector-java-5.1.49-bin.jar文件
4.开始安装jira
创建目录:
mkdir /www/wwwroot/jira/soft
mkdir /www/wwwroot/jira/data
mkdir /www/wwwroot/jira/crack
复制破解文件:
cp atlassian-agent.jar /www/wwwroot/jira/crack/
授权:
chmod 777 atlassian-jira-software-8.13.10-x64.bin
执行安装:
./atlassian-jira-software-8.13.10-x64.bin
安装过程中可自定义路径和端口:
/www/wwwroot/jira/soft
/www/wwwroot/jira/data
安装完成后会启动jira服务
5.破解jira
关闭jira服务:
/www/wwwroot/jira/soft/bin/shutdown.sh
如果提示进程未删除可以手动删除进程文件:
rm /www/wwwroot/jira/soft/work/catalina.pid
复制文件:
cp mysql-connector-java-5.1.49-bin.jar /www/wwwroot/jira/soft/atlassian-jira/WEB-INF/lib/
修改jira配置文件:
vi /www/wwwroot/jira/soft/bin/setenv.sh
在export JAVA_OPTS后面添加:
export JAVA_OPTS="-javaagent:/www/wwwroot/jira/crack/atlassian-agent.jar ${JAVA_OPTS}"
启动jira:
cd /www/wwwroot/jira/soft/bin/
./start-jira.sh
启动后通过访问ip:8080设置jira:
设置过程中获得服务器ID生成许可证:
java -jar atlassian-agent.jar -p jira -m zyuuzy@outlook.com -n zyuuzy -o http://152.70.248.226:8080/ -s BXII-KRXZ-C0XT-U4DI
参考:https://www.jianshu.com/p/da0ddd124be8