May 21May 21 日常維護/清理系統垃圾 ----------------------- 執行系統升級 ----------------------- apt update -y && apt full-upgrade -y 完整升級過程中若出現 "覆蓋提示",建議保留原有設定 "按 N" ------------------ 清理系統垃圾 ------------------ 清除已下載的舊版套件快取 apt autoclean 移除不再需要的套件 apt autoremove --purge ------------------------------ 檢查並處理需要重啟的服務 ------------------------------ 檢查並處理需要重啟的服務 needrestart -k ------------------------------- 定期檢查日誌 ------------------------------- ls -la /var/log/unattended-upgrades/ tail -f /var/log/unattended-upgrades/unattended-upgrades.log 建議:每週至少檢查一次,確認更新無錯誤
Create an account or sign in to comment