Nginx 502 Bad Gateway´íÎó¼°½â¾ö·½°¸ÊÕ¼¯
1.FastCGI worker½ø³ÌÊýÊÇ·ñ²»¹»
ͨ¹ýÃüÁî²é¿´·þÎñÆ÷ÉÏÒ»¹²¿ªÁ˶àÉÙµÄ php-cgi ½ø³Ì
ps -fe |grep "php" | grep -v "grep" | wc -l
ʹÓÃÈçÏÂÃüÁî²é¿´ÒѾÓжàÉÙ¸öphp-cgi½ø³ÌÓÃÀ´´¦ÀítcpÇëÇó
netstat -anop | grep "php" | grep -v "grep" | wc -l
½Ó½üÅäÖÃÎļþÖÐÉèÖõÄÊýÖµ£¬±íÃ÷worker½ø³ÌÊýÉèÖÃÌ«ÉÙ
2.FastCGIÖ´ÐÐʱ¼ä¹ý³¤
¸ù¾Ýʵ¼ÊÇé¿öµ÷¸ßÒÔϲÎÊýÖµ
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
3.FastCGI Buffer²»¹»
nginxºÍapacheÒ»Ñù£¬ÓÐÇ°¶Ë»º³åÏÞÖÆ£¬¿ÉÒÔµ÷Õû»º³å²ÎÊý
fastcgi_buffer_size 32k;
fastcgi_buffers 8 32k;
Õâ¸öÒ»°ãÄãÄÜÔÚÈÕÖ¾Öп´µ½£ºupstream sent too big header while reading response header from upstream
Òâ˼¾ÍÊÇ·´À¡»ØÀ´µÄÍ·²¿ÐÅϢ̫´ó£¬ºÃ¶àÊÇFirefoxä¯ÀÀʱ²Å³öÏÖ£¬ÊÇËüµÄ²å¼þÒýÆðµÄ¡£
4.Proxy Buffer²»¹»
Èç¹ûÄãÓÃÁËProxying£¬ÊÔÊÔµ÷Õû
proxy_buffer_size 16k;
proxy_buffers 4 16k;
5.php-fpmµÄÈÕÖ¾Îļþ³¬¹ý2G
ÔÚ32λ»úÆ÷ÉÏ ³¬¹ý2GµÄÈÕÖ¾ÎļþÊÇÎÞ·¨¶ÁÈ¡µÄ Çë¼ì²éÏÂ
ÍƼöÐÅÏ¢
- linuxÃüÁîѧϰ±Ê¼Ç£¨11£©£ºnlÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨5£©£ºrmÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨4£©£ºmkdirÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨1£©£ºlsÃüÁî
- ½«CentosµÄyumÔ´¸ü»»Îª¹úÄڵİ¢ÀïÔÆÔ´
- ʹÓÃNginxÌí¼Óheader·ÀÖ¹ÍøÒ³±»frame
- linuxϼÓËÙscp´«Êä´óÎļþµÄËÙ¶È
- linuxϵͳÉ϶ÔnginxÈÕÖ¾·Ö¸î´¦Àí
- lnmp/nginxϵͳÕæÕýÓÐЧµÄͼƬ·ÀµÁÁ´ÍêÕûÉèÖÃÏê½â
- Í»ÆÆÊ®Íò²¢·¢µÄNginxµÄÅäÖü°ÓÅ»¯
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- ²éÕÒ²¢É¾³ý.svnĿ¼Îļþ
- redis ÆßÖÖÊý¾ÝÀàÐ͵ÄʹÓó¡¾°
- linux ÏÂÎļþ¸´ÖƵ½windowsÏÂÂÒÂëµÄ½â¾ö°ì·¨
- nginx³öÏÖ502 upstream sent too big he....
- linuxÏÂsudoÅäÖÃÏê½â
- linuxÃüÁîѧϰ±Ê¼Ç£¨15£©£ºtailÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨14£©£ºheadÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨13£©£ºlessÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨12£©£ºmoreÃüÁî
- ¼ÓÃÜËã·¨±È½Ï3DES AES RSA ECC MD5 SHA1µÈ
ÆÀÂÛ