用hexo创建自己的Blog

1 篇文章 0 订阅
1 篇文章 0 订阅

1.更新系统

sudo apt-get upgrade
shutdown -r now        //重启

2-5步 一码速通

sudo apt install build-essential&&sudo apt-get install npm&&npm config set registry=https://registry.npmmirror.com&&sudo npm install -g cnpm --registry=https://registry.npmmirror.com&&sudo cnpm install -g hexo-cli&&cd ~&&mkdir Blog&&cd Blog&&hexo init&&npm install&&npm install hexo-deployer-git --save&&hexo clean&&hexo g&&hexo s

2.安装编译软件所必需的元包

sudo apt install build-essential

3.安装npm

由于国内装不了npm,所以装cnpm

sudo apt-get install npm
npm config set registry=https://registry.npmmirror.com
sudo npm install -g cnpm --registry=https://registry.npmmirror.com

4.安装hexo

sudo cnpm install -g hexo-cli

5.搭建本地Blog

cd ~        //回到根目录
mkdir Blog        //创建Blog的文件夹
cd Blog        //进入Blog
hexo init
npm install
npm install hexo-deployer-git --save
hexo clean && hexo g && hexo s

  • 6
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值