Clone
4
使用
admin edited this page 2025-07-21 21:48:44 +00:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

使用

源代码运行

运行环境要求

  • node 18+
  • git
  • systemd (可选)
  1. 拉取代码: git clone github.com/bretren/status.git
  2. 运行代码: node server.js
  3. 持久化运行:
    • sudo nano /etc/systemd/system/status.service
    •  [Unit]
       Description=Pdnode Status Server
       After=network.target
      
       [Service]
       Type=simple
       User=root
       WorkingDirectory=/root/status
       ExecStart=/usr/local/bin/node server.js
       Restart=always
       RestartSec=5
       StandardOutput=syslog
       StandardError=syslog
       Environment=NODE_ENV=production
      
       [Install]
       WantedBy=multi-user.target
      
    • sudo systemctl daemon-reload
      sudo systemctl restart status
      sudo systemctl status status
      

教程可能出错,请自行寻找原因。或者查看常见问题

apt安装(仅Linux)

敬请期待

使用已构建代码安装

注意: 有时候没有macos版本请使用其它方法

  1. 前往 https://github.com/BretRen/status/releases 下载适合你的系统的最新版
  2. 运行程序
  3. 持久化 - 请自行解决。

Docker安装

并不建议使用此方法,此方法并没有得到验证 github存储库有docker文件请自行构建。

(docker文件大概率有错误建议自建。程序并不复杂)