{"id":13775967,"url":"https://github.com/toyodadoubi/ssrstatus","last_synced_at":"2025-05-11T08:34:36.499Z","repository":{"id":216003303,"uuid":"158812702","full_name":"ToyoDAdoubi/SSRStatus","owner":"ToyoDAdoubi","description":"Shadowsocks/ShadowsocksR 账号在线监控","archived":false,"fork":false,"pushed_at":"2018-11-25T04:59:38.000Z","size":99,"stargazers_count":99,"open_issues_count":2,"forks_count":121,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-08-03T17:12:22.715Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ToyoDAdoubi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2018-11-23T09:48:20.000Z","updated_at":"2024-06-17T13:18:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"4f39da54-2d61-426e-a7f9-31a2cb429cad","html_url":"https://github.com/ToyoDAdoubi/SSRStatus","commit_stats":null,"previous_names":["toyodadoubi/ssrstatus"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToyoDAdoubi%2FSSRStatus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToyoDAdoubi%2FSSRStatus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToyoDAdoubi%2FSSRStatus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ToyoDAdoubi%2FSSRStatus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ToyoDAdoubi","download_url":"https://codeload.github.com/ToyoDAdoubi/SSRStatus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225031409,"owners_count":17410068,"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-03T17:01:56.060Z","updated_at":"2024-11-17T11:30:44.773Z","avatar_url":"https://github.com/ToyoDAdoubi.png","language":"JavaScript","funding_links":[],"categories":["\u003ca id=\"d03d494700077f6a65092985c06bf8e8\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"cb16466a31a167bb61f39e2a4a85f449\"\u003e\u003c/a\u003eShadowsocks"],"readme":"# SSRStatus\n\n![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg)\n\n* SSRStatus是一个可以在线监控Shadowsocks/ShadowsocksR账号的云探针、云监控探针~，该云监控的网页文件基于ServerStatus（ https://github.com/ToyoDAdoubi/ServerStatus-Toyo/ ）项目。\n* 在线演示：https://sstz.toyoo.ml/\n* 我的博客：https://doub.io/shell-jc5/\n\n# 更新说明：\n\n* 20170520: 修改网页文件窄屏/移动设备的显示效果，修改JS刷新时间\n* 20170519: 发布正式版本\n\n# 安装教程：     \n\n执行下面的代码下载并运行脚本。\n```Bash\nwget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/ssrstatus.sh \u0026\u0026 chmod +x ssrstatus.sh \u0026\u0026 bash ssrstatus.sh\n\n# 如果上面这个脚本无法下载，尝试使用备用下载：\nwget -N --no-check-certificate https://softsmirror.cf/Bash/ssrstatus.sh \u0026\u0026 chmod +x ssrstatus.sh \u0026\u0026 bash ssrstatus.sh\n```\n下载并运行脚本后会出现脚本操作菜单，选择并输入` 1 `就会开始安装。\n\n一开始会提示你输入 网站服务器的域名和端口，如果没有域名可以直接回车代表使用` 本机IP:8888 `。\n\n## 简单步骤：\n\n首先安装服务端，安装过程中会提示：\n\n``` bash\n是否由脚本自动配置HTTP服务(服务端的在线监控网站)[Y/n]\n\n# 如果你不懂，那就直接回车，如果你想用其他的HTTP服务自己配置，那么请输入 n 并回车。\n# 注意，当你曾经安装过 服务端，同时没有卸载Caddy(HTTP服务)，那么重新安装服务端的时候，请输入 n 并回车。\n```\n\n然后会提示你输入网站服务器的域名和端口，如果没有域名可以直接回车代表使用` 本机IP:8888 `。\n\n然后部署完 HTTP服务，就会让你设置 检测间隔时间。\n\n``` bash\n请选择你要设置的ShadowsocksR账号检测时间间隔（如账号很多，请不要设置时间间隔过小）\n1. 5分钟\n2. 10分钟\n3. 20分钟\n4. 30分钟\n5. 40分钟\n6. 50分钟\n7. 1小时\n8. 2小时\n9. 自定义输入\n\n(默认: 2. 10分钟):\n```\n我们还需要设置一下ShadowsocksR子目录变量，打开脚本文件\n\n``` bash\nvi ssrstatus.sh\n# 按 I键 进入编辑模式，然后修改后按 ESC键 退出编辑模式，并输入 :wq 保存并退出\n```\n然后我们找到 第16行 的 `SSR_folder=\"/root/shadowsocksr/shadowsocks\"` 参数，修改引号内的ShadowsocksR目录名，必须设置为 ShadowsocksR子目录的绝对路径，并且最后一位不能加上 `\"/\"`。\n\n注意：如果你用的是我的ShadowsocksR一键脚本，那么位置即是：`/usr/local/shadowsocksr/shadowsocks`\n\n最后 添加账号配置即可。\n\n# 使用说明：\n\n进入下载脚本的目录并运行脚本：\n\n``` bash\n# 管理菜单\n./ssrstatus.sh\n\n# 检测所有账号配置（快捷参数）\n./ssrstatus.sh t\n\n# 检测单独账号配置（快捷参数）\n./ssrstatus.sh o\n\n# 检测自定义账号配置（快捷参数）\n./ssrstatus.sh a\n\n# 查看日志输出（快捷参数）\n./ssrstatus.sh log\n```\n\n然后选择你要执行的选项即可。\n\n``` bash\nSSRStatus 一键安装管理脚本 [vx.x.x]\n-- Toyo | doub.io/shell-jc4 --\n\n0. 升级脚本\n————————————\n1. 安装 依赖及Web网页\n2. 卸载 依赖及Web网页\n————————————\n3. 测试 所有账号\n4. 测试 单独账号\n5. 测试 自定义账号\n————————————\n6. 设置 配置信息\n7. 查看 配置信息\n8. 查看 运行日志\n9. 设置 定时间隔\n————————————\n\n当前状态: Web网页 已安装\n\n请输入数字 [0-9]:\n```\n## 其他操作\n\n### Caddy（HTTP服务）：\n\n* 启动：service caddy start\n* 停止：service caddy stop\n* 重启：service caddy restart\n* 查看状态：service caddy status\n* Caddy配置文件：/usr/local/caddy/Caddyfile\n\n默认脚本只能一开始安装的时候设置配置文件，更多的Caddy使用方法，可以参考这些教程：https://doub.io/search/caddy\n\n——————————————————————————————————————\n\n* 网页文件：/usr/local/SSRStatus\n* 配置文件：ssr_status.conf（和脚本在同一个目录中）\n* 查看日志：cat ssr_status.log（和脚本在同一个目录中）\n\n# 其他说明\n\n## 修改网页标题或公告\n\n如果要修改网页标题或者网页顶部公告内容，打开 `/usr/local/SSRStatus/web/index.html` 文件修改即可，很显眼。\n\n## 批量添加账号配置\n\n如果要批量添加账号配置，那么用脚本反而速度慢，可以按一下格式写入配置文件：\n\n``` bash\nss/ssr链接###名称###位置###禁用状态\n\n# 示例：\nssr://xxxxxxxx###DOUBI###Japen###fales\n\n# fales代表禁用状态否，即启用，true 反之。\n```\n\n然后可以这样快速写入配置文件：\n\n``` bash\necho -e \"ssr://xxxxxxxx###DOUBI1###Japen###fales\nssr://yyyyyyyy###DOUBI2###Hong Kong###true\nssr://zzzzzzzz###DOUBI3###洛杉矶(支持中文，只要你系统支持显示和输入)###fales\" \u003e\u003e ssr_status.conf\n```\n\n# 相关开源项目： \n\n* ServerStatus：https://github.com/ToyoDAdoubi/ServerStatus-Toyo/\n* ssr_check.sh: https://github.com/ToyoDAdoubi/doubi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoyodadoubi%2Fssrstatus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftoyodadoubi%2Fssrstatus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftoyodadoubi%2Fssrstatus/lists"}