#檢視限制結果
ulimit -a
# 修改配置
# 刪除最後一行
echo -e "# add_config" | sudo tee -a /etc/security/limits.conf
# 加上文字
echo -e "\n" | sudo tee -a /etc/security/limits.conf
echo -e "mzc \t soft \t nproc \t 204800" | sudo tee -a /etc/security/limits.conf
echo -e "mzc \t hard \t nproc \t 204800" | sudo tee -a /etc/security/limits.conf
echo -e "mzc \t soft \t nofile \t 204800" | sudo tee -a /etc/security/limits.conf
echo -e "mzc \t hard \t nofile \t 204800" | sudo tee -a /etc/security/limits.conf
echo -e "root \t soft \t nproc \t 204800" | sudo tee -a /etc/security/limits.conf
echo -e "root \t hard \t nproc \t 204800" | sudo tee -a /etc/security/limits.conf
echo -e "root \t soft \t nofile \t 204800" | sudo tee -a /etc/security/limits.conf
echo -e "root \t hard \t nofile \t 204800" | sudo tee -a /etc/security/limits.conf
echo -e "\n" | sudo tee -a /etc/security/limits.conf
echo -e "# End of file" | sudo tee -a /etc/security/limits.conf
echo -e "\n" | sudo tee -a /etc/systemd/system.conf
echo -e "# add_config" | sudo tee -a /etc/systemd/system.conf
echo -e "DefaultLimitNOFILE=204800" | sudo tee -a /etc/systemd/system.conf
echo -e "\n" | sudo tee -a /etc/systemd/user.conf
echo -e "# add_config" | sudo tee -a /etc/systemd/user.conf
echo -e "DefaultLimitNOFILE=204800" | sudo tee -a /etc/systemd/user.conf
Ubuntu 解決 Too many open files 問題
相關文章
- 解決 Too many symbol filesSymbol
- Too many open files報錯處理
- linux Too Many Files 問題檢視和解決方法Linux
- mysql備份提示 too many open files Errornumber 24MySqlError
- 從原始碼角度談談open_files_limit的生成邏輯及"Too many open files"的解決思路原始碼MIT
- nginx 報錯 accept4 () failed (24: Too many open files)NginxAI
- 31.提示錯誤fopen_means Too many open files
- docker中使用systemctl命令時報Too many open files錯誤Docker
- Too many files with unapproved license異常APP
- krpano 問題解決之 “Too many active WebGL contexts. Oldest context will be lost.”WebContext
- MySQL問題處理——1040錯誤Too many connectionsMySql
- too many open files 與程式網路連線資料檢視[轉載自北風之神巨佬的文章]
- 解決:ChatGPT too many requests in 1 hour.Try again laterChatGPTAI
- MySQL ERROR 1040: Too many connectionsMySqlError
- Java程式碼解決ElasticSearch的Result window is too large問題JavaElasticsearch
- 解決 Specified key was too long ... 767 bytes 的本質問題
- 解決 ln -s 軟連結產生的Too many levels of symbolic links錯誤Symbol
- 解決Ubuntu配置nginx出現的問題UbuntuNginx
- ubuntu下解決埠被佔用問題Ubuntu
- Many To Many could not initialize proxy – no Session的解決方法Session
- React報錯之Too many re-rendersReact
- 如何修復 SPF PermError: too many DNS lookupsErrorDNS
- nginx 修改 max open files limitsNginxMIT
- 解決Ubuntu下MySQL遠端登入問題UbuntuMySql
- ubuntu下解決埠被佔用的問題Ubuntu
- ubuntu 問題解決-----------無法獲得鎖 /var/lib/dpkg/lock - open (11: 資源暫時不可用)Ubuntu
- [Mark]解決ElasticSearch深度分頁機制中Result window is too large問題Elasticsearch
- [20230104]Oracle too many parse errors PARSE ERROR.txtOracleError
- vmware ubuntu虛擬機器問題彙總解決Ubuntu虛擬機
- 解決 Ubuntu 在啟動時凍結的問題Ubuntu
- [20200309]rlwrap: error: Cannot execute sqlplus: Too many levels of symbolic linErrorSQLSymbol
- ValueError: output parameter for reduction operation logical_and has too many dimensions ?Error
- ubuntu解決GPU視訊記憶體佔用問題UbuntuGPU記憶體
- 解決Ubuntu 18.04中文輸入法的問題Ubuntu
- 【ubuntu】解決行動硬碟掛載不上的問題Ubuntu硬碟
- 解決ajax回撥window.open瀏覽器阻止彈窗問題瀏覽器
- MySQL資料庫index column size too large. the maximum column size is 767 bytes問題解決MySql資料庫Index
- 【slam】解決VirtualBox執行ubuntu18.04.6卡頓的問題SLAMUbuntu