Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
nxbtch
V2EX  ›  Linux

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

  •  
  •   nxbtch · Jan 21, 2015 · 3925 views
    This topic created in 4157 days ago, the information mentioned may be changed or developed.

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

    1 replies    2015-01-21 17:19:24 +08:00
    whathefoxsay
        1
    whathefoxsay  
       Jan 21, 2015
    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
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3260 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 13:30 · PVG 21:30 · LAX 06:30 · JFK 09:30
    ♥ Do have faith in what you're doing.