如何修改 ubuntu 桌面版的文件描述符的限制? kubuntu 14.04

2015-01-21 14:20:19 +08:00
 nxbtch

目前的 ulimit -Hn 显示的是4096
修改了 /etc/security/limits.conf 和 /etc/pam.d/common-session ,加了 session required limits.so
也无济于事,重启后还是没有变化。
服务器版ulimit -Hn 是 6万多,我想知道怎么在桌面版设置,突破这个限制?

3089 次点击
所在节点    Linux
1 条回复
whathefoxsay
2015-01-21 17:19:24 +08:00
http://askubuntu.com/questions/162229/how-do-i-increase-the-open-files-limit-for-a-non-root-user

At first I missed the wildcard on the end of /etc/pam.d/common-session* and just edited common-session, and even after a reboot it didn't work. But after adding the same line (for pam_limits.so) to common-session-noninteractive, ulimit -n displayed the new value after a fresh login (no reboot required). FWIW I was trying to change the limit for root (only). – Eric Lambart Jun 26 '14 at 18:12

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/164132

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX