Hosting Jira on EC2

June Chung
2 min readSep 10, 2020

--

M or C is recommended type for EC2
For this demo i’ve used AWS Linux 2 AMI

>> yum update -y

>> sudo yum install java-1.8.0-openjdk-devel -y

>> cd /opt

>> wget https://www.atlassian.com/software/jira/downloads/binary/atlassian-jira-software-8.5.8.tar.gz

>> tar xzf atlassian-jira-software-8.5.8.tar.gz

>> mkdir jira_home

!!!! This will not work in both sudo & normal user (need to export jira_home to the user env that is running jira — or both sudo and normal user)

>>export JIRA_HOME=/opt/jira_home

>>[check] echo $JIRA_HOME

<! — — — SKIP this section if not sure — — — !>

> This is for REd Hat RHEL
>> vi /etc/profile.d
>> need to create something that starts with XXX.sh
>>put in export ENVIRONMENT=VAR
>>change permission chmod 777 (so normal user can also reach)
>> exit and login again

>> vi /etc/profile
>> at end of file type in >> export JIRA_HOME=/opt/jira_home

<can skip — making separate user for running jira — but need a password>

>> useradd — create-home — comment “User Account for running Jira software” — shell /bin/bash jira
→ Adding User “jira’ to run the jira application, not root

>>chown -R jira:jira atlassian-jira-software-8.5.8-standalone/ jira_home/

<! — — — -until here — — — -!>

>> iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080

>>/opt/atlassian-jira-software-8.5.8-standalone/bin/start-jira.sh
(to run as root)

>>/opt/atlassian-jira-software-8.5.8-standalone/bin/stop-jira.sh
(to stop!!)

## How to check memory usage
>> free -m
>> top

WHAT if jira IP address change?

https://confluence.atlassian.com/adminjiraserver/configuring-the-base-url-938847830.html

--

--