13일차
ftp로 만든 내 도메인(에딧플러스에서) 코드를 수정함
개인서버를 100번 서버처럼 만들거임
현재 인터넷에 내 아이피(205)를 치면 안될거임
안나오는 이유:설치가 안되었거나 포트가 열려있지 않아서임 현재 포트는 80번을 열어놨기 때문에 떠야하지만 안뜨므로 설치가 안되어있는것임
웹서버를 설치해줘야함
*중요*:서버를 설치하기 전에 포트가 열려있는지 무조건 확인해야함
xshell에서
netstat -ant | grep 80
command not found가 뜨면
dnf -y install net-tools를 해야함
dnf -y install httpd
netstat -ant | grep 80
systemctl start(여기 too few arguments가 뜨면 방화벽을 풀어줘야함 밑에 있는 firewall 두개)
netstat -ant | grep 80
firewall-cmd --add-service=http
firewall-cmd --runtime-to-permanent
network > 80 >서버 > FTP 80 ? firewall (80) http://192.168.0.205
이제 http 웹?이 뜰거임 거기서 You can add content to the directory(너는 디렉토리에 콘텐츠를 추가 할 수 있다)
위치는 cd /var/www/html/
touch index.html (1순위로 읽힘)
touch index.php (2순위로 읽힘)
이러면 웹사이트가 다시 흰색이 될거임
시스템 멈추기:systemctl stop httpd
21번
network > 21 >서버 > FTP 21 ? firewall (21)
netstat -ant | grep 21
dnf -y install vsftpd
systemctl start vsftpd
netstat -ant | grep 21
firewall-cmd --add-service=ftp
firewall-cmd --runtime-to-permanent
미션1 처음부터 다시하기
미션2 기술문서에 중요한 내용 정리