$ 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
以上apt-get ubuntu 镜像源本人亲测可用 方法: bash $ sudo vim /etc/apt/sources.list
在前面加# 注释掉原来的镜像源 替换成国内的镜像源这个bionic(Ubuntu系统代号codename)要根据自己的Ubuntu版本进行修改 查看Ubuntu版本命令lsb_release -a,可解决下载速度慢 bash $ hexo -s hexo clean hexo d or hexo deploy hexo s 启动本地服务器 localhost:4000 or 127.0.0.1:4000 hexo d 生成一个public文件夹 打包发布成浏览器可执行的html文件