<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>第一直觉 &#187; 延迟</title>
	<atom:link href="http://d1zj.com/tag/%e5%bb%b6%e8%bf%9f/feed" rel="self" type="application/rss+xml" />
	<link>http://d1zj.com</link>
	<description>d1zj.Com</description>
	<lastBuildDate>Mon, 26 Jul 2010 22:52:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<atom:link rel='hub' href='http://d1zj.com/?pushpress=hub'/>
		<item>
		<title>解决python django网页更新延迟的方法</title>
		<link>http://d1zj.com/2009/06/411.htm</link>
		<comments>http://d1zj.com/2009/06/411.htm#comments</comments>
		<pubDate>Mon, 22 Jun 2009 11:20:36 +0000</pubDate>
		<dc:creator>yavg</dc:creator>
				<category><![CDATA[未分类]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[dreamhost]]></category>
		<category><![CDATA[fcgi]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[延时]]></category>
		<category><![CDATA[延迟]]></category>

		<guid isPermaLink="false">http://d1zj.com/2009/06/411.htm</guid>
		<description><![CDATA[
这两天在没python django已经成功在alwaysdata.com上做好了helloworld.py也可以访问了,后来我改动了下helloworld.py文件,打开网页没更新.由于我刚学这东东不知怎么回事在摸索中我发现把只要里面有那django.fcgi文件把其它所有内容删掉都网也也能打开.看来是服务器的问题不是文件的问题
于是我做了实验测出helloworld文件更新后数小时后网页终于更新了.我以为是alwaysdata是免费服务所以有限制,于是我又在我DREAMHOST上配置了django发现和alwaysdata一样.也许是这方面的内容比较少吧.找了很久,最后还是找到了方法.原来要重启python.方法如下
1.更新上传了你的py文件
2.在SSH中
输入ps -U u328
这里的u328是我ssh的用户名,大家对号入座,输入后找到python对应的PID号码.我这时得到的号码是23274
3.输入命令kill 23274
4.OK现在我们就已经成功重启了python.我们验证一下,输入ps -U u328这时你会发现python的PID已经变成了24375也就是说python已经重启了
5.输入你的网页地址看你的用python做的网页是不是已经更新了.
]]></description>
			<content:encoded><![CDATA[<p><img src=http://d1zj.com/wp-content/uploads/2009/06/py2.jpg /></p>
<p>这两天在没python django已经成功在alwaysdata.com上做好了helloworld.py也可以访问了,后来我改动了下helloworld.py文件,打开网页没更新.由于我刚学这东东不知怎么回事在摸索中我发现把只要里面有那django.fcgi文件把其它所有内容删掉都网也也能打开.看来是服务器的问题不是文件的问题<br />
于是我做了实验测出helloworld文件更新后数小时后网页终于更新了.我以为是alwaysdata是免费服务所以有限制,于是我又在我DREAMHOST上配置了django发现和alwaysdata一样.也许是这方面的内容比较少吧.找了很久,最后还是找到了方法.原来要重启python.方法如下<br />
1.更新上传了你的py文件<br />
2.在SSH中<br />
输入ps -U u328<br />
这里的u328是我ssh的用户名,大家对号入座,输入后找到python对应的PID号码.我这时得到的号码是23274<br />
3.输入命令kill 23274<br />
4.OK现在我们就已经成功重启了python.我们验证一下,输入ps -U u328这时你会发现python的PID已经变成了24375也就是说python已经重启了<br />
5.输入你的网页地址看你的用python做的网页是不是已经更新了.</p>
]]></content:encoded>
			<wfw:commentRss>http://d1zj.com/2009/06/411.htm/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
