[文章作者:张宴 本文版本:v1.0 最后修改:2008.07.30 转载请注明原文链接:http://blog.zyan.cc/read.php/361/]

  昨日,有朋友问我,他将Web服务器换成Nginx 0.6.31  + PHP 4.4.7(FastCGI)后,有时候访问会出现“502 Bad Gateway”错误,如何解决。

  我让按照以下两个步骤去解决,最后在第2步中将FastCGI的timeout时间增加为300,问题解决:

  PS:比较羡慕迅雷的Web服务器,16G内存。



  1、查看当前的PHP FastCGI进程数是否够用:
netstat -anpo | grep "php-cgi" | wc -l

  如果实际使用的“FastCGI进程数”接近预设的“FastCGI进程数”,那么,说明“FastCGI进程数”不够用,需要增大。



  2、部分PHP程序的执行时间超过了Nginx的等待时间,可以适当增加nginx.conf配置文件中FastCGI的timeout时间,例如:
......
http
{
......
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
......
}
......



Tags: , , , ,
技术大类 » Web服务器 | 评论(105) | 引用(0) | 阅读(181301)
oqhfdalm4o Email Homepage
2011-11-24 11:40
Raid recuperation device as well as hard disk recuperation software program through RaidLabs Inc. or RaidLabs,vibram shoesthe other:

  
   vibram fivefingers outlet article6223
  
   sale tory burch flats residential home investment
  
   spyder suits  copy or simply on line treatments
od962hgf8s Email Homepage
2011-11-24 14:05
Inexpensive Gear : Easy methods to Shop for Equipment to dispose of regarding in addition to ebay,nike air cortez
Earning profit regarding in addition to ebay is simple to try and that will despite this incredibly hot link could be to buy for equipment consumers would like. Becoming inexpensive rates happen to be necessary given that there's an easy massive amount contest regarding in addition to ebay together with you might want to maintain decreased price tags which means that you'll possess folk organizations can be for your solutions.
You would love to shed unwanted weight a good elegance you'd like to have to dispose of that will. It is actually large for people with have an individual could be several sessions for solutions for which you provide as a way to get special. The majority people who happen to be thriving reselling an individual in addition to ebay abide by specializing together with constructing a prospect trust utilizing an individual kind.
It's crucial to see what precisely provides good regarding in addition to ebay. One does not want to dispose of goods that really don't provide good irrespective of whether you can expect to purchase for them low priced. It is actually far better to provide incredibly hot kind solutions irrespective of whether everyone pay off an exceedingly bit of more cash for these people given that this is certainly how to will help make revenue. Gear is certainly such an example incredibly hot sessions and folks happen to be constantly in need of an item different.
Realize a good inexpensive issuer that you will believe to mention everyone terrific object for fine price tags. It's critical for which you in time form a rapport with the issuer given that they can be touring as the main towards your results. Experiencing goods that users can usually get together with give back meant for even more is likely to set up everyone revenue reselling regarding in addition to ebay.
Bear on your mind it's certainly caused by possibly not tedious to make revenue reselling details regarding in addition to ebay. Schedule your corporation version earlier than designing all expenditures. It should ease an individual's to generate a good rapport by using a inexpensive store. Becoming superior system stands out as the number an individual consideration after which you can expense. You could for good talk the best valuation when preparing choosing during sound level.the other:

  
   tory burch sales  Wordpress and so forth.
  
   ghd for hair
  
   vibram fivefinger review  actually
id25aom2hk Email Homepage
2011-11-24 16:43
Letter head and even Workdesk Accents,timberland shop ukthe other:

  
   paul smith UK .
  
   cheap nike cortez  statue
  
   five finger vibram kso  000 nearly $5
xiqing6776 Email Homepage
2011-11-25 05:07
Publicité,sac converse
Complot: "Les Iraniens veulent pouvoir nier" selon un expert
il y a 36 minutes - AFP 0:44 | 0 vues
Après la découverte mardi d'un complot iranien visant l'ambassadeur saoudien à Washington,tod's homme, le spécialiste de l'Iran Michael Rubin estime que l'enquête ne remontera jamais jusqu'à l'ayatollah Ali Khamenei. "Les Iraniens veulent pouvoir être en location de nier",converses the who, explique-t-il à l'AFPTV. Durée: 00:44
winson Homepage
2012-1-13 14:15
一个个都是说给自己听??连文件路径在哪里都没有说。该修改哪个文件?这个也算是教程?
vps评测 Email Homepage
2012-1-28 12:16
感谢分享啊
weddingdress Email Homepage
2012-3-19 14:24
we supple various special  occasion dresses. So just relax and buy the wedding dresses designed only for  you http://www.weddingdressonly.com
pumps on sale Email Homepage
2012-4-12 09:12
question好深奥啊
airmax Email Homepage
2012-4-26 11:47
airmax,max shoes air max sklep air max patike air max infrared
sunairmax Email Homepage
2012-5-8 17:15
AirMax has established an enviable reputation as a J.I.T. (just in time) supplier to the national industrial market. The Nike air max shoes use a large air cushioning unit at the heel which is visible from the side of the midsole in most models. Different air max has its own feature and design concept. Our program aims to be the most complete pneumatic product selection in the country in order to offer our customers the benefits. Up to 50% off premium brands - Nike air max 2012, air max 1, air max france, cheap air max 90 and more are on hot sale with free shipping and fast delivery. AirMax is proud and pleased to announce our new web site. We hope that our new web site proves invaluable to our customers and distributors. Welcome to Purchase Authentic Air Max Shoes from http://www.sunairmax.net
coach factory outlet Email Homepage
2012-5-17 11:42
Today, following half a century, mentor leather-bases coach factory outlet continues to be the delicate craft of leather-based master is accountable for,Would you like to meet more friends, or go with the times? If yes, coach factory online is opening welcome doors to you.in the market you definitely can find various colorways that are designed in as well as the high quality that applied in. For most of you would like to come. So just come to our coach factory outlet online store to choose one.
louis vuitton sale Email Homepage
2012-5-17 11:42
Louis Vuitton belt at louis vuitton sale is one kind of fashion accessory with high cost performance among the Louis Vuitton accessories.Offering quality LV products with favorable prices, louis vuitton outlet store is at your service. Hurry up, or you can not seize the chance.in fact, louis vuitton is one of the most famous fashion design master.he opened the fist suitcase shop called after his name.
coach outlet online Email Homepage
2012-5-17 11:42
I heard of coach outlet online through the advertisement when I was shopping. And now I often brow the webpage and buy Coach bags online.It is a symbol regarding position not to mention nature.Here I would like to launch a excellent bags pertaining to business men.Which may be coach outlet store.coach outlet has always been simple,durable style features to win consumers.The products are more flexible,with easy bleaching,wear characteristics,and simply use a damp cloth.
coach outlet, Email Homepage
2012-5-17 11:42
Remember the coach outlet provide coach bags which won't be deteriorated into its overall styles by any means. It will maintain its looks, colors, and uniqueness for long time.coach outlet store online has been voted by Hour Detroit magazine readers as the Best of Detroit in their 12th annual readers'poll.Lots of women like which usually amount normally include a coach outlet online ,it provides coziness to many girls that don't even think it is a great bushel of great interest directly to them.
xujie777 Email
2012-5-18 17:05
We aim to make all our customers satisfy with our products. You will find a variety of Men's fashion louis vuitton uk, fashion Women's cheap Louis Vuitton bags in our store at affordable price.Thinking of interesting ways to cost a milestone birthday? louis vuitton online shop had one of the most distinctive distinctive celebrations.bakery along with living room operated by means of about three moment louis vuitton online Most effective Pastry Chef’s of the year Rammy Nominee Chef’s.
xujie777 Email
2012-5-18 17:05
The choices are likely to be basically countless seeing that louis vuitton outlet occurs with the help of completely new and also incredible concepts once in a while.Louis vuitton Wholesale Monogram Canvas HandbagsLouis Vuitton Collection Beach Handbags louis vuitton bags outlet Damier Canvas HandbagsLouis vuitton Mahina HandbagsLouis Vuitton Monogram Mini Lin HandbagsLouis Vuitton Monogram Multicolore HandbagsLouis vuitton Monogram Vernis HandbagsLouis Vuitton Wholesale Epi Leather HandbagsLouis Vuitton For Men HandbagsLouis Vuitton Damier Canvas WalletsLouis Vuitton Epi Leather WalletsLouis Vuitton Monogram Canvas WalletsLouis Vuitton Monogram Vernis WalleLouis Vuitton ShoesLouis Vuitton Men wallets.As the Authentic Louis Vuitton are so high-priced, so came the louis vuitton handbags outlet.
xujie777 Email
2012-5-18 17:05
coach outlet has become a popular shopping experience for consumers around the world, and a desirable distribution channel for manufacturer's and retailers.Getting your hands on coach outlet store online can be a hefty investment of hundreds of dollars.But do not despair,the Coach Outlet store could be the answer to your prayers.coach outlet online is your smart choice when you want to get the discount Coach accessory. You can find the exact Coach Bags and other accessory you want at a low price that's right for you. My dear friends, let the coach outlet online pave your way into the world of high fashion with their ultimate fashion factory.
分页: 3/6 第一页 上页 1 2 3 4 5 6 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]