Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
yum update -y
dd if=/dev/zero of=/swapfile bs=128M count=32
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
swapon -s
echo "/swapfile swap swap defaults 0 0" >> /etc/fstab
yum install httpd -y
chkconfig httpd on
service httpd start
echo '<html><head><title>It works!</title></head><body>It works!</body></html>' > /var/www/html/index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment