How to install Jira on CentOS 8 / RHEL 8 Linux

JIRA is a project management tool developed by Atlassian. It is also used for issue tracking and bug tracking related to software development and other projects. This guide will guide you through installing Jira on CentOS 8 / RHEL 8 Linux.

Step 1: Install Java

To run Jira, Java needs to be installed on CentOS 8 / RHEL 8 computers. Check out the guide on how to install Java in CentOS / RHEL 8 system:

How to install Java on RHEL 8 / CentOS 8 (OpenJDK 11)

Confirm the installation by checking the Java version:

$ 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)

Step 2: Install MySQL 5.7 database server

At the time of writing, Jira is not available for MySQL 8 database server, please use the guide below to install MySQL 5.7.

Install MySQL 5.7 database CentOS 8 / RHEL 8

Edit the MySQL 5.7 configuration server section to add the following lines.

$ sudo vi /etc/my.cnf
[mysqld]
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

Restart the mysqld service:

sudo systemctl restart mysqld

After installing the database server, log in as root and create a database and user for Jira:

$ mysql -u root -p
CREATE DATABASE jira CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
CREATE USER 'jira'@'localhost' IDENTIFIED BY '[email protected]%rd';
GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,REFERENCES,ALTER,INDEX on jira.* TO 'jira'@'localhost' IDENTIFIED BY '[email protected]%rd';
FLUSH PRIVILEGES;
QUIT;

Step 3: Download and install JIRA on CentOS 8 / RHEL 8

Now that we have Java and the database server installed, the next step is to download the JIRA binaries. Check the latest version on the Jira Download page.

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

Give the file execution bits:

chmod +x atlassian-jira-software.bin

Now start the installer:

sudo ./atlassian-jira-software.bin

Press Press the key to start Jira settings.

Unpacking JRE ...
Starting Installer ...

This will install Jira Software 8.6.0 on your computer.
OK [o, Enter], Cancel [c]
Click Next to continue, or Cancel to exit Setup.

