V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
nxbtch
V2EX  ›  Linux

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

  •  
  •   nxbtch · 2015-01-21 14:20:19 +08:00 · 2969 次点击
    这是一个创建于 3387 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    1 条回复    2015-01-21 17:19:24 +08:00
    whathefoxsay
        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
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1144 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 18:03 · PVG 02:03 · LAX 11:03 · JFK 14:03
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.