11일차
리눅스 접속
명령어
ssh 192.168.0.210으로 ip설정
ip addr
ping 168.126.63.1
외부 접속 방법 이해
프로그램 설치
su #root로 변경
cd /etc/skel # cd change directory 디렉토리 이동
mkdir public_html
cd public_html
mkdir include
touch header.php
touch footer.php
cd ...
서버만 설치
dnf -y update
dnf -y upgrade
dnf -y install ysftpd
dnf -y install bind bind-utils
dnf -y httpd
진짜 ip 192.168.0.2~~을 통해 들어왔더니
가짜 ip inet 10.0.2.15/24 brd 10.0.2.255로 배정되었다
sudo nano /etc/hostname
리눅스에서 메모장역할을 하는게 nano
sudo root대신이다
root@vbox~: nano /etc/hostname
root 권한을 얻으면 sudo는 필요없다
리눅스 접속 후 포트포워딩하기
sudo nano /etc/hostname
su
root@vbox~: vi /etc/host:!
:q!
:name
i ---INSERT---
esc --INSERT--종료
:wq
write
quite
crtl + z
ps dnf
kill -9 XXX
vi /etc/resolv.conf
nameserver 168.126.63.1
reboot
dnf -y update
dnf -y install nano
RL9설치(IP,서브넷마스크,게이트웨이,DNS)
su > 잠금
vi / etc/resolv.conf
nameserver 168.126.63.1
이름 해석
def -y update 작동불가
ctrl+c, ctrl+z (일시정지)
ps
dnf
kill -9 PID
def -y update
168.126.63.1 은 KT
8.8.8.8은 구글