linux 修改讀取最大文件數

查看linux讀取文件數量用 ulimit -n 查看
如果是root 權限 可以用 ulimit -n size 來修改linux讀取額外年間數量
但是非root權限會報 limit command not found 的異常

非root權限的處理方法


If you want to set it permanently, especially for a particular user, change the file /etc/security/limits.conf to have the following lines (assume user = www-data)
E.g.
www-data hard nofile 65535
www-data soft nofile 65535

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章