RyeBlogRye

快速安装指南

2026-08-22 · 知识库

环境要求

安装步骤

  1. 上传源码包(ryeblog-x.y.z.zip)到站点根目录并解压;
  2. 浏览器访问 https://你的域名/install.php,按向导填写:站点标题、数据库主机/库名/用户/密码、管理员账号;
  3. 安装完成后会自动生成 config.php 并写入基础数据;
  4. 访问首页确认正常,然后登录后台(/admin)开始建站。

提示:安装向导检测到已安装会提示删除 install.php;请务必删除,避免被重新安装覆盖数据。

宝塔面板(Nginx)伪静态配置

面板 → 站点 → 伪静态,写入以下规则(保存后自动 reload):

location / { try_files $uri $uri/ @ryeblog; }
location @ryeblog {
    rewrite ^/sitemap.xml$ /sitemap.php last;
    rewrite ^/feed/?$ /feed.php last;
    rewrite ^/post/([^/]+)/?$ /post.php?slug=$1 last;
    rewrite ^/category/([^/]+)/?$ /category.php?c=$1 last;
    rewrite ^/tag/([^/]+)/?$ /tag.php?t=$1 last;
    rewrite ^/tags/?$ /tags.php last;
    rewrite ^/archive/?$ /archive.php last;
    rewrite ^/page/([^/]+)/?$ /page.php?p=$1 last;
    rewrite ^/search/?$ /search.php last;
    rewrite ^/([^.]+).html$ /post.php?slug=$1 last;
    rewrite (.*) /index.php last;
}

Apache 环境请使用后台「高级设置 → 伪静态」中给出的 .htaccess 规则。

安全加固

下一步

建议阅读:后台使用手册SEO 与站点设置

← teayear.com —— 170 万篇文章的百万级压测演示站 版本升级指南 →