#檢視限制結果
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 問題
相關文章
- 解決WebLogic中Too many open files異常Web
- 解決 Too many symbol filesSymbol
- Too many open files in system處理
- Too many open files報錯處理
- titan-hadoop “Too many open files”修正Hadoop
- linux Too Many Files 問題檢視和解決方法Linux
- mysql備份提示 too many open files Errornumber 24MySqlError
- weblogic日誌報錯too many open filesWeb
- 從原始碼角度談談open_files_limit的生成邏輯及"Too many open files"的解決思路原始碼MIT
- nginx 報錯 accept4 () failed (24: Too many open files)NginxAI
- docker中使用systemctl命令時報Too many open files錯誤Docker
- Mysql中too many connections問題的解決MySql
- 持續迴圈讀檔案,導致的too many open files如何解決
- Nginx報錯: "Too many open files accept" 和 "could not build the server_names_hash"NginxUIServer
- Too many files with unapproved license異常APP
- Linux - 修改檔案控制程式碼數(Too many open files 異常)Linux
- Weblogic BEA-002616 java.io.IOException: Too many open filesWebJavaException
- 超過最大檔案數—Linux-x86_64 Error: 23: Too many open files in systemLinuxError
- 關於mysql的Too many connections問題MySql
- krpano 問題解決之 “Too many active WebGL contexts. Oldest context will be lost.”WebContext
- 解決Mysql錯誤[1040]Too many connectionsMySql
- too many open files 與程式網路連線資料檢視[轉載自北風之神巨佬的文章]
- MySQL問題處理——1040錯誤Too many connectionsMySql
- 解決:ChatGPT too many requests in 1 hour.Try again laterChatGPTAI
- MySQL: Too many connectionsMySql
- gunzip時,提示file too large(問題已解決)
- Java程式碼解決ElasticSearch的Result window is too large問題JavaElasticsearch
- Ubuntu 16.04 Vysor 破解 和黑屏問題解決+ 閃屏問題解決Ubuntu
- 解決 Specified key was too long ... 767 bytes 的本質問題
- linux上“rman can't open target”問題解決Linux
- 解決 ln -s 軟連結產生的Too many levels of symbolic links錯誤Symbol
- 解決Ubuntu配置nginx出現的問題UbuntuNginx
- 【Ubuntu】unknown host問題解決辦法Ubuntu
- ubuntu下解決埠被佔用問題Ubuntu
- ubuntu下解決wireshark許可權問題Ubuntu
- MySQL ERROR 1040: Too many connectionsMySqlError
- 【MySQL】Too many connections 案例一則MySql
- [HP-UX] cannot fork: too many processesUX