Skip to content

SSPanel-Metron主题,目前由@BobS9维护开发中。

License

Notifications You must be signed in to change notification settings

tulinstyle/SSPanel-Metron

This branch is 19 commits behind BobCoderS9/SSPanel-Metron:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a0127a0 · Sep 18, 2023
Sep 9, 2023
Nov 30, 2022
Oct 11, 2021
Sep 9, 2023
Jun 18, 2022
Sep 18, 2023
Jun 24, 2021
Dec 5, 2021
Jun 24, 2021
Jun 24, 2021
Jun 24, 2021
Jun 25, 2021
Jun 24, 2021
Jun 24, 2021
Jun 24, 2021
Jun 24, 2021
Jun 14, 2022
Jun 24, 2021
Jun 24, 2021

Repository files navigation

SSPanel-Metron主题,目前由@BobS9维护开发中。

交流群:https://t.me/BobShareGroup

1.连接 SSH 安装宝塔面板

2.宝塔面板安装环境, 推荐使用 PHP 7.2、MySQL 5.6、Nginx 1.16

3.宝塔面板创建网站, 域名等信息自行填写

4.连接 SSH 下载源码

cd /www/wwwroot/你的网站文件夹名

5.使用composer安装依赖

wget https://getcomposer.org/installer -O composer.phar && php composer.phar && php composer.phar install

6.复制配置文件

cp config/.config.example.php config/.config.php

cp config/.metron_setting.example.php config/.metron_setting.php

cp config/appprofile.example.php config/appprofile.php

.config.php设置后执行php xcat Tool initQQWry 下载IP解析库

8.网站设置

打开 宝塔面版 > 网站 > 你的网站

在 网站目录 里取消勾选 防跨站攻击,运行目录里面选择 /public,点击保存。

在 伪静态 中填入下面内容,然后保存

location / {
try_files $uri /index.php$is_args$args;
}

9.在SSH里的网站目录下执行,给网站文件755权限

cd ../
chmod -R 755 你的文件夹名/
chown -R www:www 你的文件夹名/

10.数据库操作

首次迁移: 导入网站目录下的sql/glzjin_all.sql 文件

将数据库user表里的全部用户的theme列改为metron,使用phpmyadmin执行这条sql语句:

UPDATE user SET theme='metron'

使用宝塔面板的计划任务配置

每日任务 (必须)
任务类型:Shell 脚本
任务名称:自行填写
执行周期:每天 0 小时 0 分钟
脚本内容:php /www/wwwroot/你的网站目录/xcat Job DailyJob

检测任务 (必须)
任务类型:Shell 脚本
任务名称:自行填写
执行周期:N分钟 1 分钟
脚本内容:php /www/wwwroot/你的网站目录/xcat Job CheckJob

用户账户相关任务 (必须)
任务类型:Shell 脚本
任务名称:自行填写
执行周期:每小时
脚本内容:php /www/wwwroot/你的网站目录/xcat Job UserJob

检查用户会员等级过期任务 (必须)
任务类型:Shell 脚本
任务名称:自行填写
执行周期:每分钟
脚本内容:php /www/wwwroot/你的网站目录/xcat Job CheckUserClassExpire

检查账号过期任务 (必须)
任务类型:Shell 脚本
任务名称:自行填写
执行周期:每小时
脚本内容:php /www/wwwroot/你的网站目录/xcat Job CheckUserExpire

定时检测邮件队列 (必须)
任务类型:Shell 脚本
任务名称:自行填写
执行周期:N分钟 1 分钟
脚本内容:php /www/wwwroot/你的网站目录/xcat Job SendMail

每日流量报告 (给开启每日邮件的用户发送邮件)
任务类型:Shell 脚本
任务名称:自行填写
执行周期:每天 0 小时 0 分钟
脚本内容:php /www/wwwroot/你的网站目录/xcat SendDiaryMail

审计封禁 (建议设置)
任务类型:Shell 脚本
任务名称:自行填写
执行周期:N分钟 1 分钟
脚本内容:php /www/wwwroot/你的网站目录/xcat DetectBan

检测节点被墙 (可选)
任务类型:Shell 脚本
任务名称:自行填写
执行周期:N分钟 1 分钟
脚本内容:php /www/wwwroot/你的网站目录/xcat DetectGFW

检测中转服务器 (可选)
任务类型:Shell 脚本
任务名称:自行填写
执行周期:N分钟 5 分钟
脚本内容:php /www/wwwroot/你的网站目录/xcat DetectTransfer

Radius (可选)
synclogin
任务类型:Shell 脚本
任务名称:自行填写
执行周期:N分钟 1 分钟
脚本内容:php /www/wwwroot/你的网站目录/xcat SyncRadius synclogin

syncvpn
任务类型:Shell 脚本
任务名称:自行填写
执行周期:N分钟 1 分钟
脚本内容:php /www/wwwroot/你的网站目录/xcat SyncRadius syncvpn

syncnas
任务类型:Shell 脚本
任务名称:自行填写
执行周期:N分钟 1 分钟
脚本内容:php /www/wwwroot/你的网站目录/xcat SyncRadius syncnas
自动备份 (可选)

整体备份
任务类型:Shell 脚本
任务名称:自行填写
执行周期:自己设置, 可以设置每30分钟左右
脚本内容:php /www/wwwroot/你的网站目录/xcat Backup full

只备份核心数据
任务类型:Shell 脚本
任务名称:自行填写
执行周期:自己设置, 可以设置每30分钟左右
脚本内容:php /www/wwwroot/你的网站目录/xcat Backup simple
财务报表 (可选)

日报
任务类型:Shell 脚本
任务名称:自行填写
执行周期:每天 0 小时 0 分钟
脚本内容:php /www/wwwroot/你的网站目录/xcat FinanceMail day

周报
任务类型:Shell 脚本
任务名称:自行填写
执行周期:每星期 周日 0 小时 0 分钟
脚本内容:php /www/wwwroot/你的网站目录/xcat FinanceMail week

月报
任务类型:Shell 脚本
任务名称:自行填写
执行周期:每月 1 日 0 小时 0 分钟
脚本内容:php /www/wwwroot/你的网站目录/xcat FinanceMail month

About

SSPanel-Metron主题,目前由@BobS9维护开发中。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 42.8%
  • Smarty 24.4%
  • PHP 18.0%
  • JavaScript 14.8%
  • HTML 0.0%
  • Dockerfile 0.0%