Code Monkey home page Code Monkey logo

sspanel-metron's Introduction

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

sspanel-metron's People

Contributors

bobcoders9 avatar amfiyong avatar nmslooo avatar jusufus avatar xiaoyu36 avatar hanatab4 avatar qiangqiang173 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.