(一)Qpress 适合场景
1)独立的 Linux (云)主机
2)使用 Nginx 做 Web 服务器
3)不想使用任何后端程序(PHP、Java、Python等)
4)不想使用任何数据库(MySQL、SQLite等)
5)不在服务器端生成任何临时文件(Cache缓存等)
那么,Qpress 比较适合您。
无后端、无数据库、无需生成,Nginx 自己就够了。
Qpress 已于 22-08-03 停止维护! 新版请移步至:http://canoe.cc
(二)Nginx 支持检测
① 版本 1.12.2 | 1.14.2 | 1.16.1 | 1.18.0 | 1.20.1
② --with-compat
③ --with-http_addition_module
nginx -v 2>&1 | awk -F ' |/' '{print $4}' | grep -E '1.12.2|1.14.2|1.16.1|1.18.0|1.20.1' && echo '* 版本符合' || echo '- 版本不符合' && nginx -V 2>&1 | grep -o with-compat && echo '* compat 支持' || echo '- compat 不支持' && nginx -V 2>&1 | grep -o with-http_addition_module && echo '* addition 模块已安装' || echo '- addition 模块未安装'
返回结果含有三颗 * 即满足安装条件!
(三)Nginx 安装参考
1)yum安装
2)编译安装
① 版本 1.12.2 | 1.14.2 | 1.16.1 | 1.18.0 | 1.20.1
② --with-compat
③ --with-http_addition_module
# 官网源码下载
(四)Qpress 安装
1)RPM 安装(推荐)
rpm -Uvh http://qpress.walle.org.erhe.cn/down/rpm/walle-qpress-2.20.1-1.el7.noarch.rpm
2)YUM 安装(可选)
yum -y install http://qpress.walle.org.erhe.cn/down/rpm/walle-qpress-2.20.1-1.el7.noarch.rpm
# 详细操作参考
(五)Nginx 配置
1)主配置:
-- 在 events { 上面加入 --
load_module /walle/qkit/qpress/so/ngx_http_qpress_module-1.20.1.so;
将 1.20.1 替换成您的 nginx 版本号即可!
2)站点配置:
-- 在 server { 内添加站点目录 --
root 你的站点目录路径;
-- 在 server { 内注释或删除默认路由 --
#location / {
# root html;
# index index.html index.htm;
#}
-- 在 server { 内加入 --
charset utf-8;
set $switchArchive on;
set $switchTag on;
set $switchSearch on;
include /walle/qkit/qpress/conf/qpress-server.conf; #Qp.2
# 详细操作参考
(六)初始化配置
-- 初始化(站点根目录内执行)--
cp -r /walle/qkit/qpress/theme/one/.theme/ .
# 详细操作参考
(七)Qpress 辅助工具
1)辅助编写
2)辅助上传
(八)高性能版本
开发中 ..
通过 FastCgi + ELF 实现搜索和归档功能
技术支持 | Support
瓦力社区 walle.org