无题
安装 node.js 其中包含 npm包管理器
curl -fsSL https://deb.nodesource.com/setup_current.x | bash - apt-get install -y nodejs
安装cnpm,指定镜像源为taobao:npm install -g cnpm --registry=https://registry.npm.taobao.org
安装hexo: cnpm install -g hexo-cli
在home下面建立一个blog文件夹
在blog文件夹中初始化博客 sudo hexo init
清理一下 hexo clean
创建一篇文章 hexo n ‘文章名字’
生成博客静态文件到默认设置的public文件夹 hexo g
启动hexo,本地预览:hexo s
安装 cnpm install --save hexo-deployer-git
设置_config.yml文件,打开之后 ,拉到最地下将123type: git repo: http://github.com/blaoke/blaoke.github.io.gi ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment