<?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; Domain</title>
	<atom:link href="http://www.crazylemon.net/tag/domain/feed" rel="self" type="application/rss+xml" />
	<link>http://www.crazylemon.net</link>
	<description>上帝无用，天使无用</description>
	<lastBuildDate>Thu, 17 Nov 2011 19:39:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>相对链接和绝对链接的比较（老外）</title>
		<link>http://www.crazylemon.net/seo/3712.html</link>
		<comments>http://www.crazylemon.net/seo/3712.html#comments</comments>
		<pubDate>Wed, 03 Nov 2010 13:50:43 +0000</pubDate>
		<dc:creator>CrazyLemon</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Domain]]></category>
		<category><![CDATA[get]]></category>
		<category><![CDATA[Link]]></category>
		<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://www.crazylemon.net/?p=3712</guid>
		<description><![CDATA[To some SEO questions there are no definitive answers unfortunately. Using absolute or relative URLs to interlink related site subpages is just such a question. Many SEOs will tell you there is no difference and the main thing is to be consistent with your choice. Others (they seem to be in majority) support absolute URLs, [...]]]></description>
			<content:encoded><![CDATA[<p>To some SEO questions there are no definitive answers unfortunately. Using absolute or relative URLs to interlink related site subpages is just such a question.</p>
<p>Many SEOs will tell you there is no difference and the main thing is to be consistent with your choice. Others (they seem to be in majority) support absolute URLs, while web developers and designers consider it stupid and irrational.</p>
<p>I did my best to make up the list of all possible pros and cons and leave that for you to decide:</p>
<h3>Absolute URLs for internal interlinking:</h3>
<p>Example: &lt; a href=”http://www.searchenginejournal.com/about-us/4070&#8243;&gt;About SEJ &lt; /a&gt;</p>
<li>are better when <strong>handling canonicalization issues</strong>;</li>
<li>are safer when talking about <strong>site hijacking</strong>;</li>
<li>are safer when<strong> switching to a new CMS</strong>;</li>
<li>will save you in cases <strong>when your content is stolen</strong> and the thief does not take time changing the internal references;</li>
<li>are a better choice if your content is <strong>distributed via email</strong> (you do want your readers to click the internal links and actually <em>get</em> to the page, don’t you?);</li>
<li><em>might</em> be <strong>easier for search engines to follow</strong> as they resolve all relative URLs to absolute ones before following them.<br />
<h3>Relative URLs for internal interlinking:</h3>
<p>(First, a short definition of a relative URL)</p>
<blockquote><p>URL whose location is specified relative to the address of the base document in which the URL resides. It provides a shorthand way to refer to files or resources that use the same protocol, domain name, or directory path as the current document. (source)</p></blockquote>
<p>Example: &lt; a href=”/about-us/4070&#8243;&gt;About SEJ &lt; /a&gt;</li>
<li>make it easy <strong>to move from one domain to another one</strong>;</li>
<li>make the code shorter which <em>might</em> decrease a page’s download time.</li>
<p>大概意思如下：</p>
<p>绝对路径URL优点是：</p>
<p>1、如果有人采集你的网站，里面的链接还会指向你的网站</p>
<p>2、就算你移动网页位置，里面的链接还是指向正确的URL</p>
<p>缺点</p>
<p>程序不利于测试，因为上面的链接都是绝对链接，放到服务器下才好测试</p>
<p>相对路径优点是：</p>
<p>1、移动内容比较容易</p>
<p>2、测试容易</p>
<p>缺点</p>
<p>1、页面位置发生变化时，链接容易失效</p>
<p>2、更容易被抄袭和采集</p>
<p>不过现在的采集软件大多可以鉴别绝对路径和相对路径。有的会直接去掉这些链接，所以绝对路径也并不是对采集一直都有效果</p>
<p>也有人说相对路径可以减少网页的体积，的确如此，不过也减少不了多少</p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>09/24/2009 -- <a href="http://www.crazylemon.net/google-info/2016.html" title="google 搜索技巧">google 搜索技巧</a> (0)</li><li>09/12/2009 -- <a href="http://www.crazylemon.net/seo/1851.html" title="独立IP对SEO的影响">独立IP对SEO的影响</a> (1)</li><li>08/12/2009 -- <a href="http://www.crazylemon.net/baike/1582.html" title="什么是PAYPAL？如何申请PAYPAL？">什么是PAYPAL？如何申请PAYPAL？</a> (0)</li><li>06/06/2009 -- <a href="http://www.crazylemon.net/nginx/510.html" title="nginx详解">nginx详解</a> (0)</li><li>05/29/2009 -- <a href="http://www.crazylemon.net/php/223.html" title="php写的smtp类">php写的smtp类</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.crazylemon.net/seo/3712.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IIS rewrite 规则设置</title>
		<link>http://www.crazylemon.net/iis-server/3682.html</link>
		<comments>http://www.crazylemon.net/iis-server/3682.html#comments</comments>
		<pubDate>Mon, 25 Oct 2010 09:24:41 +0000</pubDate>
		<dc:creator>CrazyLemon</dc:creator>
				<category><![CDATA[IIS主机]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Domain]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[外贸]]></category>

		<guid isPermaLink="false">http://www.crazylemon.net/?p=3682</guid>
		<description><![CDATA[IIS rewrite方法相对apache方便的.htaccess文件来说，麻烦得多 首先，我们得下载 ISAPI Rewrite 3，ISAPI Rewrite 3 分为商业版和免费的 Lite 版，商业版可以在每个站点放置一个 httpd.ini 来单独设置规则，免费版只能将规则写到安装目录下的 httpd.conf 文件中，作用于全局。 将下载的 IIS Rewrite 组件解压，放到适当的目录（如 C:Rewrite）下。 在“IIS管理器”里选择网站，右键，属性。 选择“ISAPI”，点击“添加”。 填入筛选器名称，如“rewrite”。 可执行文件下方点击“浏览”，选择刚才解压的Rewrite组件位置，Rewrite.dll。 确认选择正确后，点击“确定”。点击“确定”，完成筛选器添加。 重启IIS。 重启IIS后，再次选择站点，右键，属性，看到如下所示向上的绿箭头，说明 IIS Rewrite 成功添加并运行。 记得添加完筛选器一定要重启IIS，否则无法生效。  ISAPI Rewrite免费版只能将规则写到ISAPI Rewrite安装目录下的 httpd.conf 文件中，一些规则写法摘抄如下： 1、将“domain.com”301重定向到“www.domain.com” RewriteEngine on RewriteCond %{HTTPS} (on)? RewriteCond %{HTTP:Host} ^(?!www.)(.+)$ [NC] RewriteCond %{REQUEST_URI} (.+) RewriteRule .? http(?%1s)://www.%2%3 [R=301,L] 2、301重定向到另一个域名 RewriteCond %{HTTP:Host} [...]]]></description>
			<content:encoded><![CDATA[<p>IIS rewrite方法相对apache方便的.htaccess文件来说，麻烦得多</p>
<p>首先，我们得下载 ISAPI Rewrite 3，ISAPI Rewrite 3 分为商业版和免费的 Lite 版，商业版可以在每个站点放置一个 httpd.ini 来单独设置规则，免费版只能将规则写到安装目录下的 httpd.conf 文件中，作用于全局。</p>
<p>将下载的 IIS Rewrite 组件解压，放到适当的目录（如 C:Rewrite）下。</p>
<p>在“IIS管理器”里选择网站，右键，属性。</p>
<p>选择“ISAPI”，点击“添加”。</p>
<p>填入筛选器名称，如“rewrite”。</p>
<p>可执行文件下方点击“浏览”，选择刚才解压的Rewrite组件位置，Rewrite.dll。</p>
<p>确认选择正确后，点击“确定”。点击“确定”，完成筛选器添加。</p>
<p>重启IIS。</p>
<p>重启IIS后，再次选择站点，右键，属性，看到如下所示向上的绿箭头，说明 IIS Rewrite 成功添加并运行。</p>
<p>记得添加完筛选器一定要重启IIS，否则无法生效。</p>
<p> ISAPI Rewrite免费版只能将规则写到ISAPI Rewrite安装目录下的 httpd.conf 文件中，一些规则写法摘抄如下：</p>
<p>1、将“domain.com”301重定向到“www.domain.com”</p>
<p>RewriteEngine on<br />
RewriteCond %{HTTPS} (on)?<br />
RewriteCond %{HTTP:Host} ^(?!www.)(.+)$ [NC]<br />
RewriteCond %{REQUEST_URI} (.+)<br />
RewriteRule .? http(?%1s)://www.%2%3 [R=301,L]</p>
<p>2、301重定向到另一个域名</p>
<p>RewriteCond %{HTTP:Host} ^www.domain.com$<br />
RewriteRule (.*) http://www.domain.com$1 [NC,R=301]</p>
<p>3、301重定向单个页面</p>
<p>RewriteRule ^/oldpage.htm$ http://www.domain.com/newpage.html [R=301,L]</p>
<p>4、针对某些ASP外贸网站，将地址重写成多带有一个问号的</p>
<p>RewriteRule /(.*)/(.*)\.html /$1/?$2\.html</p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>11/07/2009 -- <a href="http://www.crazylemon.net/apache/2400.html" title="Apache mod_rewrite模块中RewriteCond和RewriteRule的指令格式">Apache mod_rewrite模块中RewriteCond和RewriteRule的指令格式</a> (6)</li><li>09/30/2010 -- <a href="http://www.crazylemon.net/windows/3561.html" title="Zen Cart整合WordPress之Wordpress on ZenCart安装">Zen Cart整合WordPress之Wordpress on ZenCart安装</a> (0)</li><li>01/20/2010 -- <a href="http://www.crazylemon.net/apache/2816.html" title="使用.htaccess将网站首页301重定向到子页面">使用.htaccess将网站首页301重定向到子页面</a> (1)</li><li>07/08/2009 -- <a href="http://www.crazylemon.net/wordpress/1050.html" title="分析WordPress的Rewrite机制">分析WordPress的Rewrite机制</a> (0)</li><li>06/06/2009 -- <a href="http://www.crazylemon.net/nginx/504.html" title="Nginx的WordPress配置">Nginx的WordPress配置</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.crazylemon.net/iis-server/3682.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>zen cart SEO urls转换特殊字符</title>
		<link>http://www.crazylemon.net/zencart/3623.html</link>
		<comments>http://www.crazylemon.net/zencart/3623.html#comments</comments>
		<pubDate>Tue, 19 Oct 2010 05:10:50 +0000</pubDate>
		<dc:creator>CrazyLemon</dc:creator>
				<category><![CDATA[ZenCart]]></category>
		<category><![CDATA[Domain]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.crazylemon.net/?p=3623</guid>
		<description><![CDATA[zen cart中如果使用了seo urls，并且语言为亚洲语系，将无法识别产品目录及产品名称上的非英文字符 即如果产品目录名或产品名中的非英文字符会被自动去掉，如果名称中没包括英文字符，那么生成的链接将会是 http://www.yourdomain.com/-c-123.html或http://www.yourdomain.com/-p-123.html 解决方法，到后台SEO URLs设置里，有个Enter special character conversions功能，里面可以转换特殊字符为英文字符 写法如：バーバリ=&#62;burberry,を入力してください=&#62;burberry 这样，在生成静态地址时，可以自动转换这些特殊字符到你想要的英文关键字，而不是什么都没有 相关日志11/03/2010 -- 相对链接和绝对链接的比较（老外） (0)10/25/2010 -- IIS rewrite 规则设置 (0)09/30/2010 -- Zen Cart整合WordPress之Wordpress on ZenCart安装 (0)09/09/2010 -- 网站子目录地址后要不要斜杠 (3)08/06/2010 -- 上一篇关于Ecpss跳转的文章成功了 (0)]]></description>
			<content:encoded><![CDATA[<p>zen cart中如果使用了seo urls，并且语言为亚洲语系，将无法识别产品目录及产品名称上的非英文字符</p>
<p>即如果产品目录名或产品名中的非英文字符会被自动去掉，如果名称中没包括英文字符，那么生成的链接将会是</p>
<p><a href="http://www.yourdomain.com/-c-123.html">http://www.yourdomain.com/-c-123.html</a>或<a href="http://www.yourdomain.com/-c-123.html">http://www.yourdomain.com/-p-123.html</a></p>
<p>解决方法，到后台SEO URLs设置里，有个Enter special character conversions功能，里面可以转换特殊字符为英文字符</p>
<p>写法如：バーバリ=&gt;burberry,を入力してください=&gt;burberry</p>
<p>这样，在生成静态地址时，可以自动转换这些特殊字符到你想要的英文关键字，而不是什么都没有</p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>11/03/2010 -- <a href="http://www.crazylemon.net/seo/3712.html" title="相对链接和绝对链接的比较（老外）">相对链接和绝对链接的比较（老外）</a> (0)</li><li>10/25/2010 -- <a href="http://www.crazylemon.net/iis-server/3682.html" title="IIS rewrite 规则设置">IIS rewrite 规则设置</a> (0)</li><li>09/30/2010 -- <a href="http://www.crazylemon.net/windows/3561.html" title="Zen Cart整合WordPress之Wordpress on ZenCart安装">Zen Cart整合WordPress之Wordpress on ZenCart安装</a> (0)</li><li>09/09/2010 -- <a href="http://www.crazylemon.net/seo/3483.html" title="网站子目录地址后要不要斜杠">网站子目录地址后要不要斜杠</a> (3)</li><li>08/06/2010 -- <a href="http://www.crazylemon.net/seo/3360.html" title="上一篇关于Ecpss跳转的文章成功了">上一篇关于Ecpss跳转的文章成功了</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.crazylemon.net/zencart/3623.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>DNSPOD API升级</title>
		<link>http://www.crazylemon.net/php/3603.html</link>
		<comments>http://www.crazylemon.net/php/3603.html#comments</comments>
		<pubDate>Fri, 15 Oct 2010 08:52:53 +0000</pubDate>
		<dc:creator>CrazyLemon</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Charset]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[DNSPod]]></category>
		<category><![CDATA[Domain]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[升级]]></category>
		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://www.crazylemon.net/?p=3603</guid>
		<description><![CDATA[最近DNSPOD API升级了，改动比较大，之前写的一个整理的dnspod接口类还可以正常使用，但调用参数要作很大更改，主要原因是升级后Domain.List、Record.List等接口返回的数组结构和提交参数值发生了变化。 主要更改有： Domain.List返回的数组去掉了domain一级，Record.List返回的数组去掉了record一级，调用时要相应去掉。 record_line参数值作了改动，原本是英文，如default、edu等，现在改为中文，如默认、教育网等；改为中文，真是个退步，因为编码问题，参数提交和返回时都要求在UTF-8环境下，即用web界面调用时，charset要为UTF-8，源代码也要以utf-8格式保存，避免乱码和造成提交失败。 其它的问题暂时没发现，因为只要能添加删除域名和记录，就行了。 另外，DNSPOD官方文档要求的使用https方式请求并不是强制的，所以原来的http://www.dnspod.com/API/地址还是可以用，其实如果非要用https的话，可能还会遇到服务器CURL配置的问题，至少我的初始配置无法执行。 DNSPOD的API调用限制是一小时内不能超过120次，这个不是针对帐号而是针对IP，所以本地调用受限时，急的话可以切换个IP再试。 相关日志10/15/2010 -- MySQL数据库编码问题之数据转换 (0)06/29/2010 -- wordpress3.0发布，支持多站点 (1)06/10/2009 -- 国内八家域名注册商优缺点比较 (6)05/29/2009 -- 一个整理的dnspod接口类 (1)08/10/2010 -- 国内仿牌域名也存在很大风险 (3)]]></description>
			<content:encoded><![CDATA[<p>最近<strong>DNSPOD API</strong>升级了，改动比较大，之前写的<a title="猛击查看 一个整理的dnspod接口类 的详细内容" rel="bookmark" href="http://www.crazylemon.net/php/220.html">一个整理的dnspod接口类</a>还可以正常使用，但调用参数要作很大更改，主要原因是升级后Domain.List、Record.List等接口返回的数组结构和提交参数值发生了变化。</p>
<p>主要更改有：</p>
<p>Domain.List返回的数组去掉了domain一级，Record.List返回的数组去掉了record一级，调用时要相应去掉。</p>
<p>record_line参数值作了改动，原本是英文，如default、edu等，现在改为中文，如默认、教育网等；改为中文，真是个退步，因为编码问题，参数提交和返回时都要求在UTF-8环境下，即用web界面调用时，charset要为UTF-8，源代码也要以utf-8格式保存，避免乱码和造成提交失败。</p>
<p>其它的问题暂时没发现，因为只要能添加删除域名和记录，就行了。</p>
<p>另外，DNSPOD官方文档要求的使用https方式请求并不是强制的，所以原来的http://www.dnspod.com/API/地址还是可以用，其实如果非要用https的话，可能还会遇到服务器CURL配置的问题，至少我的初始配置无法执行。</p>
<p>DNSPOD的API调用限制是一小时内不能超过120次，这个不是针对帐号而是针对IP，所以本地调用受限时，急的话可以切换个IP再试。</p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>10/15/2010 -- <a href="http://www.crazylemon.net/mysql/3609.html" title="MySQL数据库编码问题之数据转换">MySQL数据库编码问题之数据转换</a> (0)</li><li>06/29/2010 -- <a href="http://www.crazylemon.net/wordpress/3239.html" title="wordpress3.0发布，支持多站点">wordpress3.0发布，支持多站点</a> (1)</li><li>06/10/2009 -- <a href="http://www.crazylemon.net/work/591.html" title="国内八家域名注册商优缺点比较 ">国内八家域名注册商优缺点比较 </a> (6)</li><li>05/29/2009 -- <a href="http://www.crazylemon.net/php/220.html" title="一个整理的dnspod接口类">一个整理的dnspod接口类</a> (1)</li><li>08/10/2010 -- <a href="http://www.crazylemon.net/waimao/3383.html" title="国内仿牌域名也存在很大风险">国内仿牌域名也存在很大风险</a> (3)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.crazylemon.net/php/3603.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Zen Cart整合WordPress之WordPress on ZenCart安装</title>
		<link>http://www.crazylemon.net/windows/3561.html</link>
		<comments>http://www.crazylemon.net/windows/3561.html#comments</comments>
		<pubDate>Thu, 30 Sep 2010 14:07:10 +0000</pubDate>
		<dc:creator>CrazyLemon</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[ZenCart]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Domain]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[Html]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[rewrite]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[word]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.crazylemon.net/?p=3561</guid>
		<description><![CDATA[第一步，安装Wordpress 把Wordpress解压到你的ZenCart目录下，然后把Wordpress的文件夹名改，比如wp，然后按正常步骤安装wordpress，这一步的安装和普通的Wordpress安装没啥区别。 第二步：设置Wordpress 在Wordpress的后台设置一下，setting -&#62; General -&#62; WordPress address (URL)，这个保持原样，即安装的wordpress真实地址，如http://www.yourdomain.com/wp。 把Site address (URL)改为Zen Cart整合wordpress页面要调用的地址，如http://www.yourdomain.com/blog，如果这个地址和真实的wordpress地址一样的话，访问时就直接跑到博客上了，无法实现整合；把主题设为WOZ默认主题。 第三步：上传WOZ的文件 建议用ftp直接覆盖： 把WOZ解压后的ZC_ROOT目录下的文件上传到服务器Zen-cart的安装目录下。 把WOZ解压后的WP_ROOT目录下的文件上传到服务器WordPress的安装目录下。 第四步：Zen Cart后台设置 按照Wordpress on ZenCart模块的安装说明，打开Zen Cart后台Admin &#62; tools &#62; WOZ Manager，设置好wordpress的绝对路径，如/home/yourname/public_html/wp/ 记住，这个路径得是你服务器上的绝对路径。 第五步：布局设置 在Zen Cart后台管理面板的admin panel › tools › Layout Boxes Controller里，选择打开你需要的Wordpress侧栏框。所有和Wordpress有关的侧栏框都是以WP_XXX格式存在的。 第六步：地址重写设置 wordpress可以按照你喜欢的伪静态方式进行重写，wordpress根目录下的.htaccess内容如下： # BEGIN WordPress &#60;IfModule mod_rewrite.c&#62; RewriteEngine On RewriteBase /wp/ RewriteRule ^index\.php$ &#8211; [L] [...]]]></description>
			<content:encoded><![CDATA[<p><strong>第一步，安装Wordpress</strong></p>
<p>把Wordpress解压到你的ZenCart目录下，然后把Wordpress的文件夹名改，比如wp，然后按正常步骤安装wordpress，这一步的安装和普通的Wordpress安装没啥区别。</p>
<p><strong>第二步：设置Wordpress</strong></p>
<p>在Wordpress的后台设置一下，setting -&gt; General -&gt; <label for="siteurl">WordPress address (URL)，这个保持原样，即安装的wordpress真实地址，如http://www.yourdomain.com/wp。</label></p>
<p><strong><label for="siteurl"></label></strong>把<label for="home">Site address (URL)</label>改为Zen Cart整合wordpress页面要调用的地址，如http://www.yourdomain.com/blog，如果这个地址和真实的wordpress地址一样的话，访问时就直接跑到博客上了，无法实现整合；把主题设为WOZ默认主题。</p>
<p><strong>第三步：上传WOZ的文件</strong></p>
<p>建议用ftp直接覆盖：</p>
<p>把WOZ解压后的<strong>ZC_ROOT</strong>目录下的文件上传到服务器Zen-cart的安装目录下。<br />
把WOZ解压后的<strong>WP_ROOT</strong>目录下的文件上传到服务器WordPress的安装目录下。</p>
<p><strong>第四步：Zen Cart后台设置</strong></p>
<p>按照Wordpress on ZenCart模块的安装说明，打开Zen Cart后台Admin &gt; tools &gt; WOZ Manager，设置好wordpress的绝对路径，如/home/yourname/public_html/wp/</p>
<p>记住，<strong>这个路径得是你服务器上的绝对路径</strong>。</p>
<p><strong>第五步：布局设置</strong></p>
<p>在Zen Cart后台管理面板的<strong>admin panel › tools › Layout Boxes Controller</strong>里，选择打开你需要的Wordpress侧栏框。所有和Wordpress有关的侧栏框都是以WP_XXX格式存在的。</p>
<p>第六步：地址重写设置</p>
<p>wordpress可以按照你喜欢的伪静态方式进行重写，wordpress根目录下的.htaccess内容如下：</p>
<p># BEGIN WordPress<br />
&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
RewriteBase /wp/<br />
RewriteRule ^index\.php$ &#8211; [L]<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /wp/index.php [L]<br />
&lt;/IfModule&gt;<br />
# END WordPress</p>
<p>Zen Cart的.htaccess重写规则需加入如下内容：</p>
<p># BEGIN WordPress<br />
RewriteRule ^blog/?$ index\.php?main_page=wordpress&amp;%{QUERY_STRING} [L]<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . index\.php?main_page=wordpress [L]<br />
# END WordPress‘</p>
<p>即重写/blog/子目录到整合wordpress的请求页面index.php?main_page=wordpress</p>
<p><strong>第七步：检查</strong><strong><br />
</strong>现在你可以通过</p>
<p><strong>http://www.yourdomain.com/index.php?main_page=wordpress</strong></p>
<p><strong>或</strong></p>
<p><strong>http://www.yourdomain.com/blog</strong></p>
<p>这个网址来访问你的Wordpress了。<br />
如果你能在Zen Cart中栏看到Wordpress，则表明你已经把Wordpress集成到了ZenCart里了。</p>
<p>作者和网上的教程有点误区。。。搞了我半天</p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>06/06/2009 -- <a href="http://www.crazylemon.net/nginx/504.html" title="Nginx的WordPress配置">Nginx的WordPress配置</a> (0)</li><li>07/08/2009 -- <a href="http://www.crazylemon.net/wordpress/1050.html" title="分析WordPress的Rewrite机制">分析WordPress的Rewrite机制</a> (0)</li><li>09/10/2009 -- <a href="http://www.crazylemon.net/apache/1796.html" title="Apache服务器wordpress设置永久连接后怎么去掉INDEX.PHP">Apache服务器wordpress设置永久连接后怎么去掉INDEX.PHP</a> (1)</li><li>07/18/2009 -- <a href="http://www.crazylemon.net/web/1239.html" title=".htaccess使用指南">.htaccess使用指南</a> (0)</li><li>06/06/2009 -- <a href="http://www.crazylemon.net/nginx/510.html" title="nginx详解">nginx详解</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.crazylemon.net/windows/3561.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>国外大虚拟主机商的续费陷阱（bluehost/IXwebhosting）</title>
		<link>http://www.crazylemon.net/web/3536.html</link>
		<comments>http://www.crazylemon.net/web/3536.html#comments</comments>
		<pubDate>Sat, 25 Sep 2010 06:15:21 +0000</pubDate>
		<dc:creator>CrazyLemon</dc:creator>
				<category><![CDATA[虚拟主机]]></category>
		<category><![CDATA[Domain]]></category>
		<category><![CDATA[外贸]]></category>

		<guid isPermaLink="false">http://www.crazylemon.net/?p=3536</guid>
		<description><![CDATA[独立从事网络工作，大概是从去年的这个时候开始的，所以到这段时间，有多个国外的虚拟主机需要续费，主要是bluehost和IXwebhosting。 这些主机在新购时有优惠，比如bluehost只要6.95$/mon，IX是7.95$吧，有点忘了，而且还有优惠码或优惠通道，bluehost可以低至3.95$/mon/两年或4.95$/mon/一年，IX可以抵掉26美金 但续费时就没这么好了，bluehost要8.95$/mon，IX也是需要按原价续费，没有任何优惠了 如果不嫌麻烦的话，大可以买个新的，然后将旧数据迁移过去 就此事咨询了bluehost客服，因为这是个挺纠结的问题，为何他们续费价不降一点呢，互惠互利，我也就不用为了省钱而花精力迁数据了 答案是否定的，不仅如此，对方还说买新空间迁数据是不好的，他们会追踪老帐号上的add domain信息，从中使坏，有点威胁的意思。。。应该不会真这么做吧。。。 大部份美国虚拟主机首年都给的是试用价，赚的是以后续费的钱 当然，这些主机不是仿牌空间，做外贸的朋友基本可以不考虑了 相关日志10/25/2010 -- IIS rewrite 规则设置 (0)04/15/2010 -- 欢迎访问 xxx！ (0)12/01/2009 -- 域名后缀大全-外贸充电 (0)11/11/2009 -- 外贸仿牌虚拟主机测试 (1)10/17/2009 -- bluehost等主机商的权限控制 (0)]]></description>
			<content:encoded><![CDATA[<p>独立从事网络工作，大概是从去年的这个时候开始的，所以到这段时间，有多个国外的虚拟主机需要续费，主要是bluehost和IXwebhosting。</p>
<p>这些主机在新购时有优惠，比如bluehost只要6.95$/mon，IX是7.95$吧，有点忘了，而且还有优惠码或优惠通道，bluehost可以低至3.95$/mon/两年或4.95$/mon/一年，IX可以抵掉26美金</p>
<p>但续费时就没这么好了，bluehost要8.95$/mon，IX也是需要按原价续费，没有任何优惠了</p>
<p>如果不嫌麻烦的话，大可以买个新的，然后将旧数据迁移过去</p>
<p>就此事咨询了bluehost客服，因为这是个挺纠结的问题，为何他们续费价不降一点呢，互惠互利，我也就不用为了省钱而花精力迁数据了</p>
<p>答案是否定的，不仅如此，对方还说买新空间迁数据是不好的，他们会追踪老帐号上的add domain信息，从中使坏，有点威胁的意思。。。应该不会真这么做吧。。。</p>
<p>大部份美国虚拟主机首年都给的是试用价，赚的是以后续费的钱</p>
<p>当然，这些主机不是<a title="仿牌空间" href="http://www.crazylemon.net">仿牌空间</a>，做外贸的朋友基本可以不考虑了</p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>10/25/2010 -- <a href="http://www.crazylemon.net/iis-server/3682.html" title="IIS rewrite 规则设置">IIS rewrite 规则设置</a> (0)</li><li>04/15/2010 -- <a href="http://www.crazylemon.net/web/3092.html" title="欢迎访问 xxx！">欢迎访问 xxx！</a> (0)</li><li>12/01/2009 -- <a href="http://www.crazylemon.net/work/2604.html" title="域名后缀大全-外贸充电">域名后缀大全-外贸充电</a> (0)</li><li>11/11/2009 -- <a href="http://www.crazylemon.net/web/2425.html" title="外贸仿牌虚拟主机测试">外贸仿牌虚拟主机测试</a> (1)</li><li>10/17/2009 -- <a href="http://www.crazylemon.net/web/2226.html" title="bluehost等主机商的权限控制">bluehost等主机商的权限控制</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.crazylemon.net/web/3536.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>如何让cPanel/WHM有多个共享IP</title>
		<link>http://www.crazylemon.net/web/3529.html</link>
		<comments>http://www.crazylemon.net/web/3529.html#comments</comments>
		<pubDate>Mon, 20 Sep 2010 17:45:19 +0000</pubDate>
		<dc:creator>CrazyLemon</dc:creator>
				<category><![CDATA[虚拟主机]]></category>
		<category><![CDATA[Domain]]></category>
		<category><![CDATA[ip]]></category>

		<guid isPermaLink="false">http://www.crazylemon.net/?p=3529</guid>
		<description><![CDATA[一般的，一个cPanel/WHM系统只能有一个共享IP，其它的都会作为独立IP只能分配给一个cPanel帐户。 要怎么样才能让其它IP也能共享给多个cPanel帐户，从而分散所有IP上的网站密集度呢？ 可以利用reseller功能来实现，具体如下，不多说了： By default, WHM/cPanel allows only one shared IP while the rest are exclusive and can be used for only one domain. However, there is a way to have multiple shared IPs so that you could have spread out domains across all of the IPs. This is accomplished by using the reseller option [...]]]></description>
			<content:encoded><![CDATA[<p>一般的，一个cPanel/WHM系统只能有一个共享IP，其它的都会作为独立IP只能分配给一个cPanel帐户。</p>
<p>要怎么样才能让其它IP也能共享给多个cPanel帐户，从而分散所有IP上的网站密集度呢？</p>
<p>可以利用reseller功能来实现，具体如下，不多说了：</p>
<div id="post_message_423">By default, WHM/cPanel allows only one shared IP while the rest are exclusive and can be used for only one domain. However, there is a way to have multiple shared IPs so that you could have spread out domains across all of the IPs.</p>
<p>This is accomplished by using the reseller option in WHM. You&#8217;ll need to create a reseller and assign an IP to the reseller which will become the shared IP for that account. You&#8217;ll need to login to WHM as that reseller in order to be able to assign the domains to that shared IP and to do all future administration.</p>
<p>Once the IP has been assigned to a reseller, WHM will mark it as used and not allow you to assign it to another reseller or as an exclusive IP. You can also assign additional IPs to the reseller for domains which will need their own IP for SSL certificates.</p></div>
<p><!-- / message --></p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>10/15/2010 -- <a href="http://www.crazylemon.net/php/3603.html" title="DNSPOD API升级">DNSPOD API升级</a> (5)</li><li>08/31/2010 -- <a href="http://www.crazylemon.net/work/3449.html" title="域名停放">域名停放</a> (0)</li><li>07/21/2010 -- <a href="http://www.crazylemon.net/linux/3282.html" title="CentOS 5.x系统服务优化详解">CentOS 5.x系统服务优化详解</a> (0)</li><li>06/29/2010 -- <a href="http://www.crazylemon.net/wordpress/3239.html" title="wordpress3.0发布，支持多站点">wordpress3.0发布，支持多站点</a> (1)</li><li>05/12/2010 -- <a href="http://www.crazylemon.net/work/3148.html" title="全球的whois服务器列表">全球的whois服务器列表</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.crazylemon.net/web/3529.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>写.htaccess rewrite规则需严谨</title>
		<link>http://www.crazylemon.net/apache/3493.html</link>
		<comments>http://www.crazylemon.net/apache/3493.html#comments</comments>
		<pubDate>Fri, 10 Sep 2010 06:56:29 +0000</pubDate>
		<dc:creator>CrazyLemon</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Domain]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[rewrite]]></category>

		<guid isPermaLink="false">http://www.crazylemon.net/?p=3493</guid>
		<description><![CDATA[还是lightinthebox网站，因为其重写规则进行了改进，产品目录的地址一般是如下格式： http://www.yourdomain.com/xxx-xxx_c123 .htaccess里面的规则相应为： RewriteRule ^(.*)_c([0-9]+)$ index\.php?main_page=index&#38;cPath=$2&#38;%{QUERY_STRING} [L] 但今天见到一仿lightinthebox模板网站的.htaccess里这条规则却写成了 RewriteRule ^(.*)_c(.*)$ index\.php?main_page=index&#38;cPath=$2&#38;%{QUERY_STRING} [L] 导致的后果是，后台只要带有”_c”字符的地址，都无法正常打开，而是直接跳转到前台了，如Layout Box Controller等功能 所以，写.htaccess rewirte规则时，要尽量严谨，防止不应该被重写的地址被重写 相关日志09/30/2010 -- Zen Cart整合WordPress之Wordpress on ZenCart安装 (0)09/11/2009 -- 301重定向进行URL标准化设置 (1)10/25/2010 -- IIS rewrite 规则设置 (0)01/20/2010 -- 使用.htaccess将网站首页301重定向到子页面 (1)09/10/2009 -- Apache服务器wordpress设置永久连接后怎么去掉INDEX.PHP (1)]]></description>
			<content:encoded><![CDATA[<p>还是<a href="http://l.crazylemon.net/" target="_blank">lightinthebox网站</a>，因为其重写规则进行了改进，产品目录的地址一般是如下格式：</p>
<p><a href="http://www.yourdomain.com/xxx-xxx_c123">http://www.yourdomain.com/xxx-xxx_c123</a></p>
<p>.htaccess里面的规则相应为：</p>
<p>RewriteRule ^(.*)_c([0-9]+)$ index\.php?main_page=index&amp;cPath=$2&amp;%{QUERY_STRING} [L]</p>
<p>但今天见到一<a href="http://www.crazylemon.net/waimaowangzhan">仿lightinthebox模板</a>网站的.htaccess里这条规则却写成了</p>
<p>RewriteRule ^(.*)_c(.*)$ index\.php?main_page=index&amp;cPath=$2&amp;%{QUERY_STRING} [L]</p>
<p>导致的后果是，后台只要带有”_c”字符的地址，都无法正常打开，而是直接跳转到前台了，如Layout Box Controller等功能</p>
<p>所以，写<strong>.htaccess rewirte</strong>规则时，要尽量严谨，防止不应该被重写的地址被重写</p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>09/30/2010 -- <a href="http://www.crazylemon.net/windows/3561.html" title="Zen Cart整合WordPress之Wordpress on ZenCart安装">Zen Cart整合WordPress之Wordpress on ZenCart安装</a> (0)</li><li>09/11/2009 -- <a href="http://www.crazylemon.net/seo/1812.html" title="301重定向进行URL标准化设置">301重定向进行URL标准化设置</a> (1)</li><li>10/25/2010 -- <a href="http://www.crazylemon.net/iis-server/3682.html" title="IIS rewrite 规则设置">IIS rewrite 规则设置</a> (0)</li><li>01/20/2010 -- <a href="http://www.crazylemon.net/apache/2816.html" title="使用.htaccess将网站首页301重定向到子页面">使用.htaccess将网站首页301重定向到子页面</a> (1)</li><li>09/10/2009 -- <a href="http://www.crazylemon.net/apache/1796.html" title="Apache服务器wordpress设置永久连接后怎么去掉INDEX.PHP">Apache服务器wordpress设置永久连接后怎么去掉INDEX.PHP</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.crazylemon.net/apache/3493.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>域名停放</title>
		<link>http://www.crazylemon.net/work/3449.html</link>
		<comments>http://www.crazylemon.net/work/3449.html#comments</comments>
		<pubDate>Tue, 31 Aug 2010 07:00:25 +0000</pubDate>
		<dc:creator>CrazyLemon</dc:creator>
				<category><![CDATA[工作]]></category>
		<category><![CDATA[Domain]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[Link]]></category>

		<guid isPermaLink="false">http://www.crazylemon.net/?p=3449</guid>
		<description><![CDATA[域名停放服务，英文名称为Domain Parking Services，即利用某个域名解析到一个广告页面，利用该域名的访问者对该页面的访问量或者点击广告页面的次数，来获得收入的一种方式。正常的域名停靠服务应当是依靠自然流量产生的点击或有效弹窗，而非其他作弊流量。 域名停放服务一般是提供域名停放提供商，会做了一程序页面，让你把需要停放的域名解析到他的IP上，程序会根据来访的域名显示你的域名在这广告页面的上方。如果有人通过访问后，有点击广告你将得到收入。 　　所以，有的域名投资者会把域名做停放，达到用空域名赚钱的目的。 　　一些不明的朋友，会发现，好像是许多域名都是同一个人似的，因为他看见页面相似就这样认为了。其实是不同域名爱好者在同一个站做的域名停放。 如果您有一个理想的域名或者带有流量（即：访问量）的域名，但您又不想立即使用域名建立网站，这时您可以选择域名停放服务为您的域名自动生成包含了广告赞助商链接的广告网页，广告赞助商为通过您的域名所带来的广告、点击效果而付费，而您（域名所有者）将从域名停放服务中分享收益 比较出名的域名停靠商有sedo.com等 相关日志04/11/2010 -- 看看，是真的还是假的，ebay没这么夸张吧 (0)04/05/2010 -- 如何写robots.txt？(摘点石) (1)12/01/2009 -- Google注册域名大全 (0)11/07/2009 -- Apache mod_rewrite模块中RewriteCond和RewriteRule的指令格式 (6)09/12/2009 -- 独立IP对SEO的影响 (1)]]></description>
			<content:encoded><![CDATA[<p>域名停放服务，英文名称为Domain Parking Services，即利用某个域名解析到一个广告页面，利用该域名的访问者对该页面的访问量或者点击广告页面的次数，来获得收入的一种方式。正常的域名停靠服务应当是依靠自然流量产生的点击或有效弹窗，而非其他作弊流量。</p>
<p>域名停放服务一般是提供域名停放提供商，会做了一程序页面，让你把需要停放的域名解析到他的IP上，程序会根据来访的域名显示你的域名在这广告页面的上方。如果有人通过访问后，有点击广告你将得到收入。 　　所以，有的域名投资者会把域名做停放，达到用空域名赚钱的目的。 　　一些不明的朋友，会发现，好像是许多域名都是同一个人似的，因为他看见页面相似就这样认为了。其实是不同域名爱好者在同一个站做的域名停放。</p>
<p>如果您有一个理想的域名或者带有流量（即：访问量）的域名，但您又不想立即使用域名建立网站，这时您可以选择域名停放服务为您的域名自动生成包含了广告赞助商链接的广告网页，广告赞助商为通过您的域名所带来的广告、点击效果而付费，而您（域名所有者）将从域名停放服务中分享收益</p>
<p>比较出名的域名停靠商有sedo.com等</p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>04/11/2010 -- <a href="http://www.crazylemon.net/waimao/3074.html" title="看看，是真的还是假的，ebay没这么夸张吧">看看，是真的还是假的，ebay没这么夸张吧</a> (0)</li><li>04/05/2010 -- <a href="http://www.crazylemon.net/seo/3025.html" title="如何写robots.txt？(摘点石)">如何写robots.txt？(摘点石)</a> (1)</li><li>12/01/2009 -- <a href="http://www.crazylemon.net/google-info/2606.html" title="Google注册域名大全">Google注册域名大全</a> (0)</li><li>11/07/2009 -- <a href="http://www.crazylemon.net/apache/2400.html" title="Apache mod_rewrite模块中RewriteCond和RewriteRule的指令格式">Apache mod_rewrite模块中RewriteCond和RewriteRule的指令格式</a> (6)</li><li>09/12/2009 -- <a href="http://www.crazylemon.net/seo/1851.html" title="独立IP对SEO的影响">独立IP对SEO的影响</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.crazylemon.net/work/3449.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS 5.x系统服务优化详解</title>
		<link>http://www.crazylemon.net/linux/3282.html</link>
		<comments>http://www.crazylemon.net/linux/3282.html#comments</comments>
		<pubDate>Tue, 20 Jul 2010 18:46:44 +0000</pubDate>
		<dc:creator>CrazyLemon</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Centos]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Domain]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[sendmail]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[telnet]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[VSftp]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[yum]]></category>
		<category><![CDATA[优化]]></category>
		<category><![CDATA[升级]]></category>

		<guid isPermaLink="false">http://www.crazylemon.net/?p=3282</guid>
		<description><![CDATA[下面的建议主要是针对 Linux 单机服务器的角色来说明的，不是针对桌面环境 服务名称 功能简介 acpid (系统)进阶电源管理的介面，这是一个新的电源管理模组， 可以监听来自核心层的电源相关事件而予以回应。 CentOS 的设定档在 /etc/acpi/events/power.conf 中，预设仅有当你按下 power 按钮时，系统会自动关机！ anacron(可关闭) (系统)与循环型的工作排程 cron 有关，可在排程过期后还可以唤醒来继续执行， 设定档在 /etc/anacrontab。 apmd(可关闭) (系统)设定档在 /etc/sysconfig/apmd ，也是电源管理模组！ 可侦测电池电量，当电池电力不足时，可以自动关机以保护电脑主机。 atd (系统)单一的例行性工作排程，抵挡机制的设定档在 /etc/at.{allow,deny} auditd (系统)可以让系统需 SELinux 稽核的讯息写入 /var/log/audit/audit.log 中。若此服务没有启动，则讯息会传给 syslog 管理。 autofs(可关闭) (系统)可用来自动挂载来自网路上的其他伺服器所提供的网路磁碟机 (一般是 NFS)。 不过我们是单机系统，所以目前还没必要这个服务。 avahi-daemon(可关闭) (系统)也是一个用户端的服务，可以透过 Zeroconf 自动的分析与管理网路。 Zeroconf 较常用在笔记型电脑与行动装置上，所以我们可以先关闭他！ bluetooth(可关闭) (系统)用在蓝芽装置的搜寻上，如果 Linux 是当作伺服器使用时， 这个服务可以暂时关闭也没关系！ cpuspeed (系统)可以用来管理 CPU [...]]]></description>
			<content:encoded><![CDATA[<p>下面的建议主要是针对 Linux 单机服务器的角色来说明的，不是针对桌面环境</p>
<p>服务名称 功能简介<br />
acpid (系统)进阶电源管理的介面，这是一个新的电源管理模组， 可以监听来自核心层的电源相关事件而予以回应。 CentOS 的设定档在 /etc/acpi/events/power.conf 中，预设仅有当你按下 power 按钮时，系统会自动关机！</p>
<p>anacron(可关闭) (系统)与循环型的工作排程 cron 有关，可在排程过期后还可以唤醒来继续执行， 设定档在 /etc/anacrontab。</p>
<p>apmd(可关闭) (系统)设定档在 /etc/sysconfig/apmd ，也是电源管理模组！ 可侦测电池电量，当电池电力不足时，可以自动关机以保护电脑主机。</p>
<p>atd (系统)单一的例行性工作排程，抵挡机制的设定档在 /etc/at.{allow,deny}</p>
<p>auditd (系统)可以让系统需 SELinux 稽核的讯息写入 /var/log/audit/audit.log 中。若此服务没有启动，则讯息会传给 syslog 管理。</p>
<p>autofs(可关闭) (系统)可用来自动挂载来自网路上的其他伺服器所提供的网路磁碟机 (一般是 NFS)。 不过我们是单机系统，所以目前还没必要这个服务。</p>
<p>avahi-daemon(可关闭) (系统)也是一个用户端的服务，可以透过 Zeroconf 自动的分析与管理网路。 Zeroconf 较常用在笔记型电脑与行动装置上，所以我们可以先关闭他！</p>
<p>bluetooth(可关闭) (系统)用在蓝芽装置的搜寻上，如果 Linux 是当作伺服器使用时， 这个服务可以暂时关闭也没关系！</p>
<p>cpuspeed (系统)可以用来管理 CPU 的频率功能。若系统闲置时，此项功能可以自动的降低 CPU 频率来节省电量与降低 CPU 温度喔！</p>
<p>crond (系统)系统设定档为 /etc/crontab。</p>
<p>cups(可关闭) (网路)用来管理印表机的服务，可以提供网路连线的功能，有点类似列印伺服器的功能哩！ 你可以在 Linux 本机上面以浏览器的 http://localhost:631 来管理印表机！由于我们目前没有印表机，所以可以暂时关闭他。</p>
<p>firstboot(可关闭) (系统)还记得系统第一次进入图形介面还需要进行一些额外的设定吗？ 就是这个服务的帮忙啦！既然已经安装妥当，现在你可以将这个服务关闭啰。</p>
<p>gpm (系统)在 tty1~tty6 的环境下你竟然可以使用滑鼠功能来复制贴上，就是这个 gpm 提供的能力啦！</p>
<p>haldaemon(可关闭) (系统)通常用在桌上型电脑的环境中，可侦测类似 usb 的装置呢！ 不过，如果是伺服器环境，这个服务倒是可以关闭啦！如果是桌上型电脑，那最好可以启动啰！</p>
<p>hidd(可关闭) (系统)也是蓝芽服务的功能啦！可以提供键盘、滑鼠等蓝芽装置的侦测哩！ 须搭配 bluetooth。伺服器环境倒是不需要此项服务。</p>
<p>hplip(可关闭) (系统)主要是针对 HP 的印表机功能所开发的脚本服务，如果你的环境中并没有 HP 相关设备，这个服务就给他关闭吧！</p>
<p>ip6tables(可关闭) (网路)是针对本机的防火墙功能！这个防火墙主要是针对 IPv6 的版本， 如果你的网路环境并没有 IPv6 的设备，那么这个服务是可以关闭的。</p>
<p>iptables (网路)本机防火墙功能，是核心支援的呢！所以功能与效能都非常棒！当然不能够取消啊！ 只是设定上就得要努力研究啦！我们会在伺服器篇介绍网路相关资讯的。</p>
<p>irqbalance (系统)如果你的系统是多核心的硬体，那么这个服务要启动， 因为它可以自动的分配系统中断 (IRQ) 之类的硬体资源。</p>
<p>isdn(可关闭) (网路)ISDN 是一种宽频设备 (数据机的一种) ，但是在台湾我们比较常使用 ADSL 及光纤设备， 所以这个服务是可以关闭啦。</p>
<p>kudzu(可关闭) (系统)如果你有增加新的硬体时，这个服务可以在开机时自动的侦测硬体， 并且会自动的呼叫相关的设定软体，方便你在开机时就处理好你的硬体啊！</p>
<p>lm_sensors(可关闭) (系统)这个服务可以帮你侦测主机板的相关侦测晶片，举例来说， 某些主机板会主动的侦测 CPU 温度、频率、电压等，这个 lm_sensors 能够将这些温度、频率等数据显示出来喔！</p>
<p>lvm2-monitor (系统)我们已经谈过 LVM 啰！所以我们当然要启动这个服务比较妥当。</p>
<p>mcstrans (系统)与 SELinux 有关的服务，最好也启动啊！</p>
<p>mdmonitor(可关闭) (系统)可以侦测所有软体的状态，暂时似乎也不需要启动这个服务哩！</p>
<p>messagebus(可关闭) (系统)可用来沟通各个软体之间的讯息，有点类似剪贴簿的感觉。 不过在伺服器环境则没有强烈需求就是了。</p>
<p>microcode_ctl(可关闭) (系统)Intel 的 CPU 会提供一个外挂的微指令集提供系统运作， 不过，如果你没有下载 Intel 相关的指令集档案，那么这个服务不需要启动的，也不会影响系统运作。</p>
<p>netfs(可关闭) (网路)可以进行网路磁碟机 (NFS, SMB/CIFS) 的挂载与卸载功能。 目前我们尚未使用网路，因此这个服务可以先关闭。</p>
<p>network (网路)提供网路设定的功能，所以一定要启动的啦！</p>
<p>nfslock(可关闭) (网路)NFS 为一种 Unix like 的网路磁碟机，但在进行档案的分享时， 为了担心同一档案多重编辑的问题，所以会有这个锁住 (lock) 的服务！可以避免同一个档案被两个不同的人编辑时所造成的档案错误问题。</p>
<p>pcscd(可关闭) (系统)智慧卡侦测的服务，可以关闭他啦。</p>
<p>portmap (网路)用在远端程序呼叫的服务，很多服务都使用这个玩意儿来辅助连线的， 因此建议不要取消他，除非你确定你的系统没有使用到任何的 RPC 服务喔！</p>
<p>readahead_early<br />
readahead_later<br />
(可关闭) (系统)在系统开机的时候可以先将某些程式载入到记忆体中，以方便快速的载入， 可加快一些启动的速度。</p>
<p>restorecond (系统)利用 /etc/selinux/restorecond.conf 的设定来判断当新建档案时，该档案的 SELinux 类型应该如何还原。需要注意的是，如果你的系统有很多非正规的 SELinux 档案类型设定时，这个 daemon 最好关闭，否则他会将你设定的 type 修改回预设值。</p>
<p>rpcgssd<br />
rpcidmapd<br />
(可关闭) (网路)与 NFS 有关的用户端功能，在你还没有玩到网路阶段时， 这两个咚咚也能够先取消啦！</p>
<p>sendmail (网路)这就是电子邮件的软体啊！我们想要拥有可寄信的功能时， 这个服务可不能关闭。不过，预设这个服务仅能支援本机的功能，无法收受来自网际网路的邮件喔！</p>
<p>setroubleshoot (系统)一定要启动啊！因为这玩意儿可以将你的 SELinux 相关讯息记录在 /var/log/messages 里面，非常有帮助喔！</p>
<p>smartd (系统)这个服务可以自动的侦测硬碟状态，如果硬碟发生问题的话， 还能够自动的回报给系统管理员，是个非常有帮助的服务喔！不可关闭他啊！</p>
<p>sshd (网路)这个是远端连线伺服器的软体功能， 这个通讯协定比 telnet 好的地方在于 sshd 在传送资料时可以进行加密喔！这个服务不要关闭他啦！</p>
<p>syslog (系统)这个服务可以记录系统所产生的各项讯息， 包括 /var/log/messages 内的几个重要的登录档啊。</p>
<p>xfs(可关闭) (系统)这个是 X Font Server，主要提供图形介面的字型的一个服务， 如果你不启动 X 视窗的话，那么这个服务可以启动。但是如果你有需要用到 X 时，一定要启动这玩意儿，否则图形介面是无法启动的喔。</p>
<p>xinetd (系统)就是 super daemon 啊，不必讲了吧 ^_^</p>
<p>yum-updatesd (可关闭)可以透过 yum 的功能进行软体的线上升级机制， 若有升级的软体释出时，就能够以邮件或者是 syslog 来通知系统管理原来手动升级啊。</p>
<p>上面的服务是 CentOS 5.x 预设有启动的，这些预设启动的服务很多是针对桌面电脑所设计的，所以啰，如果你的 Linux 主机用途是在服务器上面的话，那么有很多服务是可以关闭的啦！如果你还有某些不明白的服务想要关闭的， 请务必要搞清楚该服务的功能为何喔！举例来说，那个 syslog 就不能关闭，如果你关掉他的话，系统就不会记录登录档， 那你的系统所产生的警告讯息就无法记录起来，你将无法进行 debug 喔。</p>
<p>下面继续说明一些可能在你的系统当中的服务，只是预设并没有启动这个服务就是了。只是说明一下， 各服务的用途还是需要您自行查询相关的文章啰。</p>
<p>其他服务的简易说明<br />
服务名称 功能简介<br />
dovecot (网路)可以设定 POP3/IMAP 等收受信件的服务，如果你的 Linux 主机是 email server 才需要这个服务，否则不需要启动他啦！<br />
httpd (网路)这个服务可以让你的 Linux服务器成为 www server 喔！<br />
named (网路)这是域名解析服务器 (Domain Name System) 的服务， 这个服务非常重要，但是设定非常困难！目前应该不需要这个服务啦！<br />
nfs (网路)这就是 Network Filesystem，是 Unix-Like 之间互相作为网路磁碟机的一个功能。<br />
ntpd (网路)服务的全名是 Network Time Protocol ，这个服务可以用来进行网路校时， 让你系统的时间永远都是正确的哩！<br />
smb (网路)这个服务可以让 Linux 模拟成为 Windows 上面的网路上的芳邻。 如果你的 Linux 主机想要做为 Windows 用户端的网路磁碟机服务器，这玩意儿得要好好玩一玩。<br />
squid (网路)作为代理服务器的一个服务，可作为一个区域网路的防火墙之用。<br />
vsftpd (网路)作为档案传输服务器 (FTP) 的服务。</p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>07/21/2010 -- <a href="http://www.crazylemon.net/linux/3279.html" title="CentOS 5 优化方案">CentOS 5 优化方案</a> (1)</li><li>06/06/2009 -- <a href="http://www.crazylemon.net/nginx/510.html" title="nginx详解">nginx详解</a> (0)</li><li>01/21/2009 -- <a href="http://www.crazylemon.net/linux/5.html" title="Linux常用命令大全 ">Linux常用命令大全 </a> (0)</li><li>07/18/2009 -- <a href="http://www.crazylemon.net/web/1239.html" title=".htaccess使用指南">.htaccess使用指南</a> (0)</li><li>06/05/2009 -- <a href="http://www.crazylemon.net/linux/461.html" title="centos 5.2 用 pptpd 架设并配置 vps 服务器完全攻略">centos 5.2 用 pptpd 架设并配置 vps 服务器完全攻略</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.crazylemon.net/linux/3282.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

