Jira is a tool used for defect/issue/bug tracking and project management purpose. JIRA Core is the JIRA application that has both system and application functionalities. It helps an administrator to create a project, user, workflow, issue etc. In this tutorial we will learn how To Install Jira on CentOS 7.
Prerequisites: This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root accge of Linount, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Jira on a CentOS 7 server.
Install Jira on CentOS 7
Step 1. First let’s start by ensuring your system is up-to-date.
yum clean all yum -y update
Step 2. Installing Java.
JAVA is the first requirement for JIRA establishment. Verify you have JAVA SE 6 or Later form introduced in your framework:
sudo yum install java-1.8.0-openjdk sudo yum install java-1.8.0-openjdk-devel
If installation is success, you see the following output:
$ java -version openjdk version "1.8.0_201" OpenJDK Runtime Environment (build 1.8.0_281-b09) OpenJDK 64-Bit Server VM (build 28.201-b09, mixed mode)
Step 3. Installing Jira on CentOS.
Download the latest JIRA Installer (.bin) file from the JIRA official page or given link to directory /opt:
cd /opt wget https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-7.3.0-x64.bin
Then, give the execute permission to .bin file and install JIRA:
chmod +a atlassian-jira-software-7.3.0-x64.bin ./atlassian-jira-software-7.3.0-x64.bin
Step 4. Install MySQL.
The latest version of MySQL is version 8.0. To install it on your CentOS 7 server follow the steps below:
sudo yum localinstall https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm
Install MySQL 8.0 package with yum:
sudo yum install mysql-community-server
Once the installation is completed, start the MySQL service and enable it to automatically start on boot with:
sudo systemctl enable mysqld sudo systemctl start mysqld
Run the mysql_secure_installation command to improve the security of your MySQL installation:
sudo mysql_secure_installation
Step 5. Connectivity to JIRA with MySQL.
Create a database user for JIRA using following command:
$ mysql -u root -p CREATE DATABASE jiradb CHARACTER SET utf8 COLLATE utf8_bin; grant all privileges on jiradb.* to 'jira'@'%' identified by ''; flush privileges; exit
After you installing the JIRA, you require MySQL Connector driver. You can download either the .tar.gz or the .zip file from official site. Otherwise, you can use the following command:
cd /opt wget http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.35.tar.gz tar -zxvf mysql-connector-java-5.1.35.tar.gz
Copy the MySQL JDBC driver jar file to the JIRA installation directory /opt/atlassian/jira/lib/:
cd /opt/mysql-connector-java-5.1.35 cp mysql-connector-java-5.1.35-bin.jar /opt/atlassian/jira/lib/
To restart Jira service:
cd /opt/atlassian/jira/bin/ ./shutdown.sh ./startup.sh
Step 6. Configure firewall.
By default, it will be port 8080:
sudo firewall-cmd --zone=public --add-port=8080/tcp --permanent sudo firewall-cmd --reload
Step 7. Accessing JIRA.
After you successful installation Jira, login URL is displayed and use it to login:
http://server-ip:8080 or http://server-hostname:8080
Congratulation’s! You have successfully installed Jira. Thanks for using this tutorial for installing Jira on CentOS 7 systems. For additional help or useful information, we recommend you to check the official Jira website.