13주차
#개인서버를 100번 서버처럼 만들기
su
123456
100웹서버 http://
192.168.0.211
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.211
You can add content to the directory
/var/www/html/
cd /var/www/html
touch index.html
touch index.php
ls
/var/www/html안에 index.html이 1순위 index.php 2순위
systemctl stop httpd
systemctl start httpd
network>21>서버>ftp 21> firewall(21)
netstat -ant | grep 21
dnf -y install vsftpd
systemctl start vsftpd
netstart -ant | grep 21
firewall-cmd --add-service=ftp
firewall-cmd --runtime-to-permanent
ftp는 root로 접속할 수 없다
/var/www/html
master의 계정으로 메인페이지를 만들자
설치X, 서비스X
100
일반 사용자 계정을 활성화 시키기
활성화
/etc/httpd/conf.d/userdir.conf
nano userdir.conf
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Require method GET POST OPTIONS
원본
하나의 서버에 여러개의 웹페이지
public_html
/~user/public_html
cd /etc/skel
mkdir public_html
ls
cd public_html/
ls
touch index.html
touch index.php
워드프로세스, 워드프로세스1 public_html에 올려놓기
mkdir auth
mkdir includes
mkdir log
ls
cd auth
touch login.php
touch login_ok.php
touch mypage.php
touch logout.php
touch signup.php
touch signup_ok.php
cd includes
ls
touch header.php
touch footer.php
touch db.php
192.168.0.211/~master1
192.168.0.211/~master2
192.168.0.211/~master3
192.168.0.211/~master4
92번방으로 들어가기
192.168.0.92
ls
cd public_html
cd study
tar cvzf study.tar.gz ./
sz study.tar.gz