读书人

LINUX 中不能用下令了…

发布时间: 2012-07-24 17:47:58 作者: rapoo

LINUX 中不能用命令了…………
bash: ulimit: cannot modify limit: Operation not permitted

出现如上错误,解决方法如下:

Linux137:~ # cat >>/etc/security/limits.conf<<EOF
>
> etl soft nproc 2047
> etl hard nproc 16384
> etl soft nofile 1024
> etl hard nofile 65536
> EOF
Linux137:~ # cat >> /etc/pam.d/login <<EOF
> session required /lib/security/pam_limits.so
> EOF


成功

读书人网 >UNIXLINUX

热点推荐