<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>《解决504 Gateway Time-out(nginx)》的评论</title>
	<atom:link href="http://www.hao32.com/webserver/159.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hao32.com/webserver/159.html</link>
	<description>私人日志记录</description>
	<lastBuildDate>Fri, 02 Dec 2011 06:56:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>作者：[转贴] 解决504 Gateway Time-out(nginx) &#8211; Sense&#039;s Blog</title>
		<link>http://www.hao32.com/webserver/159.html/comment-page-1#comment-4195</link>
		<dc:creator>[转贴] 解决504 Gateway Time-out(nginx) &#8211; Sense&#039;s Blog</dc:creator>
		<pubDate>Fri, 02 Dec 2011 06:56:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.hao32.com/?p=159#comment-4195</guid>
		<description>[...] 转贴自：http://www.hao32.com/webserver/159.html [...]</description>
		<content:encoded><![CDATA[<p>[...] 转贴自：http://www.hao32.com/webserver/159.html [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：itpob</title>
		<link>http://www.hao32.com/webserver/159.html/comment-page-1#comment-1981</link>
		<dc:creator>itpob</dc:creator>
		<pubDate>Thu, 26 May 2011 02:43:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.hao32.com/?p=159#comment-1981</guid>
		<description>简单来说就是没有请求到可以执行的 PHP-CGI</description>
		<content:encoded><![CDATA[<p>简单来说就是没有请求到可以执行的 PHP-CGI</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：郁郁葱葱</title>
		<link>http://www.hao32.com/webserver/159.html/comment-page-1#comment-1980</link>
		<dc:creator>郁郁葱葱</dc:creator>
		<pubDate>Sat, 14 May 2011 02:01:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.hao32.com/?p=159#comment-1980</guid>
		<description>aaaaaaaaaaaaaaa</description>
		<content:encoded><![CDATA[<p>aaaaaaaaaaaaaaa</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：大智慧官方网站5.99</title>
		<link>http://www.hao32.com/webserver/159.html/comment-page-1#comment-1976</link>
		<dc:creator>大智慧官方网站5.99</dc:creator>
		<pubDate>Thu, 07 Apr 2011 14:07:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.hao32.com/?p=159#comment-1976</guid>
		<description>回复：解决504 Gateway Time

  ╭╧╮╭╧╮╭╧╮╭╧╮ ╭╧╮╭╧╮╭╧╮╭╧╮
  ║友 ║║ 情║║回║ ║访║  ║欢║║迎 ║║光║ ║临║
  〓§〓〓〓〓〓〓§〓〓〓〓〓〓§〓〓〓〓〓〓§〓 
　 　↓　　　　 　↓　　　　 　　↓　　　  　　↓	 
　☆★☆　　　☆★☆　　　　☆★☆　　　☆★☆	 
☆　祝　☆　☆　你　☆　　☆　快　☆　☆　乐　☆ 
　☆★☆　　　☆★☆　　　　☆★☆　　　☆★☆	 
　 　↓　　　　　 ↓　　　　　 　↓　　　　  　↓	 

....( 踩)朋友Ooooo....
......)./....( 踩)....
.....(_/......)./.....
.............(_/......
留下脚印送你祝福愿你快乐！

回复时间:2011年4月7日星期四 22:07:09
欢迎回访我的博客</description>
		<content:encoded><![CDATA[<p>回复：解决504 Gateway Time</p>
<p>  ╭╧╮╭╧╮╭╧╮╭╧╮ ╭╧╮╭╧╮╭╧╮╭╧╮<br />
  ║友 ║║ 情║║回║ ║访║  ║欢║║迎 ║║光║ ║临║<br />
  〓§〓〓〓〓〓〓§〓〓〓〓〓〓§〓〓〓〓〓〓§〓<br />
　 　↓　　　　 　↓　　　　 　　↓　　　  　　↓<br />
　☆★☆　　　☆★☆　　　　☆★☆　　　☆★☆<br />
☆　祝　☆　☆　你　☆　　☆　快　☆　☆　乐　☆<br />
　☆★☆　　　☆★☆　　　　☆★☆　　　☆★☆<br />
　 　↓　　　　　 ↓　　　　　 　↓　　　　  　↓	 </p>
<p>....( 踩)朋友Ooooo....<br />
......)./....( 踩)....<br />
.....(_/......)./.....<br />
.............(_/......<br />
留下脚印送你祝福愿你快乐！</p>
<p>回复时间:2011年4月7日星期四 22:07:09<br />
欢迎回访我的博客</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：xiaomeng</title>
		<link>http://www.hao32.com/webserver/159.html/comment-page-1#comment-1959</link>
		<dc:creator>xiaomeng</dc:creator>
		<pubDate>Thu, 10 Feb 2011 03:07:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.hao32.com/?p=159#comment-1959</guid>
		<description>我今天打51，登录时报了一个错，我之前都没见过，好郁闷那，51也报错了，我就在那看看是什么错。



504 Gateway Time-out
The server didn&#039;t respond in time.</description>
		<content:encoded><![CDATA[<p>我今天打51，登录时报了一个错，我之前都没见过，好郁闷那，51也报错了，我就在那看看是什么错。</p>
<p>504 Gateway Time-out<br />
The server didn't respond in time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：wodingdong</title>
		<link>http://www.hao32.com/webserver/159.html/comment-page-1#comment-1910</link>
		<dc:creator>wodingdong</dc:creator>
		<pubDate>Thu, 16 Sep 2010 15:13:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.hao32.com/?p=159#comment-1910</guid>
		<description>我的个人博客出现了同样的情况。不知道具体什么原因。还请指点。具体情况有截图记录，请看这篇文章：http://wodingdong.com/archives/278.html</description>
		<content:encoded><![CDATA[<p>我的个人博客出现了同样的情况。不知道具体什么原因。还请指点。具体情况有截图记录，请看这篇文章：http://wodingdong.com/archives/278.html</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：ikbear</title>
		<link>http://www.hao32.com/webserver/159.html/comment-page-1#comment-1906</link>
		<dc:creator>ikbear</dc:creator>
		<pubDate>Tue, 17 Aug 2010 02:22:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.hao32.com/?p=159#comment-1906</guid>
		<description>从google找到这里来的，学习了。</description>
		<content:encoded><![CDATA[<p>从google找到这里来的，学习了。</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：汤博客</title>
		<link>http://www.hao32.com/webserver/159.html/comment-page-1#comment-1431</link>
		<dc:creator>汤博客</dc:creator>
		<pubDate>Mon, 01 Mar 2010 14:01:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.hao32.com/?p=159#comment-1431</guid>
		<description>很有用的文章</description>
		<content:encoded><![CDATA[<p>很有用的文章</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：xiaog</title>
		<link>http://www.hao32.com/webserver/159.html/comment-page-1#comment-987</link>
		<dc:creator>xiaog</dc:creator>
		<pubDate>Tue, 18 Aug 2009 00:34:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.hao32.com/?p=159#comment-987</guid>
		<description>其实大家想过没有,nginx的出现就是体现了它的速度,如果一个请求响应时间要60秒,这样的网站谁会上,所以我不建议调整这样的参数,至少在我们自己写的php应用总,不应该这样干,当然我是指网站前台,如果是后台有可能需要长时间负责操作,特别是dedecms这样的cms系统,很郁闷的,网站分类是多级的,如果文章多了,一次生成全部,fastcgi就拼命的计算,nginx就拼命的等,简直就是灾难,然而很多半罐水的站长,却就喜欢这样操作</description>
		<content:encoded><![CDATA[<p>其实大家想过没有,nginx的出现就是体现了它的速度,如果一个请求响应时间要60秒,这样的网站谁会上,所以我不建议调整这样的参数,至少在我们自己写的php应用总,不应该这样干,当然我是指网站前台,如果是后台有可能需要长时间负责操作,特别是dedecms这样的cms系统,很郁闷的,网站分类是多级的,如果文章多了,一次生成全部,fastcgi就拼命的计算,nginx就拼命的等,简直就是灾难,然而很多半罐水的站长,却就喜欢这样操作</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：llll</title>
		<link>http://www.hao32.com/webserver/159.html/comment-page-1#comment-948</link>
		<dc:creator>llll</dc:creator>
		<pubDate>Sat, 25 Jul 2009 11:56:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.hao32.com/?p=159#comment-948</guid>
		<description>今天小试了一下nginx的负载均衡，真是爽啊！
nginx是什么？
[quote]
Nginx (&quot;engine x&quot;) 是一个高性能的 HTTP 和 反向代理 服务器，也是一个 IMAP/POP3/SMTP 代理服务器。 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler.ru 站点开发的，它已经在该站点运行超过两年半了。Igor 将源代码以类BSD许可证的形式发布。尽管还是测试版，但是，Nginx 已经因为它的稳定性、丰富的功能集、示例配置文件和低系统资源的消耗而闻名了。
[/quote]
首先是配置十分的简单，而且功能非常强大。真是相见恨晚。
先来看看配置文件怎么写吧

worker_processes 1;
events {
worker_connections 1024;
}
http{
upstream myproject {
#这里指定多个源服务器，ip:端口,80端口的话可写可不写
server 192.168.43.158:80;
server 192.168.41.167;
}

server {
listen 8080;
location / {
proxy_pass http://myproject;
}
}
}

nginx的负载均衡有哪些功能呢？
[list]
[*]如果后面的服务器其中一台坏了，它能自动识别，更牛的是它好了之后nginx可以马上识别
[*]服务器A和B，如果A的响应时间为3，B的响应时间为1，那么nginx会自动调整访问B的概率是A的3倍，真正做到负载均衡
[/list]

在这里还是想说说nginx的安装及运行
先到http://www.nginx.net/下载最新的源码包。
我下载到的是nginx-0.5.33.tar.gz
解压：tar zxvf nginx-0.5.33.tar.gz
接着：./configure
再接着：make
最后：make install
好的，安装完成了。我在make的时候报了个错，说HTTP Rewrite 模块 有问题，我就./configure --without-http_rewrite_module
然后再make,make install就可以了。
安装好了之后新建一个配置文件，把上面的配置文件内容拷进去，当然要修改你的IP，保存为比如 load_balance.conf

然后启动：
/usr/local/nginx/sbin/nginx -c load_balence.conf

如果上面的步骤走下来有问题的话，可以参考：
nginx的中文维基
http://wiki.codemongers.com/NginxChs
当然也可以到官方网站
www.nginx.net
www.nginx.com

由于nginx的作者是俄国人，所以英文的文档也不是那么完善，对于我来说nginx的最大优点还是配置简单，功能强大
我曾经配过 apache-jk,那真的不是一般人能配的。太复杂了，而且只能用来做tomcat的负载均衡。
nginx就没有这个限制，对它来说后面是什么服务器是完全透名的。
nginx就一点不爽，它本身目前还不能在windows下面跑。
写了一大堆，哈哈。～～
说的不对的大家指出哈</description>
		<content:encoded><![CDATA[<p>今天小试了一下nginx的负载均衡，真是爽啊！<br />
nginx是什么？<br />
[quote]<br />
Nginx ("engine x") 是一个高性能的 HTTP 和 反向代理 服务器，也是一个 IMAP/POP3/SMTP 代理服务器。 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler.ru 站点开发的，它已经在该站点运行超过两年半了。Igor 将源代码以类BSD许可证的形式发布。尽管还是测试版，但是，Nginx 已经因为它的稳定性、丰富的功能集、示例配置文件和低系统资源的消耗而闻名了。<br />
[/quote]<br />
首先是配置十分的简单，而且功能非常强大。真是相见恨晚。<br />
先来看看配置文件怎么写吧</p>
<p>worker_processes 1;<br />
events {<br />
worker_connections 1024;<br />
}<br />
http{<br />
upstream myproject {<br />
#这里指定多个源服务器，ip:端口,80端口的话可写可不写<br />
server 192.168.43.158:80;<br />
server 192.168.41.167;<br />
}</p>
<p>server {<br />
listen 8080;<br />
location / {<br />
proxy_pass <a href="http://myproject" rel="nofollow">http://myproject</a>;<br />
}<br />
}<br />
}</p>
<p>nginx的负载均衡有哪些功能呢？<br />
[list]<br />
[*]如果后面的服务器其中一台坏了，它能自动识别，更牛的是它好了之后nginx可以马上识别<br />
[*]服务器A和B，如果A的响应时间为3，B的响应时间为1，那么nginx会自动调整访问B的概率是A的3倍，真正做到负载均衡<br />
[/list]</p>
<p>在这里还是想说说nginx的安装及运行<br />
先到http://www.nginx.net/下载最新的源码包。<br />
我下载到的是nginx-0.5.33.tar.gz<br />
解压：tar zxvf nginx-0.5.33.tar.gz<br />
接着：./configure<br />
再接着：make<br />
最后：make install<br />
好的，安装完成了。我在make的时候报了个错，说HTTP Rewrite 模块 有问题，我就./configure --without-http_rewrite_module<br />
然后再make,make install就可以了。<br />
安装好了之后新建一个配置文件，把上面的配置文件内容拷进去，当然要修改你的IP，保存为比如 load_balance.conf</p>
<p>然后启动：<br />
/usr/local/nginx/sbin/nginx -c load_balence.conf</p>
<p>如果上面的步骤走下来有问题的话，可以参考：<br />
nginx的中文维基<br />
<a href="http://wiki.codemongers.com/NginxChs" rel="nofollow">http://wiki.codemongers.com/NginxChs</a><br />
当然也可以到官方网站<br />
<a href="http://www.nginx.net" rel="nofollow">http://www.nginx.net</a><br />
<a href="http://www.nginx.com" rel="nofollow">http://www.nginx.com</a></p>
<p>由于nginx的作者是俄国人，所以英文的文档也不是那么完善，对于我来说nginx的最大优点还是配置简单，功能强大<br />
我曾经配过 apache-jk,那真的不是一般人能配的。太复杂了，而且只能用来做tomcat的负载均衡。<br />
nginx就没有这个限制，对它来说后面是什么服务器是完全透名的。<br />
nginx就一点不爽，它本身目前还不能在windows下面跑。<br />
写了一大堆，哈哈。～～<br />
说的不对的大家指出哈</p>
]]></content:encoded>
	</item>
</channel>
</rss>

