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 #删除信号量

相关文章
相关标签/搜索