使用Hexo搭建博客网站(一)
前提条件
- 安装了Git
- 安装了Node.js > 12
安装Hexo
#安装
npm install hexo
#初始化
npx hexo init my-blog
cd my-blog
ls -a
项目文件夹初始化成功
使用VSCode打开
npm install
#运行,默认在4000端口
npx hexo server
#安装
npm install hexo
#初始化
npx hexo init my-blog
cd my-blog
ls -a
项目文件夹初始化成功
npm install
#运行,默认在4000端口
npx hexo server