Linux搭建smartping
一款开源、高效、便捷的网络质量监控程序
发布于
更新于
基于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
评论
0 条暂无已通过的评论。
这篇文章未开放评论。