Advertisement
arshad75

instanceID

Dec 5th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #!/bin/bash
  2. yum update -y
  3. sudo yum install -y httpd24
  4. sudo service httpd start
  5. sudo chkconfig httpd on
  6. sudo groupadd www
  7. sudo usermod -a -G www ec2-user
  8. sudo chown -R root:www /var/www
  9. sudo chmod 2775 /var/www
  10. sudo chown ec2-user /var/www/noindex/index.html
  11. sudo echo `ec2-metadata -i` > /var/www/noindex/index.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement