type
status
date
slug
summary
tags
category
icon
password
最近,在阿里云淘了一台2核2G1Mbps的云服务器,有效期一年,就想着折腾一下,先在服务器上建立一个自己的博客,仅对自己开放(国内服务器,懒得备案了)。然后我wordpress和typecho都试了一下,发现都要自己重头开始配置,嫌麻烦,太费时间了,索性就用hexo静态博客了。
直接在服务器上搭建
- 前提。
- 创建仓库。
- 配置git-hooks
在
post-receive文件中添加下述内容。上述代码意思是把提交到
git仓库的文件同步到博客目录中,我的博客目录为:/www/wwwroot/myblog。为其添加权限并改变博客文件所有者:
- 创建博客目录。
- 配置本地站点文件。
打开
_config.yml文件。over,尽情地
hexo && clean && hexo g && hexo d吧。- Author:jianerssr
- URL:https://www.heyjian.cn/hobby/290e3192-c665-8088-94bd-f6cd5856dda4
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!











