博客地址: http://astraylinux.com/

文章地址: http://astraylinux.com/2015/06/02/linux-Init-Hexo/

Step 1 Install

We need npm(Node Package Manager) to install Hexo.

1
2
3
4
5
6
7
8
9
10
11
yum install npm
mkdir hexo
cd hexo
npm install hexo --save
npm install hexo-server --save
npm install hexo-deployer-git --save
#use hexo start
hexo init
npm install #I not run this command at first, Hexo has "Can not Get/" error
hexo g #generate
hexo s #server

If hexo work well, you can through http://youhost:4000 to
open it.

Step 2 Config with github

We should create a repository name like “astraylinux.github.io” (astraylinux is mine)

Then config the _config.yml

1
2
3
4
deploy:
type: git
repo: ssh://git@github.com/astraylinux/astraylinux.github.io
branch: master

run command

1
2
hexo g
hexo d #deploy

Now http://astraylinux.github.io working.

Step 3 config themes

I found great themes:

1
2
https://github.com/litten/hexo-theme-yilia
https://github.com/iissnan/hexo-theme-next
1
git clone https://github.com/iissnan/hexo-theme-next themes/next

最新文章

  1. Oracle连接与会话
  2. 委托 lambda表达式浅显理解
  3. jQuery源码分析之=>jQuery的定义
  4. brew-cask 之本地更新 node
  5. Java Web文件上传
  6. 看看baidu是如何AJAX跨域的[转]
  7. [转载]Asp.net MVC2 与 MVC3 路由调试好帮手RouteDebug 与 RouteDebugger
  8. 教程:使用 MongoDB、WCF、OData 和 PowerBI 构建 Azure 上的商业智能解决方案
  9. css3投影讲解、投影
  10. w3c教程
  11. ExpandableListView(二)替换箭头图标被拉伸的问题
  12. 页面布局之BFC 微微有点坑
  13. tampermonkey,采用js解析自定义脚本,实现网页列表数据采集分析
  14. inline-block的特点
  15. OKMX6Q ffmpeg & ffserver
  16. ajax核心技术1---XMLHttpRequset对象的使用
  17. 借助 LVS + Keepalived 实现负载均衡
  18. linux程序的常用保护机制
  19. Java 与 JavaScript 对websocket的使用
  20. 转: 用 Eclipse 平台进行 C/C++ 开发

热门文章

  1. 安装lnmp前请先运行screen
  2. HDU-5009 Paint Pearls 动态规划 双向链表
  3. BZOJ3796 Mushroom追妹纸(二分答案+后缀数组+KMP)
  4. BZOJ 2154/2693 Crash的数字表格/jzptab (莫比乌斯反演)
  5. 搭建rsync实时同步
  6. 紫书 例题8-4 UVa 11134(问题分解 + 贪心)
  7. 【转】C# 正则表达式大全
  8. 通过HttpURLConnection 上传和下载文件(二)
  9. 洛谷 P3662 [USACO17FEB]Why Did the Cow Cross the Road II S
  10. 洛谷 P1572 计算分数