<?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>Marshal&#039;s Blog &#187; 建站笔记</title>
	<atom:link href="http://marshal.easymorse.com/archives/tag/%e5%bb%ba%e7%ab%99%e7%ac%94%e8%ae%b0/feed" rel="self" type="application/rss+xml" />
	<link>http://marshal.easymorse.com</link>
	<description>It&#039;s swap of marshal&#039;s memory.</description>
	<lastBuildDate>Tue, 07 Sep 2010 08:15:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>netnear路由器升级</title>
		<link>http://marshal.easymorse.com/archives/1342</link>
		<comments>http://marshal.easymorse.com/archives/1342#comments</comments>
		<pubDate>Wed, 13 May 2009 15:21:19 +0000</pubDate>
		<dc:creator>Marshal</dc:creator>
				<category><![CDATA[计算机技术]]></category>
		<category><![CDATA[建站笔记]]></category>

		<guid isPermaLink="false">http://marshal.easymorse.com/archives/1342</guid>
		<description><![CDATA[今天在netnear上增加nat端口怎么也加不上了。比如加ssh的22端口，添加成功，但是已添加的映射表里面没有。再次添加报告22端口已添加，冲突。查看了一下netgear网站：
http://www.netgear.com.cn/support/release_notes/d30127.asp

更新了firmware版本。问题解决。
]]></description>
			<content:encoded><![CDATA[<p>今天在netnear上增加nat端口怎么也加不上了。比如加ssh的22端口，添加成功，但是已添加的映射表里面没有。再次添加报告22端口已添加，冲突。查看了一下netgear网站：</p>
<blockquote><p><a href="http://www.netgear.com.cn/support/release_notes/d30127.asp">http://www.netgear.com.cn/support/release_notes/d30127.asp</a></p>
</blockquote>
<p>更新了firmware版本。问题解决。</p>
]]></content:encoded>
			<wfw:commentRss>http://marshal.easymorse.com/archives/1342/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu下更改默认的SSH服务器端口</title>
		<link>http://marshal.easymorse.com/archives/1338</link>
		<comments>http://marshal.easymorse.com/archives/1338#comments</comments>
		<pubDate>Wed, 13 May 2009 02:03:16 +0000</pubDate>
		<dc:creator>Marshal</dc:creator>
				<category><![CDATA[计算机技术]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[建站笔记]]></category>

		<guid isPermaLink="false">http://marshal.easymorse.com/archives/1338</guid>
		<description><![CDATA[更改文件命令：
sudo vi /etc/ssh/sshd_config

将22改为想要的端口号。
重启ssh服务器：
sudo /etc/init.d/ssh restart

]]></description>
			<content:encoded><![CDATA[<p>更改文件命令：</p>
<blockquote><p>sudo vi /etc/ssh/sshd_config</p>
</blockquote>
<p>将22改为想要的端口号。</p>
<p>重启ssh服务器：</p>
<blockquote><p>sudo /etc/init.d/ssh restart</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://marshal.easymorse.com/archives/1338/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用red5做流媒体服务的最后一步工作</title>
		<link>http://marshal.easymorse.com/archives/1292</link>
		<comments>http://marshal.easymorse.com/archives/1292#comments</comments>
		<pubDate>Sat, 25 Apr 2009 14:21:13 +0000</pubDate>
		<dc:creator>Marshal</dc:creator>
				<category><![CDATA[计算机技术]]></category>
		<category><![CDATA[red5]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[建站笔记]]></category>

		<guid isPermaLink="false">http://marshal.easymorse.com/archives/1292</guid>
		<description><![CDATA[如果想让red5在公网上提供服务，需要打开公网的1935端口，我这里是ADSL，在路由器上设置了端口转发。
目前已经可以通过trac中的flv播放器。见trac安装MovieMacro，播放flash的插件，示例链接：
https://dev.easymorse.com/trac/tutorials/wiki/Subversion/Introduction
如果想在wordpress中使用视频，可使用这个插件：
http://wordpress.org/extend/plugins/proplayer
这个插件目前没有时间安装，因为它需要wordpress2.7以上版本。我安装之前要升级wordpress。
这个可能也行，兼容wordpress2.3以上版本，有空试一试。网址：
http://wordpress.org/extend/plugins/flv-flash-fullscreen-video-player/
]]></description>
			<content:encoded><![CDATA[<p>如果想让red5在公网上提供服务，需要打开公网的1935端口，我这里是ADSL，在路由器上设置了端口转发。</p>
<p>目前已经可以通过trac中的flv播放器。见<a href="http://marshal.easymorse.com/archives/1290" title="trac安装MovieMacro，播放flash的插件">trac安装MovieMacro，播放flash的插件</a>，示例链接：</p>
<blockquote><p><a href="https://dev.easymorse.com/trac/tutorials/wiki/Subversion/Introduction">https://dev.easymorse.com/trac/tutorials/wiki/Subversion/Introduction</a></p></blockquote>
<p>如果想在wordpress中使用视频，可使用这个插件：</p>
<blockquote><p><a title="http://wordpress.org/extend/plugins/proplayer" href="http://wordpress.org/extend/plugins/proplayer">http://wordpress.org/extend/plugins/proplayer</a></p></blockquote>
<p><span id="more-1292"></span>这个插件目前没有时间安装，因为它需要wordpress2.7以上版本。我安装之前要升级wordpress。</p>
<p>这个可能也行，兼容wordpress2.3以上版本，有空试一试。网址：</p>
<blockquote><p><a href="http://wordpress.org/extend/plugins/flv-flash-fullscreen-video-player/">http://wordpress.org/extend/plugins/flv-flash-fullscreen-video-player/</a></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://marshal.easymorse.com/archives/1292/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>red5在ubuntu中守护进程配置</title>
		<link>http://marshal.easymorse.com/archives/1291</link>
		<comments>http://marshal.easymorse.com/archives/1291#comments</comments>
		<pubDate>Fri, 24 Apr 2009 17:06:34 +0000</pubDate>
		<dc:creator>Marshal</dc:creator>
				<category><![CDATA[计算机技术]]></category>
		<category><![CDATA[red5]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[建站笔记]]></category>

		<guid isPermaLink="false">http://marshal.easymorse.com/archives/1291</guid>
		<description><![CDATA[在在ubuntu下安装red5中只是基本的安装，red5应该作为守护进程。即在系统启动时，red5自动启动，系统关闭时，red5自动关闭。

编写守护进程脚本，/etc/init.d/red5：



#! /bin/sh

# Check for missing file
RED5_DIR=/srv/red5/red5-0.8.RC2-build-hudson-red5_jdk6_stable-27
test -x $RED5_DIR/red5.sh &#124;&#124; exit 5

case &#34;$1&#34; in
    start)
        echo -n &#34;Starting Red5 Service&#34;
        echo -n &#34; &#34;
        cd $RED5_DIR
       [...]]]></description>
			<content:encoded><![CDATA[<p>在<a href="http://marshal.easymorse.com/archives/1276" title="在ubuntu下安装red5">在ubuntu下安装red5</a>中只是基本的安装，red5应该作为守护进程。即在系统启动时，red5自动启动，系统关闭时，red5自动关闭。</p>
<p><span id="more-1291"></span>
<p>编写守护进程脚本，/etc/init.d/red5：</p>
<p>
<div class="wlWriterSmartContent" id="scid:F2210F5F-69EB-4d4c-AFF7-B8A050E9CC72:89d4f5b2-d0cc-4222-bded-2d623563aaaa" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">
<pre  style="width:100%;;">
<div><!--

Code highlighting produced by Actipro CodeHighlighter (freeware)

http://www.CodeHighlighter.com/

--><span style="color: #008000;">#</span><span style="color: #008000;">! /bin/sh</span><span style="color: #008000;">
</span><span style="color: #000000;">
</span><span style="color: #008000;">#</span><span style="color: #008000;"> Check for missing file</span><span style="color: #008000;">
</span><span style="color: #000000;">RED5_DIR</span><span style="color: #000000;">=/</span><span style="color: #000000;">srv</span><span style="color: #000000;">/</span><span style="color: #000000;">red5</span><span style="color: #000000;">/</span><span style="color: #000000;">red5</span><span style="color: #000000;">-</span><span style="color: #000000;">0.8</span><span style="color: #000000;">.RC2</span><span style="color: #000000;">-</span><span style="color: #000000;">build</span><span style="color: #000000;">-</span><span style="color: #000000;">hudson</span><span style="color: #000000;">-</span><span style="color: #000000;">red5_jdk6_stable</span><span style="color: #000000;">-</span><span style="color: #000000;">27</span><span style="color: #000000;">
test </span><span style="color: #000000;">-</span><span style="color: #000000;">x </span><span style="color: #800080;">$RED5_DIR</span><span style="color: #000000;">/</span><span style="color: #000000;">red5.sh </span><span style="color: #000000;">||</span><span style="color: #000000;"> exit </span><span style="color: #000000;">5</span><span style="color: #000000;">

case </span><span style="color: #800000;">&quot;</span><span style="color: #800000;">$1</span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> </span><span style="color: #0000FF;">in</span><span style="color: #000000;">
    start)
        echo </span><span style="color: #000000;">-</span><span style="color: #000000;">n </span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Starting Red5 Service</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">
        echo </span><span style="color: #000000;">-</span><span style="color: #000000;">n </span><span style="color: #800000;">&quot;</span><span style="color: #800000;"> </span><span style="color: #800000;">&quot;</span><span style="color: #000000;">
        cd </span><span style="color: #800080;">$RED5_DIR</span><span style="color: #000000;">
        su </span><span style="color: #000000;">-</span><span style="color: #000000;">s </span><span style="color: #000000;">/</span><span style="color: #000000;">bin</span><span style="color: #000000;">/</span><span style="color: #000000;">bash </span><span style="color: #000000;">-</span><span style="color: #000000;">c </span><span style="color: #800000;">&quot;</span><span style="color: #800000;">$RED5_DIR/red5.sh &amp;</span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> www</span><span style="color: #000000;">-</span><span style="color: #000000;">data
        sleep </span><span style="color: #000000;">2</span><span style="color: #000000;">
        ;;
    stop)
        echo </span><span style="color: #000000;">-</span><span style="color: #000000;">n </span><span style="color: #800000;">&quot;</span><span style="color: #800000;">Shutting down red5</span><span style="color: #800000;">&quot;</span><span style="color: #000000;">
        echo </span><span style="color: #000000;">-</span><span style="color: #000000;">n </span><span style="color: #800000;">&quot;</span><span style="color: #800000;"> </span><span style="color: #800000;">&quot;</span><span style="color: #000000;">
        su </span><span style="color: #000000;">-</span><span style="color: #000000;">s </span><span style="color: #000000;">/</span><span style="color: #000000;">bin</span><span style="color: #000000;">/</span><span style="color: #000000;">bash </span><span style="color: #000000;">-</span><span style="color: #000000;">c </span><span style="color: #800000;">&quot;</span><span style="color: #800000;">killall -q -u www-data java</span><span style="color: #800000;">&quot;</span><span style="color: #000000;"> www</span><span style="color: #000000;">-</span><span style="color: #000000;">data
        sleep </span><span style="color: #000000;">2</span><span style="color: #000000;">
        ;;
    restart)
        </span><span style="color: #800080;">$0</span><span style="color: #000000;"> stop
        </span><span style="color: #800080;">$0</span><span style="color: #000000;"> start
        ;;
esac</span></div>
</pre>
</div>
<p>使用sysv工具设置启动级别：</p>
<blockquote>
<p>sudo sysv-rc-conf</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://marshal.easymorse.com/archives/1291/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>加快ssh登录ubuntu的速度</title>
		<link>http://marshal.easymorse.com/archives/1270</link>
		<comments>http://marshal.easymorse.com/archives/1270#comments</comments>
		<pubDate>Fri, 24 Apr 2009 03:43:34 +0000</pubDate>
		<dc:creator>Marshal</dc:creator>
				<category><![CDATA[计算机技术]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[建站笔记]]></category>

		<guid isPermaLink="false">http://marshal.easymorse.com/archives/1270</guid>
		<description><![CDATA[ubuntu 8.10 server，通过ssh登录总是需要等上几秒钟。可以通过修改配置：
/etc/nsswitch.conf

将以下行：
hosts:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; files mdns4_minimal [NOTFOUND=return] dns mdns4

改为：
hosts:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; files dns [NOTFOUND=return]

重新登录ssh，瞬间弹出登录对话框。具体细节，可参见：
https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/94940

]]></description>
			<content:encoded><![CDATA[<p>ubuntu 8.10 server，通过ssh登录总是需要等上几秒钟。可以通过修改配置：</p>
<blockquote><p>/etc/nsswitch.conf</p>
</blockquote>
<p>将以下行：</p>
<blockquote><p>hosts:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; files mdns4_minimal [NOTFOUND=return] dns mdns4</p>
</blockquote>
<p>改为：</p>
<blockquote><p>hosts:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; files dns [NOTFOUND=return]</p>
</blockquote>
<p>重新登录ssh，瞬间弹出登录对话框。具体细节，可参见：</p>
<blockquote><p><a href="https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/94940">https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/94940</a></p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://marshal.easymorse.com/archives/1270/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用mod_rewrite重定向</title>
		<link>http://marshal.easymorse.com/archives/1239</link>
		<comments>http://marshal.easymorse.com/archives/1239#comments</comments>
		<pubDate>Thu, 02 Apr 2009 08:51:44 +0000</pubDate>
		<dc:creator>Marshal</dc:creator>
				<category><![CDATA[计算机技术]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[建站笔记]]></category>

		<guid isPermaLink="false">http://marshal.easymorse.com/archives/1239</guid>
		<description><![CDATA[以前写java代码，可以通过servlet的重定向或者使用rewrite filter。这回要调整trac的url，只能使用apache的mod_rewrite。先做了一个简单的测试，即对http://www.easymorse.com/forum做重定向，当访问http://www.easymorse.com/时重定向到forum。

配置很简单：
RewriteEngine OnRewriteRule ^/$ /forum [R]

因为是站内重定向，所以无需浏览器发起两次请求。
]]></description>
			<content:encoded><![CDATA[<p>以前写java代码，可以通过servlet的重定向或者使用<a href="http://tuckey.org/urlrewrite/">rewrite filter</a>。这回要调整trac的url，只能使用apache的mod_rewrite。先做了一个简单的测试，即对<a href="http://www.easymorse.com/forum">http://www.easymorse.com/forum</a>做重定向，当访问<a href="http://www.easymorse.com/">http://www.easymorse.com/</a>时重定向到forum。</p>
<p><span id="more-1239"></span>
<p>配置很简单：</p>
<blockquote><p>RewriteEngine On<br />RewriteRule ^/$ /forum [R]</p>
</blockquote>
<p>因为是站内重定向，所以无需浏览器发起两次请求。</p>
]]></content:encoded>
			<wfw:commentRss>http://marshal.easymorse.com/archives/1239/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在ubuntu下安装phpbb</title>
		<link>http://marshal.easymorse.com/archives/1231</link>
		<comments>http://marshal.easymorse.com/archives/1231#comments</comments>
		<pubDate>Fri, 27 Mar 2009 16:04:10 +0000</pubDate>
		<dc:creator>Marshal</dc:creator>
				<category><![CDATA[计算机技术]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[phpbb]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[建站笔记]]></category>

		<guid isPermaLink="false">http://marshal.easymorse.com/archives/1231</guid>
		<description><![CDATA[以前使用discuz!做论坛。嫌它功能太多了。而且默认情况下（估计可以修改）程序代码的格式不好。phpbb是著名的php实现的论坛，粘贴程序代码的显示格式比较符合我的要求，这次就用它搭建了新的论坛。
安装很简单，首先，下载相应的文件：
http://www.phpbb.com/downloads/


包括phpbb程序包和language packs，另外，安装需要imagemagick：
sudo apt-get install imagemagick

]]></description>
			<content:encoded><![CDATA[<p>以前使用discuz!做论坛。嫌它功能太多了。而且默认情况下（估计可以修改）程序代码的格式不好。phpbb是著名的php实现的论坛，粘贴程序代码的显示格式比较符合我的要求，这次就用它搭建了新的论坛。</p>
<p>安装很简单，首先，下载相应的文件：</p>
<blockquote><p><a href="http://www.phpbb.com/downloads/">http://www.phpbb.com/downloads/</a></p>
</blockquote>
<p><span id="more-1231"></span>
<p>包括phpbb程序包和language packs，另外，安装需要imagemagick：</p>
<blockquote><p><font color="#333333">sudo apt-get install imagemagick</font></p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://marshal.easymorse.com/archives/1231/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>比较多个处理器的super pi结果</title>
		<link>http://marshal.easymorse.com/archives/1074</link>
		<comments>http://marshal.easymorse.com/archives/1074#comments</comments>
		<pubDate>Wed, 07 Jan 2009 01:32:31 +0000</pubDate>
		<dc:creator>Marshal</dc:creator>
				<category><![CDATA[计算机技术]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[intel atom]]></category>
		<category><![CDATA[建站笔记]]></category>

		<guid isPermaLink="false">http://marshal.easymorse.com/archives/1074</guid>
		<description><![CDATA[比较了多个处理器的super pi结果，主要是和atom比较。因为下一步可能升级家里的服务器，对intel atom芯片的系统比较看好。
这是别人在intel atom 230（1.6GHz）上做的测试结果：

atom 330数据与之类似。
 
以下是目前服务器，P III 866MHz的测试结果：
&#160; 
又测试了一下笔记本的数据，intel core duo T7500 2.2GHz：
 
可以看出atom 230/330性能还是要明显优于P III 866的。
测试软件的链接
windows版本：

http://www.xtremesystems.com/superpi/

linux版本：
ftp://pi.super-computing.org/Linux/super_pi.tar.gz

]]></description>
			<content:encoded><![CDATA[<p>比较了多个处理器的super pi结果，主要是和atom比较。因为下一步可能升级家里的服务器，对intel atom芯片的系统比较看好。</p>
<p>这是别人在intel atom 230（1.6GHz）上做的测试结果：</p>
<p><a href="http://marshal.easymorse.com/wp-content/uploads/2009/01/s10162596.jpg"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="432" alt="S10162596" src="http://marshal.easymorse.com/wp-content/uploads/2009/01/s10162596-thumb.jpg" width="570" border="0" /></a></p>
<p>atom 330数据与之类似。</p>
<p> <span id="more-1074"></span>
<p>以下是目前服务器，P III 866MHz的测试结果：</p>
<p>&#160;<a href="http://marshal.easymorse.com/wp-content/uploads/2009/01/s21.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="344" alt="s2" src="http://marshal.easymorse.com/wp-content/uploads/2009/01/s2-thumb1.png" width="391" border="0" /></a> </p>
<p>又测试了一下笔记本的数据，intel core duo T7500 2.2GHz：</p>
<p><a href="http://marshal.easymorse.com/wp-content/uploads/2009/01/s31.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="315" alt="s3" src="http://marshal.easymorse.com/wp-content/uploads/2009/01/s3-thumb1.png" width="331" border="0" /></a> </p>
<p>可以看出atom 230/330性能还是要明显优于P III 866的。</p>
<p><strong>测试软件的链接</strong></p>
<p>windows版本：</p>
<blockquote></blockquote>
<blockquote><p><a href="http://www.xtremesystems.com/superpi/">http://www.xtremesystems.com/superpi/</a></p>
</blockquote>
<p>linux版本：</p>
<blockquote><p><a title="ftp://pi.super-computing.org/Linux/super_pi.tar.gz" href="ftp://pi.super-computing.org/Linux/super_pi.tar.gz">ftp://pi.super-computing.org/Linux/super_pi.tar.gz</a></p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://marshal.easymorse.com/archives/1074/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>网站迁移到ubuntu8.10前的准备</title>
		<link>http://marshal.easymorse.com/archives/1029</link>
		<comments>http://marshal.easymorse.com/archives/1029#comments</comments>
		<pubDate>Wed, 24 Dec 2008 14:29:49 +0000</pubDate>
		<dc:creator>Marshal</dc:creator>
				<category><![CDATA[计算机技术]]></category>
		<category><![CDATA[discuz]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[建站笔记]]></category>

		<guid isPermaLink="false">http://marshal.easymorse.com/archives/1029</guid>
		<description><![CDATA[目前使用的是ubuntu8.04，有更新到8.10的打算。在虚拟机上安装了ubuntu8.10后，尝试迁移discuz的论坛和wordpress博客。
 
首先是通过phpmyadmin导出discuz和wordpress的sql数据。然后复制二者的php代码。原来二者代码都放在/var目录下，比较乱，也不利于管理。这回统一放在/srv目录下，按照FHS标准中建议的策略，创建了/srv/www目录，用于统一存放所有和www相关的服务。
将discuz和wordpress代码复制到/srv/www目录后，修改权限：
sudo chown -R www-data.www-data /srv/www

这样让apache有足够权限使用里面的文件。
wordpress使用了apache rewrite模块，这里打开该模块：
sudo a2enmod rewrite

另外，需要修改/etc/php5/apache2/php.ini文件，扩大上传文件大小，默认为2M：
upload_max_filesize = 10M

扩大php脚本使用最大内存限制，默认是16M：
memory_limit = 64M 

增加最长执行时间：
max_execution_time = 300

]]></description>
			<content:encoded><![CDATA[<p>目前使用的是ubuntu8.04，有更新到8.10的打算。在虚拟机上安装了ubuntu8.10后，尝试迁移discuz的论坛和wordpress博客。</p>
<p> <span id="more-1029"></span>
<p>首先是通过phpmyadmin导出discuz和wordpress的sql数据。然后复制二者的php代码。原来二者代码都放在/var目录下，比较乱，也不利于管理。这回统一放在/srv目录下，按照FHS标准中建议的策略，创建了/srv/www目录，用于统一存放所有和www相关的服务。</p>
<p>将discuz和wordpress代码复制到/srv/www目录后，修改权限：</p>
<blockquote><p><font color="#333333">sudo chown -R www-data.www-data /srv/www</font></p>
</blockquote>
<p>这样让apache有足够权限使用里面的文件。</p>
<p>wordpress使用了apache rewrite模块，这里打开该模块：</p>
<blockquote><p><font color="#333333">sudo a2enmod rewrite</font></p>
</blockquote>
<p>另外，需要修改/etc/php5/apache2/php.ini文件，扩大上传文件大小，默认为2M：</p>
<blockquote><p>upload_max_filesize = 10M</p>
</blockquote>
<p>扩大php脚本使用最大内存限制，默认是16M：</p>
<blockquote><p>memory_limit = 64M </p>
</blockquote>
<p>增加最长执行时间：</p>
<blockquote><p>max_execution_time = 300</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://marshal.easymorse.com/archives/1029/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>升级netgear wgr614v7无线路由的firmware</title>
		<link>http://marshal.easymorse.com/archives/964</link>
		<comments>http://marshal.easymorse.com/archives/964#comments</comments>
		<pubDate>Fri, 05 Dec 2008 11:31:53 +0000</pubDate>
		<dc:creator>Marshal</dc:creator>
				<category><![CDATA[计算机技术]]></category>
		<category><![CDATA[建站笔记]]></category>

		<guid isPermaLink="false">http://marshal.easymorse.com/archives/964</guid>
		<description><![CDATA[最近服务器无线网卡经常失效。升级一下无线路由器的firmware试试。不过也可能和最近降温有关，服务器放在阳台上，夜间零度以下。
按照以下链接步骤升级：
http://www.netgear.com.cn/support/release_notes/d30083.asp

&#160;
 
升级前关闭了服务器，升级后，服务器启动有异响，而且telnet速度极慢，基本是一个字一个字的蹦，ping也是好几千毫秒或者丢掉。服务器启动一段时间后，又重启了一次无线路由器，问题消失。ping基本是2-3毫秒。
]]></description>
			<content:encoded><![CDATA[<p>最近服务器无线网卡经常失效。升级一下无线路由器的firmware试试。不过也可能和最近降温有关，服务器放在阳台上，夜间零度以下。</p>
<p>按照以下链接步骤升级：</p>
<blockquote><p><a href="http://www.netgear.com.cn/support/release_notes/d30083.asp">http://www.netgear.com.cn/support/release_notes/d30083.asp</a></p>
</blockquote>
<p>&#160;</p>
<p> <span id="more-964"></span>
<p>升级前关闭了服务器，升级后，服务器启动有异响，而且telnet速度极慢，基本是一个字一个字的蹦，ping也是好几千毫秒或者丢掉。服务器启动一段时间后，又重启了一次无线路由器，问题消失。ping基本是2-3毫秒。</p>
]]></content:encoded>
			<wfw:commentRss>http://marshal.easymorse.com/archives/964/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
