0%

开启慢SQL监控

由于Druid输出的慢SQL只能设定一个判定标准,而实际情况是我们需要根据不同的条件从慢SQL日志中筛选,可以通过grep、sed等命令编写脚本实现。

阅读全文 »

要美观一点的话,首页的分页数要设置得短一些,归档页的分页数要长一些。

1、安装插件

在站点根目录执行以下命令

1
2
3
# 安装相应的插件
npm install --save hexo-generator-index
npm install --save hexo-generator-archive

2、修改配置

修改站点根目录配置文件_config.xml

1
2
3
4
5
6
7
8
9
10
11
# 这一段默认就有的
index_generator:
path: ''
per_page: 5
order_by: -date

# 归档页面
archive_generator:
per_page: 50
yearly: true
monthly: true

一、安装 hexo-generator-searchdb

在站点根目录执行以下命令

1
$ npm install hexo-generator-searchdb --save
阅读全文 »