select[[[[1]Use quick install settings:

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 

Types of I Key to start the installation.

Install [i, Enter], Exit [e]
i
Extracting files ...
Please wait a few moments while Jira Software is configured.
Installation of Jira Software 8.6.0 is complete

Accept to start the Jira service.

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

Install Java MySQL Connector:

wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.18.zip
unzip mysql-connector-java-8.0.18.zip
sudo cp mysql-connector-java-8.0.18/mysql-connector-java-8.0.18.jar /opt/atlassian/jira/lib

Restart Jira:

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

Step 4: Configure JIRA Nginx Agent on CentOS 8 / RHEL 8

Install Nginx web server and enable the service.

sudo yum -y install nginx
sudo systemctl enable --now nginx

Configure HTTP connector

Edit the Jira server configuration file.

sudo vi /opt/atlassian/jira/conf/server.xml

Find the following code snippet:

"
                   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"

And add proxyName with proxyPort Elements (replace them with appropriate attributes), and another connector below – for troubleshooting bypass agents:

proxyName="jira.computingforgeeks.com" proxyPort="80"/>

Also add these new lines to bypass the proxy.


            

Don’t forget to replace jira.computingforgeeks.com In your configuration. Your configuration should look like this:

Restart Jira:

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

Configure Nginx

Create a new Nginx configuration file for Jira.

sudo vi /etc/nginx/conf.d/jira.conf

Update Nginx settings to use the following server (replace jira.computingforgeeks.com With FQDN and local host If Nginx is on another server, use the hostname of the server):

server {
    listen 80;
    server_name jira.computingforgeeks.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;
    }
}

Disable Nginx and restart Jira and Nginx

sudo setenforce 0
sudo sed -i 's/^SELINUX=.*/SELINUX=permissive/g' /etc/selinux/config
sudo  /etc/init.d/jira stop
sudo  /etc/init.d/jira start
sudo systemctl restart nginx

Confirm the status of the two services:

$ systemctl status jira nginx
● jira.service
   Loaded: loaded (/etc/rc.d/init.d/jira; generated)
   Active: active (running) since Mon 2020-01-06 16:06:27 EAT; 22s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 6299 ExecStop=/etc/rc.d/init.d/jira stop (code=exited, status=0/SUCCESS)
  Process: 6393 ExecStart=/etc/rc.d/init.d/jira start (code=exited, status=0/SUCCESS)
    Tasks: 89 (limit: 11512)
   Memory: 357.4M
   CGroup: /system.slice/jira.service
           └─6430 /opt/atlassian/jira/jre//bin/java -Djava.util.logging.config.file=/opt/atlassian/jira/conf/logging.properties -Djava.util.logging.man>

Jan 06 16:06:27 centos8.novalocal jira[6393]:                `UOJ
Jan 06 16:06:27 centos8.novalocal jira[6393]: [1B blob data]
Jan 06 16:06:27 centos8.novalocal jira[6393]:       Atlassian Jira
Jan 06 16:06:27 centos8.novalocal jira[6393]:       Version : 8.6.0
Jan 06 16:06:27 centos8.novalocal jira[6393]: [19B blob data]
Jan 06 16:06:27 centos8.novalocal jira[6393]: If you encounter issues starting or stopping Jira, please see the Troubleshooting guide at https://docs.a>
Jan 06 16:06:27 centos8.novalocal jira[6393]: Server startup logs are located in /opt/atlassian/jira/logs/catalina.out
Jan 06 16:06:27 centos8.novalocal jira[6393]: Tomcat started.
Jan 06 16:06:27 centos8.novalocal runuser[6399]: pam_unix(runuser:session): session closed for user jira
Jan 06 16:06:27 centos8.novalocal systemd[1]: Started jira.service.

● nginx.service - The nginx HTTP and reverse proxy server
   Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2020-01-06 16:06:43 EAT; 6s ago
  Process: 6540 ExecStart=/usr/sbin/nginx (code=exited, status=0/SUCCESS)
  Process: 6538 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)
  Process: 6537 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
 Main PID: 6542 (nginx)
    Tasks: 2 (limit: 11512)
   Memory: 3.9M
   CGroup: /system.slice/nginx.service
           ├─6542 nginx: master process /usr/sbin/nginx
           └─6543 nginx: worker process

Jan 06 16:06:43 centos8.novalocal systemd[1]: Starting The nginx HTTP and reverse proxy server...
Jan 06 16:06:43 centos8.novalocal nginx[6538]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
Jan 06 16:06:43 centos8.novalocal nginx[6538]: nginx: configuration file /etc/nginx/nginx.conf test is successful
Jan 06 16:06:43 centos8.novalocal systemd[1]: nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument
Jan 06 16:06:43 centos8.novalocal systemd[1]: Started The nginx HTTP and reverse proxy server.

Allow http ports in the firewall:

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

After the installation is complete, go to jira.example.com Start the setup process in your browser.

Select ”I set it myself“.

How to install Jira on CentOS 8 / RHEL 8 Linux

Click “next“And provide MySQL database credentials. For the type, select”My own database

How to install Jira on CentOS 8 / RHEL 8 Linux

Click Test Connection and a successful connection message will be displayed.

How to install Jira on CentOS 8 / RHEL 8 Linux

On the next page, fill in “Application Title”, “Mode”, JIRA License, Administrator Account, Email Notification. The last page will ask you to choose the default language.

How to install Jira on CentOS 8 / RHEL 8 Linux

Visit the Jira Admin dashboard to create more users.

How to install Jira on CentOS 8 / RHEL 8 Linux

In the next guide, we will cover Let’s Encrypt SSL Certificate to Protect Your Jira Installation.

Install OpenProject Community Edition on Debian 10 (Buster)

Best Project Management Professional (PMP) Certificate

How to install Taiga.io project management tools on Ubuntu

Top rated AWS Cloud certification preparation

Best Certified Scrum Master Preparation

Sidebar