Home / How To / How to install Jira Agile Project Management Tool on CentOS 8

How to install Jira Agile Project Management Tool on CentOS 8



Jira is a smooth project management tool developed by Atlassian that can be used for problem tracking, project management and bug fixing. It provides a user-friendly web interface to help you track problems. You can plan, track and manage all your agile software development projects through a web browser. It can easily be integrated with Confluence, Bitbucket and other developer tools.

In this guide I will explain how to install and configure Jira on CentOS 8.

Prerequisites

  • A server running CentOS 8.
  • A root password is configured on your server.

Installing Java

Jira is written in Java. So you need to install Java on your system. You can install it by running only the following command:

  dnf install java-1
1-openjdk-devel -y

After installing Java, verify the installed version of Java with the following command:

  java version
openjdk version "11.0.5" 2019-10-15 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.5 + 10-LTS)
OpenJDK 64-bit server VM 18.9 (build 11.0.5 + 10-LTS, mixed mode, sharing)

Install MySQL Server

At the time of writing this tutorial, Jira does not support MySQL version 8 and MariaDB server. So you need to install MySQL 5.7 in your system.

First you need to disable MySQL default AppStream archive from your system. You can disable it with the following command:

  dnf remove @mysql 
dnf module reset mysql
dnf module disable mysql

Then create a new archive file for MySQL 5.7 with the following command: [19659008] nano / etc /yum.repos.d/mysql-community.repo??19659009??Add the following lines:

  [mysql57-community]
name = MySQL 5.7 Community Server
baseURL = http: //repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/
enabled = 1
gpgcheck = 0

[mysql-connectors-community]
name = MySQL Connectors Community
baseURL = http: //repo.mysql.com/yum/mysql-connectors-community/el/7/$basearch/
enabled = 1
gpgcheck = 0

[mysql-tools-community]
name = MySQL Tools Community
baseURL = http: //repo.mysql.com/yum/mysql-tools-community/el/7/$basearch/
enabled = 1
gpgcheck = 0

Save and close the file when you are done. Then install MySQL 5.7 by running the following command:

  dnf --enablerepo = mysql57-community install mysql-community-server 

When the installation is complete, start the MySQL service and enable it to restart after the system reboot with the following command:

  systemctl start mysqld 
systemctl enable mysqld

After installation, a temporary MySQL root password was generated. You can capture the password with the following command:

  grab & # 39; A temporary password & # 39; /var/log/mysqld.log | tail -1 

You should get the following output:

  2020-02-15T08: 35: 33.127395Z 1 [Note] A temporary password is generated for [email protected]: -) g2o +) feIw4

Remember this password because you will need it during the MySQL root password recovery process.

Then it is recommended to reset the default MySQL root password You can reset it with the following command:

  mysql_secure_installation 

You will be prompted to enter your default MySQL root password:

   Enter the password for the user root : 

Enter default MySQL root password and hit Enter to set a new password as shown below:

  New password:
Re-enter new password:
The estimated strength of the password: 100
Do you want to continue with the specified password? (Press y | Y for Yes, any other button for No): Y

Type Y and press Enter to continue and follow the instructions shown below:

  Remove anonymous users? (Press y | Y for Yes, any other button for No): Y
Remove root login remotely? (Press y | Y for Yes, any other button for No): Y
Delete the test database and access it? (Press y | Y for Yes, any other button for No): Y
Reload privilege tables now? (Press y | Y for Yes, any other button for No): Y

Configuring MySQL Database

Then you need to adjust some MySQL settings. You can do this by editing the my.cnf file:

  nano /etc/my.cnf tu 1919900919 Add the following lines to the [mysqld] section: 

  default-storage-engine = INNODB
character_set_server = utf8mb4
innodb_default_row_format = DYNAMIC
innodb_large_prefix = ON
innodb_file_format = Barracuda
innodb_log_file_size = 2G
sql_mode = NO_AUTO_VALUE_ON_ZERO

Save and close the file. Then restart the MySQL service to implement the changes:

  systemctl restart mysqld 

Next, log in to the MySQL shell:

  mysql -u root -p 

Enter your root password and create a database and user for Jira with the following command:

  mysql> CREATE DATABASE jiradb CHARACTER SET utf8mb4 COLLATE utf8mb4_bin; 
mysql> CREATE USER & # 39; jira & # 39; @ & # 39; localhost & # 39; IDENTIFIED BY & # 39; [194590609] Next

; required privileges for jiradb with the following command:

  mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, ALTER, INDEX on jiradb. * TO & # 39; jira & # 39; @ & # 39; localhost & # 39; IDENTIFIED BY & # 39; [email protected] & # 39 ;; 

Then flush the privileges and leave the MySQL shell with the following command:

  mysql> FLUSH PRIVILEGES; 
mysql> EXIT;

Installing and configuring Jira

First, download the latest version of the Jira installation binary with the following command:

  wget https://product-downloads.atlassian.com/software / jira / downloads / atlassian-jira -software-8.6.0-x64.bin -O atlassian-jira-software.bin 

After downloading, you provide the run state for the downloaded binary file:

  chmod + x atlassian-jira-software.bin [19659009] Then run the following command to start the installation: 

  ./ atlassian-jira-software.bin 

You will be asked several questions as shown below:

  Unpacking JRE ...
Launch installer ...

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

Press Enter to start the installation:

  Click Next to continue or Cancel to finish the installation.

Select the appropriate installation or upgrade option.
Choose one of the following:
Express installation (use default settings) [1] Custom installation (recommended for advanced users) [2, Enter] Upgrade an existing Jira installation [3]
1

