mirror of
https://github.com//cppla/ServerStatus
synced 2025-09-11 12:22:21 +08:00
16 lines
510 B
Plaintext
Executable File
16 lines
510 B
Plaintext
Executable File
服务端:
|
|
|
|
docker build -f Dockerfile -t serverstatus .
|
|
docker run -d --restart=always --name=sss -v {$path}/config.json:/ServerStatus/server/config.json -p {$port}:80 -p {$port}:35601 serverstatus
|
|
|
|
客户端:
|
|
|
|
wget --no-check-certificate -qO client-linux.py 'https://raw.githubusercontent.com/cppla/ServerStatus/master/clients/client-linux.py' && nohup python3 client-linux.py SERVER={$SERVER} USER={$USER} PASSWORD={$PASSWORD} >/dev/null 2>&1 &
|
|
|
|
|
|
|
|
|
|
|
|
附: docker安装
|
|
curl -sSL https://get.docker.com/ | sh
|