Skip to content

Instantly share code, notes, and snippets.

@wendreof
Created August 19, 2023 04:30
Show Gist options
  • Save wendreof/a66789886d6ddb1ba4bfb985d30e7482 to your computer and use it in GitHub Desktop.
Save wendreof/a66789886d6ddb1ba4bfb985d30e7482 to your computer and use it in GitHub Desktop.
aws-commands learning
#!/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