问题描述:
我修改了 /etc/security/limits.conf 里头的内容如下:
* soft nofile 1048576
* hard nofile 1048576
* soft nproc 40960
* hard nproc 40960
* soft core unlimited
* hard core unlimited
当我 ssh 登陆到 myuser 后, 执行 ulimit -n ,显示的值为 1024
还是这个shell,在 myuser 这个用户下,su - myuser ,是的,就是自己 su 到自己,此时 ulimit -n 看到的值却是 65536 为何会产生这种现象?/etc/security/limits.conf 应该是 PAM (安全认证)模块的配置文件
sshd 服务,它管理 SSH 服务。
我修改了 /etc/security/limits.conf 里头的内容如下:
* soft nofile 1048576
* hard nofile 1048576
* soft nproc 40960
* hard nproc 40960
* soft core unlimited
* hard core unlimited
当我 ssh 登陆到 myuser 后, 执行 ulimit -n ,显示的值为 1024
还是这个shell,在 myuser 这个用户下,su - myuser ,是的,就是自己 su 到自己,此时 ulimit -n 看到的值却是 65536 为何会产生这种现象?/etc/security/limits.conf 应该是 PAM (安全认证)模块的配置文件
sshd 服务,它管理 SSH 服务。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货