ulimit ubuntu 无法修改 limit 值,不允许的操作 http://www.crazyken.cn/blog/post/384.html /etc/sysctl.conf /etc/security/limits.conf /etc/pam.d/common-session /etc/profile 执行 ulimit -n 4096 最好不要写到 /etc/profile , 不安全, 用的时候设置一下就行了.