1. 安装磁盘配额工具 sudo apt update sudo apt install quota 2. 启用文件系统的配额支持 需要编辑 /etc/fstab 文件,为需要配额的分区添加 usrquota(用户配额)和/或 grpquota(组配额)选项。 示例(假设 /home