Hosting Jira on EC2

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

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

(to run as root)

(to stop!!)

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

WHAT if jira IP address change?



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store