Loading... 本文转载自[免费部落](https://vpswp.com/?p=691)的文章。 简介 ====   对于手里有很多VPS或者服务器的人而言,有时为了查看状态,要挨个登陆查看,耗时耗力,而ServerStatus是一个能集中监控众多服务器的软件,这里的版本是经过逗比大佬修改的版本,支持一键安装。 项目地址 ======== Github:https://github.com/ToyoDAdoubi/ServerStatus-Toyo Github:https://github.com/tenyue/ServerStatus 脚本 ====   ServerStatus-Toyo版是一个酷炫高逼格的云探针、云监控、服务器云监控、多服务器探针~,该云监控(云探针)是ServerStatus( https://github.com/tenyue/ServerStatus )项目的优化/修改版。 目录介绍 ======== - clients 客户端文件 - server 服务端文件 - web 网站文件 --- 安装教程 ======== 执行下面的代码下载并运行脚本。 ```bash wget -N --no-check-certificate https://softs.loan/Bash/status.sh && chmod +x status.sh ``` # 如果上面这个脚本无法下载,尝试使用备用下载: ```bash wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/status.sh && chmod +x status.sh ``` 下载脚本后,根据需要安装客户端或者服务端: # 显示客户端管理菜单 ```bash bash status.sh c ``` # 显示服务端管理菜单 ```bash bash status.sh s ``` 运行脚本后会出现脚本操作菜单,选择并输入1就会开始安装。 一开始会提示你输入 网站服务器的域名和端口,如果没有域名可以直接回车代表使用 本机IP:8888 使用说明: 进入下载脚本的目录并运行脚本: # 客户端管理菜单 ```bash ./status.sh c ``` # 服务端管理菜单 ```bash ./status.sh s ``` 然后选择你要执行的选项即可。 其他操作 ======== 客户端 ------ 启动:service status-client start 停止:service status-client stop 重启:service status-client restart 查看状态:service status-client status 服务端 ------ 启动:service status-server start 停止:service status-server stop 重启:service status-server restart 查看状态:service status-server status Caddy(HTTP服务) ----------------- 启动:service caddy start 停止:service caddy stop 重启:service caddy restart 查看状态:service caddy status Caddy配置文件:/usr/local/caddy/caddy   默认脚本只能一开始安装的时候设置配置文件,更多的Caddy使用方法,可以参考这些教程:https://doub.io/search/caddy - 安装目录:/usr/local/ServerStatus - 网页文件:/usr/local/ServerStatus/web - 配置文件:/usr/local/ServerStatus/server/config.json - 客户端查看日志:tail -f tmp/serverstatus_client.log - 服务端查看日志:tail -f /tmp/serverstatus_server.log 其他说明 ======== 网络实时流量单位为:G=GB/s,M=MB/s,K=KB/s 服务器总流量单位为:T=TB,G=GB,M=MB,K=KB CentOS7系统 负载显示异常的问题 ============================== CentOS7系统 默认可能没有安装 netstat 依赖,所以会造成IP检测(负载)出错,手动安装即可: ```bash yum install net-tools -y ``` 最后修改:2020 年 11 月 29 日 05 : 04 PM © 允许规范转载 赞赏 如果觉得我的文章对你有用,请随意赞赏叭O(∩_∩)O~~ ×Close 赞赏作者 扫一扫支付 支付宝支付 微信支付
此处评论已关闭