Skip to content

Instantly share code, notes, and snippets.

@ryanvin
Last active June 19, 2021 01:20
Show Gist options
  • Save ryanvin/5ab0278b5ce3253742b0ba5d918c5fc8 to your computer and use it in GitHub Desktop.
Save ryanvin/5ab0278b5ce3253742b0ba5d918c5fc8 to your computer and use it in GitHub Desktop.
Install Jira on CentOS 7

Install MySQL

Visit https://dev.mysql.com/downloads/repo/yum, get right version. eg: mysql57-community-release-el7-11.noarch.rpm

  • wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
  • sudo rpm -ivh mysql57-community-release-el7-11.noarch.rpm
  • sudo yum install mysql-server
    • sudo systemctl start mysqld
    • sudo systemctl status mysqld
  • sudo grep 'temporary password' /var/log/mysqld.log get default root password
  • sudo mysql_secure_installation use default password and change password
    • Enter a new 12-character password that contains uppercase letter, lowercase letter, number and special character.

  • mysql -u root -p
  • CREATE DATABASE jira_db CHARACTER SET utf8 COLLATE utf8_bin;
  • CREATE USER 'jira'@'localhost' IDENTIFIED BY 'pass4jira';
  • GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,ALTER,INDEX on jira_db.* TO 'jira'@'localhost' IDENTIFIED BY 'pass4jira';
  • flush privileges;
  • restart mysql

Install Java

  • sudo yum install java-1.8.0-openjdk
  • sudo yum install java-1.8.0-openjdk-devel

Install Jira

  • localhost download jira from: https://www.atlassian.com/software/jira/download, get file: atlassian-jira-software-7.8.0-x64.bin
  • scp atlassian-jira-software-7.8.0-x64.bin name@host:~/Download/jira-78.bin
  • ssh name@host
  • cd ~/Download/
  • chmod 755 jira-78.bin
  • ./jira-78.bin
  • download mysql connector:
    • https://dev.mysql.com/downloads/connector/j/, get file: mysql-connector-java-5.1.46.tar.gz

    • scp mysql-connector-java-5.1.46.tar.gz name@host:<jira-application-dir>/atlassian-jira/WEB-INF/lib/mysql-connector-java-5.1.46.tar.gz
  • sudo firewall-cmd --zone=public --add-port=8080/tcp --permanent
  • sudo firewall-cmd --reload
  • /etc/init.d/jira start

tips

Installation Directory: /opt/atlassian/confluence
Home Directory: /var/atlassian/application-data/confluence
Backup /var/atlassian/application-data/jira/export/data-4-25_jira.backup.zip
/var/atlassian/application-data/jira/export/5-2.jirabackup.zip
/etc/nginx/nginx.conf local{client_max_body_size 10M}

@v-chaturvedi
Copy link

sudo firewall-cmd --zone=public --add-port=8080/tcp --permanent
sudo firewall-cmd --reload

these steps i had issue with, rest i completed still it's not working

@ryanvin
Copy link
Author

ryanvin commented May 24, 2019

sudo firewall-cmd --zone=public --add-port=8080/tcp --permanent
sudo firewall-cmd --reload

these steps i had issue with, rest i completed still it's not working

Have you solved the problem? If not ,can you post the error log? Let's work on it.

@jeffbelmiro
Copy link

sudo firewall-cmd --zone=public --add-port=8080/tcp --permanent
sudo firewall-cmd --reload

these steps i had issue with, rest i completed still it's not working

I resolved this problem doing the followed steps:

First you need to install the firewalld

sudo yum install firewalld

Then you need to start the firewalld

sudo systemctl start firewalld

After start the firewalld, please include all rules that you need, note that is important to not be blocked, add the SSH port (22) to the rule list

sudo firewall-cmd --zone=public --add-port=22/tcp --permanent

So, include the jira 8080 port rule

sudo firewall-cmd --zone=public --add-port=8080/tcp --permanent

Enable the firewalld service

sudo systemctl enable firewalld

Then restart the firewalld

sudo systemctl restart firewalld

And finally check the status

sudo systemctl status firewalld

Copy link

ghost commented Apr 2, 2020

SELinux?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment