Atlassian

Atlassian JIRA 설치하기

junseok 2023. 12. 2. 21:42

1. Jira란

Atlassian에서 개발한 이슈추적 소프트웨어로 버그추적, 이슈추적, 프로젝트 관리 기능을 제공합니다. 

jira는 애자일 개발 방식에서 가장 적합한 소프트웨어 입니다. 애자일 방식이 아닌 폭포수(waterfall) 방식이라면 굳이 jira를 써야하나 싶지만, 폭포수 방식이더라도 규모가 커지면 프로젝트에 jira가 도움이 됩니다.

2. Jira의 시스템 요구 사항 확인

https://confluence.atlassian.com/adminjiraserver0904/supported-platforms-1188767570.html

 

Supported platforms | Administering Jira applications Data Center and Server 9.4 | Atlassian Documentation

 

confluence.atlassian.com

위 링크에서 설치할 jira 버전에서 지원하는 db, java, os등의 정보를 확인 할 수 있습니다.

사전에 미리 확인 후 설치 하는것이 좋습니다.

 

제가 테스트를 진행할 환경은 다음과 같습니다.

  • linux centos 7
  • PostgreSQL 13
  • JAVA 8

3. PostgreSQL 설치 및 구성

1. postgreSQl 설치 및 활성화

$ sodo yum -y update
$ sudo yum -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm

 

2. PostgreSQL repository 활성화 확인하기

$ sudo yum repolist

 

3. PostgreSQL 설치

$ sudo yum -y install postgresql13 postgresql13-server

 

4. PostgreSQL 초기화

$ sudo /usr/pgsql-13/bin/postgresql-13-setup initdb

 

5. PostgreSQL 서비스 시작

$ sudo systemctl start postgresql-13

 

6. PostgreSQL 서비스 상태 확인

$ sudo systemctl status postgresql-13

 

7. 재부팅 시 PostgreSQL 서비스가 시작되도록 서비스 활성화

$ sudo systemctl enable postgresql-13

 

8. PostgreSQL 외부 접속 허용(1)

$ vi /var/lib/pgsql/13/data/postgresql.conf
listen_addresses = '*'

 

9. PostgreSQL 외부 접속 허용(2)

$ vi /var/lib/pgsql/13/data/pg_hba.conf

#IPv4 local connections: 밑에 내용 추가
host all all 0.0.0.0/0 md5

postgreSQL DB 구성

 

1. DB user 생성

postgreSQL 진입

$ su - postgres
$ psql

 

  • USER NAME : jiradbadmin
  • PASSWORD : qwer1234
$ CREATE USER jiradbadmin PASSWORD 'qwer1234';

 

2. DB 생성

  • DB NAME : Jiradb
$ CREATE DATABASE jiradb WITH OWNER jiradbadmin ENCODING 'UTF-8

 

3. 권한 부여

$ GRANT ALL PRIVILEGES ON DATABASE jiradb TO jiradbadmin;

 

4. 생성된 USER, DB 확인

postgres=# \du

 

 

postgres=# \list

 

4. Jira Software 설치

1. jira  software 다운로드

아래의 사이트에서 Jira 9.4 (장기지원) 설치 미디어 다운로드

https://www.atlassian.com/ko/software/jira/update

 

Jira Software: 최신 버전 | Atlassian

여기에서 최신 버전을 다운로드하여 Jira Software를 계속 업데이트하세요. 릴리스 노트 및 지난 버전을 확인하여 Jira Software를 더 자세히 알아볼 수도 있습니다.

www.atlassian.com

링크 주소 복사 후 wget 명령어로 파일을 서버에 다운로드

$ wget https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-9.4.0-x64.bin

 

2. 설치 파일을 실행 가능하도록 권한 수정

$ chmod +x atlassian-jira-software-9.4.0-x64.bin

 

3. 설치 directory 구성

  • Jira 설치 directory : /atlassian/jira-9.4.0
  • Jira home directory : /atlassian/jira-home

4. Jira instailler 구동

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

 

5. Jira 설치

[root@junseok-test /]# ./atlassian-jira-software-9.4.0-x64.bin 
Unpacking JRE ...
Starting Installer ...

This will install Jira Software 9.4.0 on your computer.
OK [o, Enter], Cancel [c]

Click Next to continue, or Cancel to exit Setup.

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]
2

Select the folder where you would like Jira Software to be installed.
Where should Jira Software be installed?
[/opt/atlassian/jira]
/atlassian/jira-9.4.0

Default location for Jira Software data
[/var/atlassian/application-data/jira]
/atlassian/jira-home

Configure which ports Jira Software will use.
Jira requires two TCP ports that are not being used by any other
applications on this machine. The HTTP port is where you will access Jira
through your browser. The Control port is used to startup and shutdown Jira.
Use default ports (HTTP: 8080, Control: 8005) - Recommended [1, Enter], Set custom value for HTTP and Control ports [2]


Jira can be run in the background.
You may choose to run Jira as a service, which means it will start
automatically whenever the computer restarts.
Install Jira as Service?
Yes [y, Enter], No [n]
y

Details on where Jira Software will be installed and the settings that will be used.
Installation Directory: /atlassian/jira-9.4.0 
Home Directory: /atlassian/jira-home 
HTTP Port: 8080 
RMI Port: 8005 
Install as service: Yes 
Install [i, Enter], Exit [e]
i

Extracting files ...
                                                                           
/atlassian/jira-9.4.0/bin/tcnative-1.dll

The file already exists.

Would you like Setup to overwrite it?
Yes [y], Yes to All [ya], No [n], No to All [na]
y

Please wait a few moments while Jira Software is configured.

Installation of Jira Software 9.4.0 is complete
Start Jira Software 9.4.0 now?
Yes [y, Enter], No [n]
y

Please wait a few moments while Jira Software starts up.
Launching Jira Software ...

Installation of Jira Software 9.4.0 is complete
Your installation of Jira Software 9.4.0 is now ready and can be accessed
via your browser.
Jira Software 9.4.0 can be accessed at http://localhost:8080
Finishing installation ...

 

6. jira 설치 확인

$ http://localhost:8080