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

            

  • 相关阅读:
    5.2-5.3
    5.1封装
    阅读《构建之法》 5-7章
    做汉堡
    阅读《构建之法》1-5章
    结对 四则运算
    回答
    读后感
    提问*2
    提问1
  • 原文地址:https://www.cnblogs.com/wrwrwrwr/p/11301972.html
Copyright © 2011-2022 走看看