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 (可选)
拉取代码: git clone github.com/bretren/status.git
运行代码: node server.js
持久化运行:
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