Created
August 19, 2023 04:30
-
-
Save wendreof/a66789886d6ddb1ba4bfb985d30e7482 to your computer and use it in GitHub Desktop.
aws-commands learning
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
yum update -y | |
yum install httpd -y | |
systemctl start httpd | |
systemctl enable httpd | |
---------------------------------- | |
rpm -qa | grep httpd | |
----------------------- | |
sudo fdisk -l | |
------------------------------ | |
lsblk | |
------------------------------ | |
#!/bin/bash | |
yum update -y | |
yum install httpd -y | |
systemctl enable httpd && systemctl start httpd | |
sudo su | |
touch /var/www/html/index.html | |
echo "Olá! eu sou o servidor $(hostname -f)" > /var/www/html/index.html | |
------------------------------------------------------------ | |
cd /var/log/httpd | |
tail -f access_log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment