13일차>
개인서버를 100번 서버처럼 만들기
su
123456
100 웹서버 http://spicychickin.kr
192.168.0.201~192.168.0.220
[서버 설치방법]
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
ip+port
[포트열기]
firewall-cmd --add-service=http
firewall-cmd --runtime-to-permanent
network > 80 > 서버 > 웹서버80 > firewall (80)
http://192.168.0.217 >> you can add content to the directory
cd /var/www/html
touch index.html
/var/www/html(ls) > index.html(1),index.php(2)
systemctl stop httpd(잠깐 멈추기)
systemctl start httpd(시작하기)
network >21 > 서버 > FTP21 > 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
[이사하기]
192.168.0.92
master@IP92~
ls
cd public_html
cd study
tar cvzf study.tar.gz ./
sz study.tar.gz