[文章作者:张宴 本文版本: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) | 阅读(183352)
xujie123
2012-5-21 11:22
Our online store offers you discounted Designer louis vuitton replica wallet at present. You could find them in desirable quality and price. If you don't mind high class louis vuitton uk, have a good time here.louis vuitton Store Online Handbags can also bring great accuracy as well as practical applicability and fashionable.Have you ever dreamed of being as charming as Madonna? Have you ever thought of becoming an envy of all your friends? If so, come to louis vuitton outlet.<br/>
xujie555
2012-5-21 13:46
coach factory outlet uses graceful accessories to match the classical logo of coach, which is the best combination of coach. The handmade coach products?can make you more charming and graceful.coach factory online provides people many coach goods. If you wish to snatch the coach handbag, then this best method is made for that you like for coach discount.coach factory outlet online is a fashion brand to ensure its quality. With designer coach shoulder bags, you will always attract people's attention. The bags will emphasize your personal style and taste.<br/>
xujie333
2012-5-21 15:10
coach outlet online Store guarantee that all the coach handbags offered are own high quality. In addition , all of them are sold at an unexpected low price.If you want to purchase, just visit their website.coach factory outlet is really sizzling kinds of shopping way for you. With the usage of the replica designer coach bags, you can surely be able to change your individual looks in a stunning manner.Coach bags on sale from the coach outlet are cheap or discount prices that you certainly will stand out from the crowd on your next camping trip!<br/>
求魔 Email Homepage
2012-5-29 01:28
安装好nginx,探针正常,但是phpmyadmin不可以用,报这个错。fpm_stdio_prepare_pipes()  pipe() faile d: Too many open files (24)
小小而 Homepage
2012-6-14 15:30
cheaperoakleysunglasses Email Homepage
2012-6-30 09:33
If you are not a movement, but would like a pair of sunglasses that will capture others attention, discount oakley sunglasses is still option is ideal for you. You like sports style was low-key and vintage look, if I decide to buy oakley sunglasses will give you every option in the Sun. Once you know that Oakley Active Sunglasses protect you from the Sun's glare, you can style and fashion--you decide, it is at the top of Oakley Asian Fit Sunglasses in this market.
cheap oakley sunglasses Email Homepage
2012-7-7 10:02
The oakley sunglasses  online shop is really a wonderful and useful. It sells all-round discount oakley sunglasses include to sunglasses which obstruct the rays, light color sunglasses and special-use sunglasses. The ordinary oakley sunglasses is usually used to reduce the glare. The light color sunglaesses is used to decoration . The Oakley Active Sunglasses is usuallly used by the climber or other people who like to do sports. In the Discount oakley sunglasses you can buy whatever you need, to choose Discount oakley sunglasses is right.A great many people in the world like to purchase  oakley sunglasses from cheap oakley sunglasses.It is necessary for the everyone to buy a pair of oakley sunglasses in the hot summer. To wear the sunglasses is not only used to obstruct the uv but also to make you look much more charming. Please place an order now.
cheap oakley sunglasses Email Homepage
2012-7-18 13:30
Various designer Oakley Sunglasses Outlet for Sale in our store. Oakley Sunglasses at possible lowest price and high quality, fast delivery.Hot summer has already come, when you go out the most imporant things you need take is a pair of sunglasses. These fashion and stylish Cheap Oakley Sunglasses can protect your eyes well in the strong sunlight. We do not simply need a pair of sunglasses, we need protection from UV rays, we need to be cool in summer, show our understanding of fashion. In fact, all we need is a pair of Discount Oakley Sunglasses.
coach88888888 Email
2012-8-13 17:51
If you desire to go to Coach Factory Outlet, but have no idea in which to go, you can research online. It is no doubt that there is drastically information and details about it for the reference.Coach Factory Online are loved by many people, when you walk in the street, you could see many people take coach styles.hat experts claim Coach Outlet Online shopping is in the changes they are available in.Coach Outlet will send you a coupon in the post to use in their upon only after you type a achieve. The Coach bags are customarily somewhat many than the ones in the stores.
Michael Kors Outlet Email Homepage
2012-9-13 17:09
We often communicate with each other, encouraged each other and learn from each other. How to thank you? I'm back many comments.
Gucci Outlet Email Homepage
2012-9-13 17:11
This theme or need to know. There are a lot of attraction. I'll often come. And hope I can meet you. Meet with many people.
Burberry Outlet Online Email Homepage
2012-9-13 17:12
Great post, you pointed out that some great details, this is I have seen very good one of posts.
baozang
2012-9-22 13:28
Lamo - Like Sebago, Louis Vuitton Canada  there are only about 40 styles of Lamo Footwear. Most of their footwear uses a suede leather traditional in True Religion Jeans  moccasins, though only about 1/3 of the footwear collection is a traditional moccasin look. True Religion Brand Jeans The rest of the collection is slippers and UGG styled boots.Louis Vuitton Artsy The traditional moccasins do have a soft rubber sole making them great deck True Religion Sale shoes as well, however. Expect to pay between $50 and $60 for Lamo moccasins.  Invicta watches have been here since 1837. They were made by Raphael Picard. Invicta watches got its name from a Latin word. The meaning of Invicta in Louis Vuitton Monogram Vernis Alma BB Amarante Latin is "Invincible". Earlier these watches were not so popular but recently with its new men's collection this watch brand has gained a lot of popularity. Watches for many are a style statement and so they prefer to own the best piece. Invicta watches are popular as they are like a style statement.
DGFDGF Email Homepage
2012-9-27 08:54
select the most effective pairs to guarantee Karen Millen dresses that you can put on them for distinct occasions. However, while you have prepared of creating your buy you should go with the artist footwear to guarantee that you might get the most effective for yourself.There are some top manufacturers within the industry that provides you many sorts and designs of footwear that you just may prefer to purchase. The artist shoes guarantees that their Karen Millen dress make is of excellent superior also it is very durable. You can absolutely improve your charm and appeal while you are putting on artist footwear. However, sometimes, this pose like a challenge for countless people as they are unable to avail the heavily priced footwear from these artist brands.There are countless reputed web sites more than the web from in which you can purchase Karen Millen Ireland artist shoes. The on line stores provides fantastic costs that allow you purchase the footwear at a cheaper rate.
Chanel Outlet Email Homepage
2012-10-10 13:51
The chance at The articles, a good argument The hope can share The author more articles. I have paid attention to this site, and at The same time also recommend to your more friends. You can learn from each other.I'm glad to have the opportunity to see this piece of stick.
Michael Kors Handbags Outlet Email Homepage
2012-10-10 13:52
Now this topic many people know. Very attractive. I will often come to. I hope I can see you. Meeting people. Yes to comment. Once again, I recommend this station.We learn from each other and share.
Prada Outlet Online Email Homepage
2012-10-10 13:53
We often communicate with each other, encouraged each other and learn from each other. How to thank you? I'm back many comments.Share many friends help you promotion.
Chanel Outlet Email Homepage
2012-10-17 13:31
This theme or need to know. There are a lot of attraction. I'll often come. And hope I can meet you. Meet with many people.
Michael Kors Handbags Outlet Email Homepage
2012-10-17 13:35
We often communicate with each other, encouraged each other and learn from each other. How to thank you? I'm back many comments.
Prada Outlet Online Email Homepage
2012-10-17 13:39
The chance at The articles, a good argument The hope can share The author more articles. I have paid attention to this site, and at The same time also recommend to your more friends. You can learn from each other.
分页: 4/6 第一页 上页 1 2 3 4 5 6 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]