smartping是一款开源、高效、便捷的网络质量监控神器

官网

基于GO,需要先搭建GO环境
GO环境搭建

安装依赖

apt -y install git gcc

拉取源码

git clone https://github.com/gy-games/smartping.git

构建

cd smartping
chmod +x control
go mod init control
go mod tidy
./control build

运行程序

./control start

开机自启
nano /etc/systemd/system/smartping.service

[Unit]
Description=SmartPing
After=network-online.target
Wants=network-online.target

[Service]
Type=forking
ExecStart=/root/smartping/control start
ExecStop=/root/smartping/control stop
Restart=always
User=root

[Install]
WantedBy=multi-user.target

启动

systemctl enable smartping
systemctl start smartping

SmartPing默认WEB服务端口为8899,管理界面默认密码为:smartping,若需要修改请修改conf/config.json或conf/config-base.json

最后修改:2026 年 04 月 25 日 12 : 53 PM