Windows安装部署Hexo博客
- 安装git及nodejs(网上教程很多,略…)
git bash环境下安装hexo:
npm install -g hexo-cli
1、help: 查看帮助信息 2、init [文件夹名]: 创建一个hexo项目,不指定文件夹名,则在当前目录创建 3、version: 查看hexo的版本 4、--config config-path:指定配置文件,代替默认的_config.yml 5、--cwd cwd-path:自定义当前工作目录 5、--debug:调试模式,输出所有日志信息 6、--safe:安全模式,禁用所有的插件和脚本 7、--silent:无日志输出模式
在特定目录下hexo 初始化:
- hexo init
- 安装相应的插件
- npm install
- 启动node 服务
hexo server
发表文章
- hexo new [layout]
附录: