Skip to content

VPS Linux 巡检 ​

登录 Linux 主机后运行。

查看磁盘占用 ​

查看各已挂载文件系统的总容量、已用空间和可用空间。

bash
df -h

查看内存和负载 ​

bash
free -h
uptime

查看失败的服务 ​

在使用 systemd 的系统上,列出当前处于失败状态的服务。

bash
systemctl --failed --type=service