15일차

nameserver 168.126.63.1 이름 해석 dnf -y update 작동불가 ctrl+c,ctrl+z (일시정지) dnf -y install httpd netstat -ant | grep 80 dnf -y install net-tools systemctl start httpd dnf -y install vsftpd netstat -ant | grep 21 systemctl start vsftpd firewall-cmd --add-service=http firewall-cmd --runtime-to-permanent firewall-cmd -add-service=ftp firewall-cmd --runtime-to-permanent You can add content to the directory systemctl enable --now httpd php와 mysql를 설치 dnf module list php dnf module -y reset php dnf module -y enable php:7.4 dnf module -y install php:7.4/common php -v systemctl restart httpd systemctl status php-fpm dnf module -y install mariadb:10.3 nano /etc/my.cnf.d/charset.cnf [mysqld] character-set-server = utf8mb4 [client] default-character-set = utf8mb4 systemctl enable --now mariadb #방화벽 firewall-cmd --add-service=http firewall-cmd --runtime-to-permanent firewall-cmd --add-service=mysql firewall-cmd --runtime-to-permanent systemctl stop mariadb rm -rf /var/lib/mysql/* mysql_install_db --datadir=/var/lib/mysql --user=mysql systemctl start mariadb ftp는 root로 접속 할 수 없다 /var/www/html master 의 계정으로 메인 페이지 만들자! 설치X, 서비스X 100 일반 사용자의 게정을 활성화 시키기 활성화 /etc/httpd/conf.d/userdir.conf nano userdir.conf 하나의 서버에 여러개의 웹홈페이지 public_html /~user/public_html shooping.kgorani.kr ai.dulgi.kr /home/baxg/public_html 192.168.1.5/~master1 192.168.1.5/~master2 192.168.1.5/~master3 192.168.1.5/~master4 nano 없다 dnf -y install nano 스냅샷 후 재설치까지 완료 dnf -y update dnf -y install net-tools dnf -y install nano dnf -y install lrzsz sz userdir.conf (난 안해도 댐) nano userdir.conf 나가는법 컨 x 쉬 y enter 계정 추가 useradd shooping useradd ai cd /etc/skel pwd ls cd public_html ls cd public_html ls touch index.html touch index.php 도메인 앞에 shop or ai /etc/httpd/conf.d 워프 만원 (워드 프레스) codeigniter (코드이그나이터) 코드를 불태우다 (열정적으로 짜겠다) mkdir auth mkdir includes mkdir log ls 만들때는 mkdir 루트에서 cd auth touch login.php touch login_ok.php touch mypage.php touch logout.php touch signup.php touch signup_ok.php cd includes cd .. cd includes touch header.php touch footer.php touch db.php cd .. cd log 엄청 중요한 파일 touch access.log touch error.log clear 계정 추가 cd /home ls 치면 master한명만 있음 쌤이 카톡으로 준거 100 > 22 21 : Editplus,알드라이브,cmd 80 : 웹브라우저 http:// dnf -y install httpd netstat -ant | grep 80 dnf -y install net-tools systemctl start httpd firewall-cmd --add-service=http firewall-cmd --runtime-to-permanent You can add content to the directory /var/www/html/. dnf -y install vsftpd netstat -ant | grep 21 systemctl start vsftpd 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 하나의 서버에 여러개의 웹페이지 public_html /~user/public_html shopping.kgorani.kr ai.dulgi.kr /home/dulgi/public_html /home/kgorani/public_html /home/spiXXXX/public_html 계정추가 useradd shopping useradd ai cd /etc/skel