惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
小众软件
小众软件
博客园 - 叶小钗
宝玉的分享
宝玉的分享
博客园_首页
Hugging Face - Blog
Hugging Face - Blog
人人都是产品经理
人人都是产品经理
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
SegmentFault 最新的问题
B
Blog RSS Feed
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
Google DeepMind News
Google DeepMind News
U
Unit 42
F
Fortinet All Blogs
IT之家
IT之家
Y
Y Combinator Blog
Martin Fowler
Martin Fowler
T
The Blog of Author Tim Ferriss
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The GitHub Blog
The GitHub Blog
Stack Overflow Blog
Stack Overflow Blog
Blog — PlanetScale
Blog — PlanetScale
酷 壳 – CoolShell
酷 壳 – CoolShell

路人甲 – 魔帆博客

暂无文章

hexo 安装与配置 | 魔帆博客
路人甲 · 2016-08-22 · via 路人甲 – 魔帆博客

本文介绍hexo的安装配置过程,大家可以利用本教程建立博客。

安装nodejs运行环境

确保nodejs 和npm 已经被正确的安装和配置到你的系统中。例如,在ArchLinux中,可以通过执行下面的命令来自动做这些事情

# pacman -S nodejs npm

安装hexo

通过npm安装hexo到系统中

# npm install hexo -g

初始化一个hexo根目录

$ hexo init hexo-root
$ cd hexo-root
$ npm installl

安装需要的hexo插件

$ npm install hexo-deployer-git --save
$ npm install hexo-generator-feed --save
$ npm install hexo-generator-sitemap --save

其中
插件hexo-deployer-git用来部署git库
插件hexo-generator-feed用来生成网站订阅页面atom.xml
插件hexo-generator-sitemap用来生成网站sitemap

安装next主题

$ git clone https://github.com/iissnan/hexo-theme-next themes/next

进一步配置

根据hexo和next文档来配置网站和next主题