With my t1.micro, i can host my personal redmine, git and blog. But i couldn’t do that with default settings.
I have used swap on file to it and here is how you can do it:
Copy & paste the code below:
sudo su -c 'dd if=/dev/zero of=/var/swapfile bs=4096 count=524288chown root:root /var/swapfilechmod 0600 /var/swapfilemkswap /var/swapfileswapon /var/swapfileecho "/var/swapfile none swap sw 0 0" >> /etc/fstab'
To disable you can use:
sudo swapoff -v /var/swapfilesudo rm /var/swapfilesudo sed -i '/swapfile/d' /etc/fstab