Jira 入門【轉】

JIRA是Atlassian公司出品的項目與事務跟蹤工具,被普遍應用於缺陷跟蹤、客戶服務、需求收集、流程審批、任務跟蹤、項目跟蹤和敏捷管理等工做領域。它是一個集 項目計劃、任務分配、需求管理、錯誤跟蹤於一體的工具,能夠做爲一個bug管理系統,能夠將在測試過程當中所發現的bug錄入、分配給開發人員。
1、Jira 安裝
一、建立Jira使用的數據庫,操做以下java

mysql> ALTER USER USER() IDENTIFIED BY '******';
Query OK, 0 rows affected (0.11 sec)
mysql> flush privileges ;
Query OK, 0 rows affected (0.00 sec)

mysql> create user 'jiraAdmin'@'192.168.%' identified by '******';
Query OK, 0 rows affected (0.01 sec)

mysql> create database jira character set utf8 collate utf8_bin;
Query OK, 1 row affected, 1 warning (0.05 sec)

mysql> grant all on jira.* to 'jiraAdmin'@'192.168.%';
Query OK, 0 rows affected (0.02 sec)

mysql> flush privileges; 
Query OK, 0 rows affected (0.00 sec)

 

 

二、安裝Jira ,過程以下:mysql

[root@vm2 opt]# ls
atlassian-jira-software-7.4.1-x64.bin  rh
[root@vm2 opt]# chmod +x atlassian-jira-software-7.4.1-x64.bin 
[root@vm2 opt]# ./atlassian-jira-software-7.4.1-x64.bin 
Unpacking JRE ...
Starting Installer ...
May 03, 2018 9:00:39 AM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.

This will install JIRA Software 7.4.1 on your computer.
OK [o, Enter], Cancel [c]
o  
Choose the appropriate installation or upgrade option.
Please choose one of the following:
Express Install (use default settings) [1], Custom Install (recommended for advanced users) [2, Enter], Upgrade an existing JIRA installation [3]
1
Details on where JIRA Software will be installed and the settings that will be used.
Installation Directory: /opt/atlassian/jira 
Home Directory: /var/atlassian/application-data/jira 
HTTP Port: 8080 
RMI Port: 8005 
Install as service: Yes 
Install [i, Enter], Exit [e]
i

Extracting files ...

Please wait a few moments while JIRA Software is configured.
Installation of JIRA Software 7.4.1 is complete
Start JIRA Software 7.4.1 now?
Yes [y, Enter], No [n]
y

Please wait a few moments while JIRA Software starts up.
Launching JIRA Software ...
Installation of JIRA Software 7.4.1 is complete
Your installation of JIRA Software 7.4.1 is now ready and can be accessed
via your browser.
JIRA Software 7.4.1 can be accessed at http://localhost:8080
Finishing installation ...
[root@vm2 opt]# 
[root@vm2 opt]# lsof -i:8080
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
java    59170 jira  285u  IPv6 630365      0t0  TCP *:webcache (LISTEN)
[root@vm2 opt]# 
[root@vm2 opt]# ls atlassian/jira/conf/
catalina.policy      context.xml           jaspic-providers.xsd  server.xml        tomcat-users.xsd
catalina.properties  jaspic-providers.xml  logging.properties    tomcat-users.xml  web.xml
[root@vm2 opt]# 

 

 

有上面可知,jira的安裝目錄爲/opt/atlassian/jira,數據目錄爲/var/atlassian/application-data/jira,固然這些目錄能夠在上面安裝過程當中本身定義的,不定義就是默認路徑。
jira的端口默認是8080,這個也能夠在/opt/atlassian/jira/conf/server.xml文件裏修改。web

三、關於Jira 的破解,過程以下所示:sql

[root@vm2 opt]# /etc/init.d/jira stop 
executing using dedicated user
                .....
          .... .NMMMD.  ...
        .8MMM.  $MMN,..~MMMO.
        .?MMM.         .MMM?.

     OMMMMZ.           .,NMMMN~
     .IMMMMMM. .NMMMN. .MMMMMN,
       ,MMMMMM$..3MD..ZMMMMMM.
        =NMMMMMM,. .,MMMMMMD.
         .MMMMMMMM8MMMMMMM,
           .ONMMMMMMMMMMZ.
             ,NMMMMMMM8.
            .:,.$MMMMMMM
          .IMMMM..NMMMMMD.
         .8MMMMM:  :NMMMMN.
         .MMMMMM.   .MMMMM~.
         .MMMMMN    .MMMMM?.

      Atlassian JIRA
      Version : 7.4.1

If you encounter issues starting or stopping JIRA, please see the Troubleshooting guide at http://confluence.atlassian.com/display/JIRA/Installation+Troubleshooting+Guide

Server startup logs are located in /opt/atlassian/jira/logs/catalina.out
Using CATALINA_BASE:   /opt/atlassian/jira
Using CATALINA_HOME:   /opt/atlassian/jira
Using CATALINA_TMPDIR: /opt/atlassian/jira/temp
Using JRE_HOME:        /opt/atlassian/jira/jre/
Using CLASSPATH:       /opt/atlassian/jira/bin/bootstrap.jar:/opt/atlassian/jira/bin/tomcat-juli.jar
Using CATALINA_PID:    /opt/atlassian/jira/work/catalina.pid
Tomcat stopped.
[root@vm2 opt]# 
[root@vm2 opt]# cd

 

