系統安裝
ubuntu 18.04 英文版,建立我的用戶shell
b. 修改dns
shell> sed -i '#namserver#i#namserver 202.96.168.86' /etc/resolv.conf (臨時修改,重啓後清空!)
如下爲永久更改DNS
shell> vim /etc/resolvconf/resolv.conf.d/base
nameserver 202.96.128.86
nameserver 8.8.8.8
shell> sudo apt-get resolvconf
shell> sudo resolvconf -uubuntu
開啓root用戶ssh遠程
shell> sudo apt-get install openssh-server
修改遠程配置文件/etc/ssh/sshd_config
PermitRootLogin yes
shell > sudo systemctl restart sshdvim
安裝必備軟件
sudo apt-get vim net-tools resolvconf systatssh
更新
apt update ---只檢查已安裝的軟件包是否有可用的更新,不更新;
apt upgrade ---更新已安裝的軟件包rest
修改主機名
hostnamectl set-hostname ali-sz-xh-172-16-1-59server