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
成功