安装一个 Rust 版 ServerStatus 云探针 – 生猛大蝦
小 虾
·
2026-05-13
·
via 生猛大蝦
安装一个服务器端: # for CentOS/Debian/Ubuntu x86_64 mkdir -p /o…

·
1 min read
1 min
安装一个服务器端:
# for CentOS/Debian/Ubuntu x86_64
mkdir -p /opt/ServerStatus && cd /opt/ServerStatus
# apt install -y unzip / yum install -y unzip
wget --no-check-certificate -qO one-touch.sh 'https://raw.githubusercontent.com/zdz/ServerStatus-Rust/master/one-touch.sh'
bash -ex one-touch.sh
# 部署完毕,打开 http://127.0.0.1:8080/ 或 http://<你的IP>:8080/
- 需要注意, 修改 /etc/systemd/system/stat_client.service 文件,将IP改为你服务器的IP或你的域名
相关命令:
# 启动
systemctl start stat_server
systemctl start stat_client
# 状态查看
systemctl status stat_server
systemctl status stat_client
# 使用以下命令开机自启
# systemctl enable stat_server
# systemctl enable stat_client
# 停止
# systemctl stop stat_server
# systemctl stop stat_client
一键部署客户端
# 对应配置文件 config.toml 的 hosts
# stat_client 一键安装命令
curl -sSLf "https://yourdomain/i?pass=p1&uid=h1&vnstat=1" | bash
More posts.
You may also be interested in.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。