服务器部署
本人用的是阿里云
1.用xshell连接服务器终端
2.用filezilla连接服务器用来传文件
3.更换ubuntu源为阿里源
拷贝sources.list:
sudo cp /etc/apt/sources.list /etc/apt/sources1.list
删除配置文件
sudo rm /etc/apt/sources.list
打开配置文件:
sudo vi /etc/apt/sources.list
按i进入插入模式,然后粘贴aliyun的源
deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial universe deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates universe deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial multiverse deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates multiverse deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main rest