Debian9: 네트워크 및 소프트웨어 소스 구성
3739 단어 Debian/Ubuntu
IP 구성
# vim /etc/network/interfaces
# eth0
auto eth0
# eth0 IP
iface eth0 inet static
address 192.168.60.110
netmask 255.255.255.0
gateway 192.168.60.2
DNS 구성
# vim /etc/resolv.conf
nameserver 114.114.114.114
debian 시스템에서 네트워크 재부팅
systemctl restart networking
debian 소스 설정
cp /etc/apt/sources.list /etc/apt/sources.list.ori
vi /etc/apt/sources.list
#
deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib
deb http://mirrors.aliyun.com/debian-security stretch/updates main
deb-src http://mirrors.aliyun.com/debian-security stretch/updates main
deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib
apt-get update
root@debian:~# apt-get install ssh -y
root@debian:~# grep Root /etc/ssh/sshd_config # sshd
#PermitRootLogin prohibit-password
PermitRootLogin yes
root@debian:~# systemctl restart sshd
기타
# apt-get upgrade
# apt-get dist-upgrade