{"id":13614392,"url":"https://github.com/BobCoderS9/SSPanel-Metron","last_synced_at":"2025-04-13T18:33:07.597Z","repository":{"id":39639681,"uuid":"379792712","full_name":"BobCoderS9/SSPanel-Metron","owner":"BobCoderS9","description":"SSPanel-Metron主题，目前由@Bobs9维护开发中。","archived":false,"fork":false,"pushed_at":"2024-09-24T15:47:19.000Z","size":14407,"stargazers_count":418,"open_issues_count":16,"forks_count":243,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-11-07T22:42:29.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BobCoderS9.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-24T03:29:35.000Z","updated_at":"2024-11-04T21:43:34.000Z","dependencies_parsed_at":"2024-03-08T18:31:44.736Z","dependency_job_id":"45cd8b67-6e26-4f35-bcb5-c895b392ed29","html_url":"https://github.com/BobCoderS9/SSPanel-Metron","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BobCoderS9%2FSSPanel-Metron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BobCoderS9%2FSSPanel-Metron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BobCoderS9%2FSSPanel-Metron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BobCoderS9%2FSSPanel-Metron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BobCoderS9","download_url":"https://codeload.github.com/BobCoderS9/SSPanel-Metron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248760662,"owners_count":21157406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T20:01:00.972Z","updated_at":"2025-04-13T18:33:03.480Z","avatar_url":"https://github.com/BobCoderS9.png","language":"CSS","funding_links":[],"categories":["CSS"],"sub_categories":[],"readme":"## SSPanel-Metron主题，目前由@BobS9维护开发中。\n\n交流群：[https://t.me/BobShareGroup](https://t.me/BobShareGroup)\n\n#### 1.连接 SSH 安装宝塔面板\n\n#### 2.宝塔面板安装环境, 推荐使用 PHP 7.4、MySQL 5.7、Nginx 1.2+\n\n#### 3.宝塔面板创建网站, 域名等信息自行填写\n\n#### 4.连接 SSH 下载源码\n\n`cd /www/wwwroot/你的网站文件夹名`\n\n#### 5.使用composer安装依赖\n\n\n```shell\nwget https://getcomposer.org/installer -O composer.phar \u0026\u0026 php composer.phar \u0026\u0026 php composer.phar install\n```\n\n\n#### 6.复制配置文件\n\n```shell\n\ncp config/.config.example.php config/.config.php\n\ncp config/.metron_setting.example.php config/.metron_setting.php\n\ncp config/appprofile.example.php config/appprofile.php\n```\n\n.config.php设置后执行`php xcat Tool initQQWry` 下载IP解析库\n\n#### 8.网站设置\n\n打开 宝塔面版 \u003e 网站 \u003e 你的网站\n\n\n    在 网站目录 里取消勾选 防跨站攻击，运行目录里面选择 /public，点击保存。\n\n在 伪静态 中填入下面内容，然后保存\n\n\n```shell\nlocation / {\ntry_files $uri /index.php$is_args$args;\n}\n```\n\n#### 9.在SSH里的网站目录下执行，给网站文件755权限\n\n```shell\ncd ../\nchmod -R 755 你的文件夹名/\nchown -R www:www 你的文件夹名/\n```\n\n#### 10.数据库操作\n\n首次迁移: 导入网站目录下的`sql/glzjin_all.sql` 文件\n\n将数据库user表里的全部用户的theme列改为metron，使用phpmyadmin执行这条sql语句:\n```sql\nUPDATE user SET theme='metron'\n```\n\n### 使用宝塔面板的计划任务配置\n```\n每日任务 (必须)\n任务类型：Shell 脚本\n任务名称：自行填写\n执行周期：每天 0 小时 0 分钟\n脚本内容：php /www/wwwroot/你的网站目录/xcat Job DailyJob\n\n检测任务 (必须)\n任务类型：Shell 脚本\n任务名称：自行填写\n执行周期：N分钟 1 分钟\n脚本内容：php /www/wwwroot/你的网站目录/xcat Job CheckJob\n\n用户账户相关任务 (必须)\n任务类型：Shell 脚本\n任务名称：自行填写\n执行周期：每小时\n脚本内容：php /www/wwwroot/你的网站目录/xcat Job UserJob\n\n检查用户会员等级过期任务 (必须)\n任务类型：Shell 脚本\n任务名称：自行填写\n执行周期：每分钟\n脚本内容：php /www/wwwroot/你的网站目录/xcat Job CheckUserClassExpire\n\n检查账号过期任务 (必须)\n任务类型：Shell 脚本\n任务名称：自行填写\n执行周期：每小时\n脚本内容：php /www/wwwroot/你的网站目录/xcat Job CheckUserExpire\n\n定时检测邮件队列 (必须)\n任务类型：Shell 脚本\n任务名称：自行填写\n执行周期：N分钟 1 分钟\n脚本内容：php /www/wwwroot/你的网站目录/xcat Job SendMail\n\n每日流量报告 (给开启每日邮件的用户发送邮件)\n任务类型：Shell 脚本\n任务名称：自行填写\n执行周期：每天 0 小时 0 分钟\n脚本内容：php /www/wwwroot/你的网站目录/xcat SendDiaryMail\n\n审计封禁 (建议设置)\n任务类型：Shell 脚本\n任务名称：自行填写\n执行周期：N分钟 1 分钟\n脚本内容：php /www/wwwroot/你的网站目录/xcat DetectBan\n\n检测节点被墙 (可选)\n任务类型：Shell 脚本\n任务名称：自行填写\n执行周期：N分钟 1 分钟\n脚本内容：php /www/wwwroot/你的网站目录/xcat DetectGFW\n\n检测中转服务器 (可选)\n任务类型：Shell 脚本\n任务名称：自行填写\n执行周期：N分钟 5 分钟\n脚本内容：php /www/wwwroot/你的网站目录/xcat DetectTransfer\n\nRadius (可选)\nsynclogin\n任务类型：Shell 脚本\n任务名称：自行填写\n执行周期：N分钟 1 分钟\n脚本内容：php /www/wwwroot/你的网站目录/xcat SyncRadius synclogin\n\nsyncvpn\n任务类型：Shell 脚本\n任务名称：自行填写\n执行周期：N分钟 1 分钟\n脚本内容：php /www/wwwroot/你的网站目录/xcat SyncRadius syncvpn\n\nsyncnas\n任务类型：Shell 脚本\n任务名称：自行填写\n执行周期：N分钟 1 分钟\n脚本内容：php /www/wwwroot/你的网站目录/xcat SyncRadius syncnas\n自动备份 (可选)\n\n整体备份\n任务类型：Shell 脚本\n任务名称：自行填写\n执行周期：自己设置, 可以设置每30分钟左右\n脚本内容：php /www/wwwroot/你的网站目录/xcat Backup full\n\n只备份核心数据\n任务类型：Shell 脚本\n任务名称：自行填写\n执行周期：自己设置, 可以设置每30分钟左右\n脚本内容：php /www/wwwroot/你的网站目录/xcat Backup simple\n财务报表 (可选)\n\n日报\n任务类型：Shell 脚本\n任务名称：自行填写\n执行周期：每天 0 小时 0 分钟\n脚本内容：php /www/wwwroot/你的网站目录/xcat FinanceMail day\n\n周报\n任务类型：Shell 脚本\n任务名称：自行填写\n执行周期：每星期 周日 0 小时 0 分钟\n脚本内容：php /www/wwwroot/你的网站目录/xcat FinanceMail week\n\n月报\n任务类型：Shell 脚本\n任务名称：自行填写\n执行周期：每月 1 日 0 小时 0 分钟\n脚本内容：php /www/wwwroot/你的网站目录/xcat FinanceMail month\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBobCoderS9%2FSSPanel-Metron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBobCoderS9%2FSSPanel-Metron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBobCoderS9%2FSSPanel-Metron/lists"}