[Nginx] 504 Gateway 해결 타임 아웃
2027 단어 서버
흔히 볼 수 있 는 대응 오류 정보
“504 Gateway Timeout”
“504 Gateway Time-Out”
“504 Gateway Timeout NGINX”
“Nginx 504 Gateway Timeout”
“HTTP 504 Gateway Timeout”
“HTTP 504 Error”
“HTTP 504”
“Gateway Timeout (504)”
Nginx + FastCGI (php-fpm)
php ,
:
php.ini
# 30s
max_execution_time = 300
:
/etc/php-fpm.d/www.conf
# 60s
request_terminate_timeout = 600
Nginx
fastcgi_read_timeout
location ~ .php$ {
root /var/www/sites/nginxtips.com;
try_files $uri =404;
fastcgi_pass unix:/tmp/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_read_timeout 300;
}
# nignx
systemctl reload nginx
Nginx Proxy Timeout
nginx.conf
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
# nignx
systemctl reload nginx
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
집 서버 설계 (하드웨어 편)자신의 Redmine이나 ownCloud를 운용하기 위해 사쿠라 VPS, DigitalOcean, OpenShift 등을 놀랐습니다만, 침착 해 왔으므로 현상을 정리하고 싶습니다. 먼저 하드웨어 구성을 정리합니다. ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.