Hamsa K
Editor
5 min read | 5 years ago

How to Install Jira in Centos 7

Install Jira on centos 7

JIRA is a issue tracking product, It is used for bug tracking, issue tracking, and project management system.Here we will see how to install and configure latest verion of jira on centos.

Step 1: Install java

[root@lampblogs ~]# yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel

and check java version by using command as  "java --version"

[root@lampblogs ~]# java -version
openjdk version "1.8.0_212"

Step 2: Install mysql

[root@lampblogs ~]# wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
[root@lampblogs ~]# rpm -ivh mysql57-community-release-el7-11.noarch.rpm
[root@lampblogs ~]# yum install mysql-server
[root@lampblogs ~]# systemctl start mysqld
[root@lampblogs ~]# systemctl status mysqld
[root@lampblogs ~]# grep 'temporary password' /var/log/mysqld.log  ### to get default password ###
[root@lampblogs ~]# mysql_secure_installation    ### use default password and change new password ###

Note: while setting password you have to choose strong password with uppercase,lowercase letters,numbers and special characters etc.

Now create one mysql db and user with following commands

[root@lampblogs ~]# mysql -u root -p
### After entering root password run following commands in mysql shell ####
CREATE DATABASE jiradb CHARACTER SET utf8 COLLATE utf8_bin;
grant all privileges on jiradb.* to 'jira'@'%' identified by 'password';
flush privileges;

keep strong password otherwise you will get below error 

ERROR 1819 (HY000): Your password does not satisfy the current policy requirements

If you want simple password (not secure for production server) use below command in mysql promt

SET GLOBAL validate_password_policy=LOW;

Now only it will allow to keep simple passwords.

exit from mysql.Then restart mysql service as below

[root@lampblogs ~]# systemctl restart mysqld

Step 3: Install Jira

download jira from https://www.atlassian.com/software/jira/download

[root@lampblogs ~]# cd /opt
[root@lampblogs opt]# wget https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-8.2.0.zip
[root@lampblogs opt]# unzip atlassian-jira-software-8.2.0.zip 
[root@lampblogs opt]# mv atlassian-jira-software-8.2.0-standalone atlasian
[root@lampblogs opt]# mkdir /opt/jira
[root@lampblogs opt]# mkdir /opt/jira/home
[root@lampblogs opt]# vi /opt/atlassian/atlassian-jira/WEB-INF/classes/jira-application.properties
### set jira.home as jira.home = /opt/jira/home ###
[root@lampblogs opt]# cd /opt/atlassian/bin
[root@lampblogs bin]# ./startup.sh

Now you can access jira as http://ip_address:8080

Download jdbc drivers from http://dev.mysql.com/downloads/connector/j/

ex: mysql-connector-java-5.1.47.zip

and copy MySQL JDBC driver to application server after extracted zip file as below

[root@lampblogs opt]# cd mysql-connector-java-5.1.47
[root@lampblogs mysql-connector-java-5.1.47]# mv mysql-connector-java-5.1.47.jar /opt/atlassian/lib/

Restart jira service

[root@lampblogs ~]# cd /opt/atlassian/bin/
[root@lampblogs bin]# ./stop-jira.sh
root@lampblogs bin]# ./start-jira.sh

Enter db details like below

Warning! This site uses cookies
By continuing to browse the site, you are agreeing to our use of cookies. Read our terms and privacy policy