Linux教程

Linux部署Jira7.2.2

本文主要是介绍Linux部署Jira7.2.2,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

一、当前环境

1. mysql5.7

2. java1.8

二、安装jira 

1、下载jira

wget https://downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-7.2.2-x64.bin


2、修改权限

chmod 755 atlassian-jira-software-7.2.2-x64.bin


3、执行安装(安装过程会有提示,一直回车就好了)

./atlassian-jira-software-7.2.2-x64.bin

4、关闭jira服务                                                                                                                                  

  1. cd /opt/atlassian/jira/bin/

  2. sh stop-jira.sh

5.  把 pò 解 包里面的atlassian-extras-3.1.2.jar和mysql-connector-java-5.1.39-SNAPSHOT-bin.jar两个文件复制到/opt/atlassian/jira/atlassian-jira/WEB-INF/lib/目录下

6. 启用jira服务

 sh start-jira.sh

 

7、访问jira  内网ip:8080

8. 配置jira外网访问

@阿里云或其他云服务器开启安全组规则,允许8080

@配置nginx

server {
    listen *:80;
    listen [::]:80;
    server_name tao.xxx.com;
    return 301 https://tao.xxx.com$request_uri;
}
server {
    listen *:443 ssl;
    listen [::]:443 ssl;
    ssl_certificate /etc/nginx/ssl/tao.xxx.com/xxxcom.pem;
    ssl_certificate_key /etc/nginx/ssl/tao.xxx.com/xxxcom.key;
    ssl_session_timeout 5m;
    ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_prefer_server_ciphers on;


    server_name tao.xxx.com;
    #root html;
    #index index.html index.htm index.php;
    port_in_redirect off;

    location ~* ^.+/.(jpg|jpeg|gif|png|swf|rar|zip|css|js)$ {  ##static file
        rewrite ^(.*) http://localhost:8080/$1;
        break;
    }

    location / {
        proxy_pass http://localhost:8080;
        proxy_redirect          http:// https://;
        proxy_set_header        Host $host:$server_port;   ##重点在$server_port
        proxy_set_header        X-Real-IP $remote_addr;
        proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_max_temp_file_size 0;
        proxy_connect_timeout 90;
        proxy_send_timeout 90;
        proxy_read_timeout 90;
        proxy_buffer_size 4k;
        proxy_buffers 4 32k;
        proxy_busy_buffers_size 64k;
        proxy_hide_header Vary;
        proxy_set_header Accept-Encoding '';
        proxy_set_header Referer $http_referer;
        proxy_set_header Cookie $http_cookie;
    }

    error_log  /var/log/nginx/error.tao.xxx.com.log;
    access_log /var/log/nginx/access.tao.xxx.com.log;
}

9. 其他地方参考https://blog.csdn.net/m0_47594968/article/details/117117040

10. 问题

mysql5.7安装时候会报错,https://github.com/yurii-github/mysql-connector-j这里下载mysql-connector-java-5.1.39-SNAPSHOT-bin.jar

11. jira中文语言包,我们可以到jira的官网进行下载。

https://translations.atlassian.com/dashboard/download?lang=zh_CN#/JIRA Core/7.2.1

这篇关于Linux部署Jira7.2.2的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!