Docker搭建ServerStatus
服务端
1 |
|
- mkdir -p ~/sss && cd ~/sss
- wget –no-check-certificate -qO ./serverstatus-config.json https://raw.githubusercontent.com/cppla/ServerStatus/master/server/config.json && mkdir ./serverstatus-monthtraffic
- nano docker-compose.yml
- sudo docker-compose up -d
- NPM面板反代8001端口,并设置域名解析。
客户端
1 |
|
- 编辑 serverstatus-config.json
- 重启服务端 sudo docker-compose restart
- wget –no-check-certificate -qO client-linux.py ‘https://gogs.frp.limour.top/limour/ServerStatus/raw/master/clients/client-linux.py‘
- chmod +x client-linux.py
- 测试一下:/home/pi/client-linux.py SERVER=45.79.67.132 USER=ld_rasp4 PASSWORD=DEFAULT_PASSWORD INTERVAL=10
- 创建system服务
- sudo nano /etc/systemd/system/ssc.service
- sudo systemctl enable ssc
- sudo systemctl start ssc
- sudo systemctl status ssc
1 |
|
Docker搭建ServerStatus
https://b.limour.top/1997.html