Nginx 出現 500 Error 修復 (too many open file, connection)

Nginx 出現 500 Error, 錯誤訊息只能從 Log 查到, 有遇到下述兩種狀況:

  1. socket() failed (24: Too many open files) while connecting to upstream
  2. 512 worker_connections are not enough while connecting to upstream

在此紀錄解決方法.

閱讀全文〈Nginx 出現 500 Error 修復 (too many open file, connection)〉