JIRA是Atlassian公司出品的项目与事务跟踪工具,被广泛应用于缺陷跟踪、客户服务、需求收集、流程审批、任务跟踪、项目跟踪和敏捷管理等工作领域。 上次有介绍过atlassian这家公司的wiki的安装和破解,原文在此http://www.boheyan.cn/Confluence-install.html,这次是它的jira产品,同样是最新版,破解成功。

下载

1.Jira的官网下载页https://www.atlassian.com/software/jira/download

  1. 破解jar包及mysql驱动 链接:http://pan.baidu.com/s/1ge5eGQv 密码:diog

环境部署

安装mairadb数据库,java环境,这些跟之前装wiki是一样的,如果不清楚,请看上篇

下面是创建jira数据库的命令,基本跟创建confluence数据库一样

create database jira default character set utf8 collate utf8_bin;
create user 'jira'@'localhost' identified by 'jirapasswd';
grant all privileges on jira.* to 'jira'@'%' identified by 'jirapasswd';
flush privileges;

安装atlassian-jira

将下载好的atlassian-jira-software-7.6.2-x64.bin安装包上传到服务器任意目录。

chmod +x atlassian-jira-software-7.6.2-x64.bin
./atlassian-jira-software-7.6.2-x64.bin

WX20171226-141221

然后根据提示选择,基本就是o、1、i、y confluence程序目录为/opt/atlassian/jira 数据目录为/var/atlassian/application-data/jira 监控端口为8080

破解

jira破解比wiki简单多了,将/opt/atlassian/jira/atlassian-jira/WEB-INF/lib/目录下的atlassian-extras-3.2.jar文件替换,上传mysql-connector-java-5.1.42-bin.jar/opt/atlassian/jira/atlassian-jira/WEB-INF/lib/目录下,用于连接mysql的驱动 然后重启jira程序

/etc/init.d/jira stop
/etc/init.d/jira start

打开浏览器,访问 http://IP:8080,根据提示连接数据库 WechatIMG23 然后到这里需要输入许可证,按照提示去官方,申请一个试用许可证就可以了

WX20171226-151254

Nginx配置

想要实现不带端口号,通过IP/wiki,IP/jira,来访问应用,主要配置如下: vim /application/nginx/conf/nginx.conf

server {
        listen       80;
        server_name  X.X.X.X;
        location /jira {
            root   html;
            index  index.html index.htm;
            proxy_set_header X-Forwarded-Host $host;
            proxy_set_header X-Forwarded-Server $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_pass http://X.X.X.X:8080;
            client_max_body_size 10M;
       }
        location /wiki {
            root   html;
            index  index.html index.htm;
            proxy_set_header X-Forwarded-Host $host;
            proxy_set_header X-Forwarded-Server $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_pass http://X.X.X.X:8090;
            client_max_body_size 10M;
       }
       error_page   500 502 503 504  /50x.html;
       location = /50x.html {
           root   html;
       }
    }

vim /opt/atlassian/jira/conf/server.xml

<Connector port="8080"
                   maxThreads="150"
                   minSpareThreads="25"
                   connectionTimeout="20000"

                   enableLookups="false"
                   maxHttpHeaderSize="8192"
                   protocol="HTTP/1.1"
                   useBodyEncodingForURI="true"
                   redirectPort="8443"
                   acceptCount="100"
                   disableUploadTimeout="true"
                   bindOnInit="false"
                   proxyName="X.X.X.X"          /新加
                   proxyPort="80"/>             /新加

        <Context path="/jira" docBase="${catalina.home}/atlassian-jira" reloadable="false" useHttpOnly="true">