Enter 1 and enter Enter to express the installation:

  Details of 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 a service: Yes
Install [i, Enter] Exit [e]

Hit Enter to start the installation:

  Extract files ...

Wait a few moments while Jira Software is configured.

The installation of Jira Software 8.6.0 is complete
Start Jira Software 8.6.0 now?
Yes [y, Enter] No [n]

Press Enter to start the Jira service. When the installation is complete, you should get the following output:

  Wait a few moments while Jira Software starts.
Launches Jira software ...

The installation of Jira Software 8.6.0 is complete
Your installation of Jira Software 8.6.0 is now complete and reachable
via your browser.
Jira Software 8.6.0 can be reached at http: // localhost: 8080
Finishing installation ...

Then you need to download and install Java MySQL connector in Jira.

First, download the MySQL connection with the following command:

  wget https://dev.mysql.com/get/Downloads/ Connector-J / mysql-connector-java-8.0.18.zip 

Package then download the downloaded file and copy it to the Jira installation directory with the following command:

  unzip mysql-connector-java-8.0.18 .zip 
cp mysql-connector-java-8.0.18 / mysql-connector-java -8.0.18.jar / opt / atlassian / jira / lib

Then restart the Jira service with the following command to implement the changes:

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

Then you must configure the HTTP connection and define your proxy in Jira. You can configure it by editing the /opt/atlassian/jira/conf/server.xml file 1919900900/8 nano /opt/atlasian/jira/conf/server.xml Chapter19659009 ?? Find the following lines:

  <Connection port = "8080 "relaxPathChars =" [] | " relaxedQueryChars = "[] | {} ^  & # 39;" <> "
maxThreads = "150" minSpareThreads = "25" connectionTimeout = "20000" enableLookups = "false"
maxHttpHeaderSize = "8192" protocol = "HTTP / 1.1" useBodyEncodingForURI = "true" redirectPort = "8443"
acceptCount = "100" disableUploadTimeout = "true" bindOnInit = "false" />

And replace it with the following lines:

  <Connection port = "8080" relaxPathChars = "[] |" relaxedQueryChars = "[] | {} ^  & # 39;" <> "
maxThreads = "150" minSpareThreads = "25" connectionTimeout = "20000" enableLookups = "false"
maxHttpHeaderSize = "8192" protocol = "HTTP / 1.1" useBodyEncodingForURI = "true" redirectPort = "8443"
acceptCount = "100" disableUploadTimeout = "true" bindOnInit = "false" scheme = "http"
proxyName = "jira.example.com" proxyPort = "80" />

Save and close the file and then restart the Jira service to apply the changes:

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

Configure Nginx as a reverse proxy for Jira

By default, Jira runs on port 8080. It is a good idea to configure Nginx as a reverse proxy for Jira. So you can access Jira with port 80.

Install the Nginx web server with the following command:

  dnf install nginx-y 

When you install Nginx, you start the Nginx service and enable it to boot after system restart:

  systemctl start nginx 
systemctl enable - now nginx

Then create a new virtual host configuration file for Jira:

  nano /etc/nginx/conf.d/jira. conf 

Add the following lines:

  server {
listen 80;
server name jira.example.com;
location / {
proxy_set_header X-Forwarded-Host $ host;
proxy_set_header X-Forwarded-Server $ host;
proxy_set_header X-Forwarded-For $ proxy_add_x_forwarded_for;
proxy_pass http: // localhost: 8080;
client_max_body_size 10M;
}
}

Save and close the file when you are done. Then test Nginx for all syntax errors with the following command:

  nginx -t 

You should get the following output:

  nginx: /etc/nginx/nginx.conf syntax file is ok
nginx: The /etc/nginx/nginx.conf test configuration file is successful

Finally, restart Jira and the Nginx service to apply the changes:

  /etc/init.d/jira stop 
/etc/init.d/jira start
  systemctl nginx restart 

Configure SELinux and Firewall

Next, you must allow port 80 through firewall. You can configure it with the following command:

  firewall-cmd --add-service = http --permanent 
firewall-cmd - reload

By default, SELinux is enabled in CentOS 8. It is recommended to disable it as it can make the Jira application work properly.

You can disable SELinux by editing / etc / selinux / config file:

  nano / etc / selinux / config 

Find the following line: [19659010] selinux = enforce

And replace it with the following line:

   SELINUX = allowed 

Save and close the file. Then restart the system to apply the changes:

Access to the Jira Dashboard

Open your browser and type the URL http://jira.example.com . You will be redirected to the following page:

 Jira Installer

Select " I will set it myself " and click the Next button. You should see the following page:

 Database Set

Select " My Own Database ", enter your database information and click the Next button. You should see the following page:

 Application Properties

Enter your application title, URL and click the Next button. You should see the following page:

 License Key

Enter your sample license key and click the Next button. You should see the following page:

 Administrator account

Enter your administrator account details and click the Next button. You should see the following page:

 E-mail

Click the Finish button to complete the installation. You should see the language selection page:

 Select language

Select the desired language and click the Continue button. You should see the following page:

 Jira account

Select your avatar and click the Next button. You should see the following page:

 Jira Dashboard

Click " Create New Project " to create your first project. You should see the following page:

 Create a project in Jira

Select " Scrum software development " and click the Next button. You should see the following page:

 Scrum Software Development

Click the Select button to select your workflow. You should see the following page:

 Project name and key

Enter your project name and key, and then click the Send button. You should see the Jira dashboard on the following page:

 Jira Project Panel

Conclusion

Congratulations! you have installed and configured Jira on CentoS 8. You can now start exploring Jira to know how it works. Feel free to ask me if you have any questions.


Source link