这台 VPS 是 dufresne 的个人数字基地,跑了主站、代码托管、文档、自动化、IoT、监控、代理和多个轻量平台。维护时默认按“多服务综合节点”处理,不要当成单一项目机器。
uptime
free -h
df -h
systemctl --failed --no-pager
ss -ltnp
sudo journalctl -p warning -n 80 --no-pager
systemctl status nginx --no-pager
systemctl status postgresql --no-pager
systemctl status redis-server --no-pager
systemctl status openclaw-gateway --no-pager
systemctl status wikijs --no-pager
systemctl status grafana-server --no-pager
systemctl status iot-platform-api --no-pager
systemctl status iot-platform-consumer --no-pager
systemctl status mosquitto --no-pager
systemctl status xray --no-pager
systemctl status nginxsudo nginx -tss -ltnpsudo certbot certificates通常是后端服务挂了或本地端口变了:
sudo nginx -t
sudo journalctl -u nginx -n 100 --no-pager
systemctl status <service> --no-pager
sudo journalctl -u <service> -n 100 --no-pager
free -h
ps aux --sort=-%mem | head -20
systemctl list-units --type=service --state=running --no-pager
处理建议:先定位异常服务,不要直接杀数据库、Vaultwarden、Gitea、OpenClaw Gateway。
主站真实线上目录:
/home/linuxuser/www/html2
主站仓库工作区:
/home/linuxuser/repos/dufresnenana-site
部署脚本:
sudo /usr/local/bin/deploy-dufresnenana-site
/opt/wikijs + PostgreSQL wiki/opt/trilium/trilium-data/document.db/opt/iot-platform + PostgreSQL iot_platform/home/linuxuser/repos/dufresnenana-site + /home/linuxuser/www/html2/usr/local/etc/xray/config.json每次完成重要修复后,至少记录: