13일차

이사 준비

내 서버 접속(도매인 x)
dnf -y update
dnf -y upgrade
dnf -y install vsftpd
dnf -y install bind bind-utils
dnf -y install httpd

서버 작동 안할시

- vm 서버 포트 80 확인
- 웹서버 설치 확인
netstat -ant | grep 80
command not found
dnf -y install net-tools
dnf -y install httpd
systemctl enalbe httpd
systemctl start httpd
netstat -ant | grep 80
systemctl stop httpd

firewall-cmd --add-service=http (방화벽 해제)
firewall-cmd --runtime-to-permanent (방화벽 해제)

network > 80 > 서버 > 웹서버 80 > firewall (80)
http://192.168.1.5
You con add content to the diectory
cd /var/www/html/
touch index.html
touch index.php
/var/www/html index.html (1우선 순위), index.php(2우선 순위)
systemctl stop httpd
systemctl start httpd

ftp
netstat -ant | grep 21
systemctl start vsftpd
netstat -ant | grep 21
systemctl stop vsftpd
firewall-cmd --add-service=ftp
firewall-cmd --runtime-to-permanent