个人博客搭建

本文主要介绍基于Hexo+NexT的个人博客搭建。

客户端(Windows)

安装Hexo+NexT

(1) 安装Node.js、Git

1
2
3
4
5
# 安装步骤忽略

# 配置淘宝镜像源
npm config set registry https://registry.npmmirror.com/
npm get registry

(2) 安装Hexo

1
2
npm install -g hexo-cli
hexo -v

(3) 建站

1
hexo init Hexo

(4) 安装NexT

1
2
3
4
# 安装后,将_config.yml中theme的属性值修改为next
cd Hexo
git clone https://github.com/next-theme/hexo-theme-next themes/next
cp themes/next/_config.yml _config.next.yml

(5) 启动服务

1
2
# 启动后,访问http://localhost:4000/
hexo server

服务端(Linux)

待完善