13일차

menu 만들기
- 소개
- 공부방

소개 작성: init 디렉토리에 index.php 내용 복붙
소개 항목에 특이사항 작성(자격증, 상 등등)

100번 서버의 운영방식 이해
100번 서버에는 웹서버가 들어감

개인서버를 100번 서버처럼 만들기
su
123456
100 웹서버 http://byzeroh.kr
본인의 ip로 웹서버에 접속할 수 없다
웹서버 설치가 안됐거나 포트가 열려있지 않음
서버에 웹서버를 설치해준다

netstat -ant | grep 80
command not found
dnf -y install net-tools
dnf -y install httpd
systemctl enable httpd
systemctl start httpd
systemctl stop httpd
firewall-cmd --add-service=http
firewall-cmd --runtime-to-permanent

network > 80 > 서버 > 웹서버 80 > firewall (80)
http://192.168.0.203
You can add content to the directory
cd /var/www/html index.html
touch index.html
/var/www/html index.html (1), index.php (2),
systemctl stop httpd

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

ip + port

디렉토리 권한 푸는법 : Xshell -> ls -> cd [디렉토리] -> chmod 755 [디렉토리명]

ls
cd public_html
cd study
tar cvzf study.tar.gz ./
sz study.tar.gz