配置服务器
1. 更换源
首先肯定要有一台服务器了,我用的是Ubuntu系统。拿到服务器,先配置一下阿里源。
-
备份原文件
sudo cp /etc/apt/sources.list /etc/apt/sources_cp.list
-
打开配置文件
sudo vim /etc/apt/sources.list
-
将全部内容替换源
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse deb-src http://mirrors.aliyun.co