zoukankan      html  css  js  c++  java
  • 后半部分

    [root@localhost data]# quotacheck -avug
    quotacheck: Your kernel probably supports journaled quota but you are not using it. Consider switching to journaled quota to avoid running quotacheck after an unclean shutdown.
    quotacheck: Scanning /dev/mapper/myvg-mylv [/usr/local/apache/htdocs] done
    quotacheck: Cannot stat old user quota file /usr/local/apache/htdocs/aquota.user: 没有那个文件或目录. Usage will not be subtracted.
    quotacheck: Cannot stat old group quota file /usr/local/apache/htdocs/aquota.group: 没有那个文件或目录. Usage will not be subtracted.
    quotacheck: Cannot stat old user quota file /usr/local/apache/htdocs/aquota.user: 没有那个文件或目录. Usage will not be subtracted.
    quotacheck: Cannot stat old group quota file /usr/local/apache/htdocs/aquota.group: 没有那个文件或目录. Usage will not be subtracted.
    quotacheck: Checked 2 directories and 0 files
    quotacheck: Old file not found.
    quotacheck: Old file not found.
    [root@localhost data]# mount -a
    [root@localhost data]# quotacheck -a
    [root@localhost data]# quotaon -a
    [root@localhost data]# edquota -u wang
    [root@localhost data]# quota -uvs wang
    Disk quotas for user wang (uid 1001):
         Filesystem   space   quota   limit   grace   files   quota   limit   grace
    /dev/mapper/myvg-mylv
                         0K  81920K    100M               0      80     100       

    [root@localhost data]# su - wang

    [root@localhost ~]# setfacl -m u:wang:rwx /usr/local/apache/htdocs/
    [root@localhost ~]# su - wang
    上一次登录:一 8月  5 10:50:52 CST 2019pts/1 上
    [wang@localhost ~]$ cd /usr/local/apache/htdocs/

    [wang@localhost htdocs]$ touch {1..100}.txt
    dm-2: warning, user file quota exceeded.

    [wang@localhost htdocs]$ touch 101.txt
    dm-2: write failed, user file limit reached.
    touch: 无法创建"101.txt": 超出磁盘限额

    [root@localhost ~]# cd /usr/local/apache/htdocs/

    [root@localhost htdocs]# vi index.html
    [root@localhost htdocs]# lynx 127.0.0.1

            

  • 相关阅读:
    uva 10099(最大生成树+搜索)
    Codeforces Round #218 (Div. 2) 解题报告
    CodeChef December Challenge 2013 解题报告
    Codeforces Round #217 (Div. 2) 解题报告
    uva 1423 (拓扑排序)
    UESTC 1307 windy数(数位DP)
    Codeforces Round #216 (Div. 2) 解题报告
    Codeforces Round #215 (Div. 2) 解题报告
    uva 10047(BFS)
    uva 10369(最小生成树)
  • 原文地址:https://www.cnblogs.com/wrwrwrwr/p/11301972.html
Copyright © 2011-2022 走看看