Linux
- Ubuntu
下载地址:http://mirrors.melbourne.co.uk/ubuntu-releases/
http://mirrors.huaweicloud.com/repository/ubuntu-releases/
- centos
windows
https://www.microsoft.com/zh-cn/software-download/windows10ISO?OCID=WIP_r_Win10_Body_AddPC
更新国内源
阿里: http://mirrors.aliyun.com/repo/
腾讯: http://mirrors.cloud.tencent.com/repo/
ubuntu
wget -O /etc/apt/sources.list http://mirrors.cloud.tencent.com/repo/ubuntu16_sources.list
wget -O /etc/apt/sources.list http://mirrors.cloud.tencent.com/repo/ubuntu18_sources.list
wget -O /etc/apt/sources.list http://mirrors.cloud.tencent.com/repo/ubuntu20_sources.list
gpg --keyserver keyserver.ubuntu.com --recv {根据提示}
gpg --export --armor {根据提示} | apt-key add -
apt-get clean all
apt-get update
修改网卡立即生效
vim /etc/network/interfaces
--------------------------------------
iface ens33 inet static
address 192.168.78.31
netmask 255.255.255.0
network 192.168.78.0
gateway 192.168.78.2
broadcast 192.168.78.127
dns-nameservers 8.8.8.8
#刷新网卡
sudo ip addr flush ens33
#重启网卡
service networking restart