mirror of
https://github.com//cppla/ServerStatus
synced 2025-06-05 15:19:50 +08:00
示例
This commit is contained in:
parent
88a831d465
commit
59e8ae8632
@ -24,11 +24,17 @@
|
||||
```bash
|
||||
docker pull cppla/serverstatus
|
||||
wget https://raw.githubusercontent.com/cppla/ServerStatus/master/autodeploy/config.json
|
||||
docker run -d --restart=always --name=serverstatus -v {$path}/config.json:/ServerStatus/server/config.json -p {$port}:80 -p {$port}:35601 cppla/serverstatus
|
||||
|
||||
eg:
|
||||
docker run -d --restart=always --name=serverstatus -v ~/config.json:/ServerStatus/server/config.json -p 80:80 -p 35601:35601 cppla/serverstatus
|
||||
```
|
||||
|
||||
【客户端】:
|
||||
```bash
|
||||
wget --no-check-certificate -qO client-linux.py 'https://raw.githubusercontent.com/cppla/ServerStatus/master/clients/client-linux.py' && nohup python client-linux.py SERVER={$SERVER} USER={$USER} PASSWORD={$PASSWORD} >/dev/null 2>&1 &
|
||||
|
||||
eg:
|
||||
wget --no-check-certificate -qO client-linux.py 'https://raw.githubusercontent.com/cppla/ServerStatus/master/clients/client-linux.py' && nohup python client-linux.py SERVER=45.79.67.132 USER=s04 >/dev/null 2>&1 &
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user