confluence正常安装网页报错_Hexo安装及常用命令使用

bbac573eabcb14da131fa85491758f23.png

Hexo 安装

  1. npm install hexo -g #安装
  2. npm update hexo -g #升级
  3. npm init #初始化

启动服务

hexo s #启动服务预览并自动更新,无需重启服务器

其他命令

1.hexo server -s #静态模式
2.hexo server -p 5000 #更改端口
3.hexo server -i 192.168.1.1 #自定义IP
4.hexo clean #清理缓存
5.hexo g #生成静态网页
6.hexo d #开始部署

7.hexo g -d #生成静态网页并部署,两步并一步

草稿

hexo publish [layout]

模版

  1. hexo new “postName” #新建文章
  2. hexo new page “pageName” #新建页面
  3. hexo server #启动服务预览
  4. hexo generate #生成静态页面
  5. hexo deploy #部署

简写

  1. hexo n “我的博客” == hexo new “我的博客” #新建文章
  2. hexo g == hexo generate #生成
  3. hexo s == hexo server #启动服务预览
  4. hexo d == hexo deploy #部署

设置文章摘要

447454f2f376e31dc58b724a447bdd47.png

报错处理

error:ERROR Deployer not found: git

处理:npm install hexo-deployer-git –save

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值