This post was updated 869 days ago and some of the ideas may be out of date.
windows环境下首先去node.js和git官网下载并安装然后执行以下框中的命令即可
如果是linux就先执行框上面的语句再执行框中的命令
一、安装git:
yum -y install git 或者sudo yum install git-core
git --version
// 查看版本 # git version
// 输出 git version 1.8.3.1
yum install -y nodejs
yum install npm
[blockquote1 name='windows和Linux通用命令']
npm install hexo-cli -g
mkdir hei_blog
cd hei_blog
hexo init blog
npm install
hexo cl #初始化
hexo g
hexo s #相同于hexo server[/blockquote1]
然后访问即可
同时也可参考以下文章
https://www.freesion.com/article/8595231422/
http://t.zoukankan.com/treasury-p-12796453.html
https://blog.csdn.net/qq_45861317/article/details/119992366
https://buyixiao.github.io/blog/butterfly-beauty-quick-start
参与讨论