天天看點

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

12. 破解包

連結:https://pan.baidu.com/s/1SN-ILQ-v24un1jLdk2GMKg 

提取碼:npi1

繼續閱讀