Centos簡單問題解決彙總

1: umount出現device is busyapache

    fuser -m /dev/sda1 #查看佔用分區的進程號,fuser的-m選項說明:-m        show all processes using the named filesystemsspa

2: rm *出現Argument list too long日誌

    cd /var/spool/clientmqueue進程

    for I in `ls`;doip

      rm -f $Iit

    donecli

3:  rm xx.log後還佔用磁盤的問題file

    lsof |grep 'delete'  #lsof說明lsof - list open filesgrep

4: 日誌出現Too many open filesqueue

    設置ulimit:

        ulimit -SHn 65535

        /etc/security/limits.conf加入

        * soft nofile 65535

        * hard nofile 65535

    刪除一些信號量(曾經解決apache的問題):

        ipcs -s | egrep 'deamon|nobody' #查看信號量

        ipcrm -s 131075 #刪除信號量

相關文章
相關標籤/搜索