Tuesday, September 1, 2015

Installing Atlassian Confluence on an AWS EC2 Instance

Turn off iptables (assumes you are using security groups as a firewall):
service iptables stop
chkconfig iptables off

You will need to add swap space (http://ift.tt/1KFFpK0):
dd if=/dev/zero of=/swapfile bs=1024 count=3096000
mkswap /swapfile
swapon /swapfile
add this in a new line to /etc/fstab:
/swapfile swap swap defaults 0 0

Download the Confluence installer from here:
wget http://ift.tt/1iUQ6Ip

Make that thing executable:
chmod u+x atlassian-confluence-*.bin

Run it:
./atlassian-confluence-*.bin

Press ‘enter’ to do all the default install options
Notes:
The swap space is necessary in order for Confluence to even start
You may need to turn off selinux (set /etc/selinux/config to have “disabled” instead of “enforcing”)
The step where it auto-pulls a trial key takes crazy-long
I’m not sure how truly performant this will be a on a t2.micro, so you may need to create an image and launch it on a t2.small or t2.medium for more CPU horsepower



No comments:

Post a Comment