centos 环境
[[email protected] ~]# cat /proc/version Linux version 3.10.0-229.el7.x86_64 ([email protected]) (gcc version 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC) ) #1 SMP Fri Mar 6 11:36:42 UTC 2015 [[email protected] ~]# uname -r 3.10.0-229.el7.x86_64
支持组件
[[email protected] ~]# java -version java version "1.8.0_131" [[email protected] ~]# mysql -V mysql Ver 14.14 Distrib 5.6.37, for Linux (x86_64) using EditLine wrapper
创建jira数据库
[[email protected] ~]# mysql –uroot –p mysql> CREATE DATABASE jira CHARACTER SET utf8 COLLATE utf8_general_ci; mysql> CREATE USER ‘jira‘ IDENTIFIED BY ‘jira‘; mysql> GRANT ALL ON jira.* TO ‘jira‘@‘%‘ IDENTIFIED BY ‘jira‘; mysql> GRANT ALL ON jira.* TO ‘jira‘@‘localhost‘ IDENTIFIED BY ‘jira‘; mysql> FLUSH PRIVILEGES;
下载并安装Jira软件(官方网站:https://www.atlassian.com/software/jira/download)
[[email protected] ~]# cd /usr/local/src/
[[email protected] src]# wget https://downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-7.2.3-x64.bin --no-check-certificate
[[email protected] src]# chmod +x atlassian-jira-software-7.2.3-x64.bin
[[email protected] src]# ./atlassian-jira-software-7.2.3-x64.bin
安装的时候会有交互,如下选择
安装完成后,可以通过 http://服务器IP:8080来访问,
如果需要修改访问端口可以进入 vim /opt/atlassian/jira/conf/server.xml 文件
把<Service name="Catalina">
<Connector port="8080"中的8080改成需要端口即可
错误:
Default location for JIRA Software data
[/var/atlassian/application-data/jira]
直接回车
破解
1、关闭jira,把破解包里面的atlassian-extras-3.1.2.jar和mysql-connector-java-5.1.39-bin.jar两个文件复制到/opt/atlassian/jira/atlassian-jira/WEB-INF/lib/目录下(其中atlassian-extras-3.1.2.jar是用来替换原来的atlassian-extras-3.1.2.jar文件,用作破解jira系统的。而mysql-connector-java-5.1.39-bin.jar是用来连接mysql数据库的驱动软件包)
破解包下载地址:
关闭jira:
service jira stop
启动jira
service jira start
jira配置
自定义安装
如下配置
先测试连接数据库是否成功 “Test Connection” ,成功后选择 “Next”,需要等待一会,让系统建好数据库
数据库建好后,会生成一个配置文件:/var/atlassian/application-data/jira/dbconfig.xml,如果需要改动,可以拿它开刀
如果失败可以到 /var/atlassian/application-data/jira/ 目录下把 dbconfig.xml 文件删除后重新尝试