Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

server-status

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

server-status

Server status client

  • 1.1.1
  • PyPI
  • Socket score

Maintainers
1

server-status-client

✨ 服务器状态 - 客户端 ✨

license pypi python

📖 介绍

服务器状态的客户端命令行工具

💿 安装

使用 pip 安装(确保包路径在环境变量下)

pip install server-status

Debian系请使用pipx安装

sudo apt install pipx
sudo pipx install server-status

若出现环境问题,请从 Actions 下载构建好的二进制文件

🎉 使用

命令

  • server-status <server> <token> <id> run - 运行客户端
  • server-status <server> <token> <id> rm - 从服务端移除主机
可选项
  • -n|--name - 设置主机名称
  • --labels - 设置主机标签
  • --interval - 设置上报间隔
  • --location - 设置主机地域
  • --link - 设置前端点击跳转链接
示例
server_status https://status.liteyuki.icu 114514 myhost run -n "MyHost" --labels "标签1,标签2" --interval 5 --location "Chongqing" --link "https://example.com"

📝 其他

开机启动

执行以下命令

sudo pipx ensurepath  # 确保pipx路径在环境变量下

sudo touch /etc/systemd/system/server-status-client.service

sudo bash -c 'cat <<EOF > /etc/systemd/system/server-status-client.service
[Unit]
Description=Server Status Client
After=network-online.target

[Service]
Type=simple
ExecStart=server-status <server> <token> <id> run  # 请替换为实际参数
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target
EOF'

sudo systemctl enable server-status-client
sudo systemctl start server-status-client

更新

git pull
sudo systemctl restart server-status-client
#
git pull
systemctl restart server-status-client

服务端

请在中心服务器上部署 server-status-server

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc