Files
status/README.md
2025-07-20 16:20:31 -07:00

62 lines
1.6 KiB
Markdown
Raw Blame History

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.

# Pdnode Status Panel
由Pdnode团队开发的状态面板。
**注意此状态面板并不成熟很可能有bug以及安全风险。请谨慎使用**
目前功能:
- 显示内存占用
- 显示CPU以及每个核的CPU占用
- 显示系统负载平均(**目前此功能只对linux/macos有效**
## 使用
### 源代码运行
**运行环境要求**
- 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
```
- ```bash
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文件大概率有错误建议自建。程序并不复杂