centos7.5普通用戶登錄提示 cannot modify limit

CENTOS7.5普通用戶登錄的時候有個提示-bash: ulimit: open files: cannot modify limit: Operation not permitted
一般來說我們都是修改文件/etc/security/limits.conf,我在文件中的配置如下

  • soft nproc 65535
  • hard nproc 65535
  • soft nofile 65535
  • hard nofile 65535
    通過命令ulimit -a 查到的結果如下,與配置不符。
    open files (-n) 400000
    以爲是配置失效,多次修改無法解決,突然想起修改openfile的另外一個方法修改/etc/profile,果然看到末行有如下內容,將其註釋即可,問題解決。
    ulimit -n 400000
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章