1.先apt-get update一下當前默認的源,更新完成后先把vim命令安裝一下,再修改源倉庫為阿里云,否則無法直接編輯檔案
2.先添加阿里云的源,編輯檔案/etc/apt/sources.list,編輯完再次更新一下
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
安裝curl wget netstat telnet,這些常用的網路命令
安裝netstat是下面這個命令
apt-get install net-tools
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/162452.html
標籤:Linux