關閉jira後,把破解包裏面的atlassian-extras-3.2.jar和mysql-connector-java-5.1.39-bin.jar兩個文件複製到/opt/atlassian/jira/atlassian-jira/WEB-INF/lib/目錄下。
[root@vm2 ~]# lsof -i:8080
[root@vm2 ~]# cp atlassian-extras-3.2.jar  /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/
cp: overwrite ‘/opt/atlassian/jira/atlassian-jira/WEB-INF/lib/atlassian-extras-3.2.jar’? y
[root@vm2 ~]# cp mysql-connector-java-5.1.39-bin.jar /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/
[root@vm2 ~]# /etc/init.d/jira start

To run JIRA in the foreground, start the server with start-jira.sh -fg
executing using dedicated user: jira
                .....
          .... .NMMMD.  ...
        .8MMM.  $MMN,..~MMMO.
        .?MMM.         .MMM?.

     OMMMMZ.           .,NMMMN~
     .IMMMMMM. .NMMMN. .MMMMMN,
       ,MMMMMM$..3MD..ZMMMMMM.
        =NMMMMMM,. .,MMMMMMD.
         .MMMMMMMM8MMMMMMM,
           .ONMMMMMMMMMMZ.
             ,NMMMMMMM8.
            .:,.$MMMMMMM
          .IMMMM..NMMMMMD.
         .8MMMMM:  :NMMMMN.
         .MMMMMM.   .MMMMM~.
         .MMMMMN    .MMMMM?.

      Atlassian JIRA
      Version : 7.4.1

If you encounter issues starting or stopping JIRA, please see the Troubleshooting guide at http://confluence.atlassian.com/display/JIRA/Installation+Troubleshooting+Guide

Server startup logs are located in /opt/atlassian/jira/logs/catalina.out
Using CATALINA_BASE:   /opt/atlassian/jira
Using CATALINA_HOME:   /opt/atlassian/jira
Using CATALINA_TMPDIR: /opt/atlassian/jira/temp
Using JRE_HOME:        /opt/atlassian/jira/jre/
Using CLASSPATH:       /opt/atlassian/jira/bin/bootstrap.jar:/opt/atlassian/jira/bin/tomcat-juli.jar
Using CATALINA_PID:    /opt/atlassian/jira/work/catalina.pid
Tomcat started.
[root@vm2 ~]# lsof -i:8080
[root@vm2 ~]# lsof -i:8080
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
java    59659 jira  264u  IPv6 632373      0t0  TCP *:webcache (LISTEN)
[root@vm2 ~]# 

 

其中atlassian-extras-3.2.jar是用來替換原來的atlassian-extras-3.2.jar文件,用做破解jira系統的。
而mysql-connector-java-5.1.39-bin.jar是用來鏈接mysql數據庫的驅動軟件包。shell

四、設置firewalld,開放相關port,以下所示:數據庫

[root@vm1 ~]# firewall-cmd --state
running
[root@vm1 ~]# firewall-cmd --zone=public --add-port=80/tcp --permanent
success
[root@vm1 ~]# firewall-cmd --reload
success
[root@vm1 ~]# 
[root@vm1 ~]# firewall-cmd --zone=public --list-ports
80/tcp
[root@vm1 ~]# firewall-cmd --zone=public --add-port=3306/tcp --permanent
success
[root@vm1 ~]# firewall-cmd --reload
success
[root@vm2 ~]# firewall-cmd --zone=public --add-port=8080/tcp --permanent 
success
[root@vm2 ~]# firewall-cmd --reload
success
[root@vm2 ~]#

 

 

2、設置Jira
在瀏覽器地址欄中輸入 http://ip:8080 , 選擇語言,以下所示:
Jira 入門
選擇設置生產環境,以下所示:
Jira 入門
設置數據地址、用戶名、密碼等選項,以下所示:
Jira 入門
以上鍊接數據庫的配置將存儲在/var/atlassian/application-data/jira/dbconfig.xml文件中,後期能夠手工修改,如 vim /var/atlassian/application-data/jira/dbconfig.xml
設置應用程序的屬性,以下所示:
Jira 入門
注意:上圖中的Mode中,本例使用Private模式,該模式下須要由管理員建立其它用戶;而在Public模式下,用戶能夠本身註冊。
如下是註冊信息,以下所示:
Jira 入門
能夠自行到Atlassian官方註冊一個帳戶,而後以下操做:
Jira 入門
登陸後能夠根據下圖操做:
Jira 入門
最重要的是輸入「server_id」,以下操做:
Jira 入門
而後找到剛剛提交的申請,以下操做:
Jira 入門
將上圖的key 複製到本身Jira服務器的對應框中,以下所示:
Jira 入門bootstrap

而後系統提示 設置管理員用戶及密碼,以下所示:
Jira 入門
能夠選擇性設置郵件通告,以下所示:
Jira 入門vim

Jira 入門
登陸 Jira ,出現welcome界面,以下所示:
Jira 入門瀏覽器

3、Jira的使用
新建立項目,以下圖所示:
Jira 入門
選擇Scrum開發方法,點擊下一步,以下圖所示:
Jira 入門
輸入項目名稱,以下所示:
Jira 入門
公司測試人員能夠在本項目中添加一些「問題」,以下圖所示:
Jira 入門tomcat

公司線上Jira Dashboard以下所示:
Jira 入門

4、實現Jira 與 Confluence集成
登陸 confluence的控制檯,在右上角點擊「系統」,而後選擇「應用程序連接」,以下圖所示:
Jira 入門
Jira 入門
而後添加Jira 的地址連接,以下圖所示:
Jira 入門
Jira 入門
最終效果以下:
Jira 入門

也能夠登陸 Jira控制檯,在系統設置的「應用程序連接」中查看到關於confluence的連接地址,以下所示:
Jira 入門

轉自

Jira 入門-WorkNote-51CTO博客 https://blog.51cto.com/caiyuanji/2123424?source=drt

相關文章
相關標籤/搜索