############################################
sudo yum update -y
4 sudo yum install -y httpd
6 sudo systemctl start httpd
7 sudo echo "hello from $(hostname -f)" > /var/www/html/index.html
9 cd /var/www/html
14 sudo touch index.html
15 sudo echo "asdf" >index.html
16 echo "asdf" >index.html
17 ll
18 sudo vim index.html
19 sudo systemctl enable httpd
20 sudo yum install -y tinyproxy
21 sudo amazon-linux-extras install epel -y
22 cat /etc/os-release
23 sudo dnf groupinstall -y "Development Tools"
24 sudo dnf install -y asciidoc
25 cd /tmp
26 wget https://github.com/tinyproxy/tinyproxy/releases/download/1.11.1/tinyproxy-1.11.1.tar.gz
27 tar -xzf tinyproxy-1.11.1.tar.gz
28 cd tinyproxy-1.11.1
29 ./configure --prefix=/usr --sysconfdir=/etc
30 make
31 sudo make install
32 sudo tee /etc/systemd/system/tinyproxy.service > /dev/null << 'EOF'
[Unit]
Description=Tinyproxy lightweight HTTP proxy
After=network.target
[Service]
Type=forking
ExecStart=/usr/bin/tinyproxy -c -d /etc/tinyproxy/tinyproxy.conf
PIDFile=/var/run/tinyproxy/tinyproxy.pid
User=nobody
Group=nobody
[Install]
WantedBy=multi-user.target
EOF
33 sudo mkdir -p /var/run/tinyproxy
34 sudo chown nobody:nobody /var/run/tinyproxy
35 sudo systemctl daemon-reload
36 sudo systemctl enable --now tinyproxy
37 vim /etc/tinyproxy/tinyproxy.conf
38 sudo vim /etc/tinyproxy/tinyproxy.conf
39 sudo systemctl restart tinyproxy
40 sudo nano /etc/systemd/system/tinyproxy.service
41 sudo systemctl daemon-reload
42 sudo systemctl restart tinyproxy
43 sudo systemctl status tinyproxy
############################################
#Amazon Linux 2:
#https://aws.amazon.com/premiumsupport/knowledge-center/ec2-enable-epel/
sudo amazon-linux-extras install epel -y
sudo yum install -y tinyproxy
vim /etc/tinyproxy/tinyproxy.conf
#Allow
Log /tmp
Pid /tmp











