<?xml version="1.0" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="css/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>狮子的网志 - 挨踢</title><link>http://www.zaiqiang.com/</link><description>鹤舞白沙 我心飞翔 - </description><generator>RainbowSoft Studio Z-Blog 1.8 Walle Build 100427</generator><language>zh-CN</language><copyright>工业和信息化部备案编号：湘ICP备10024609号-23. Copyright © 2003-2011 狮子的网志. Some Rights Reserved. </copyright><pubDate>Thu, 30 Apr 2026 04:08:13 +0800</pubDate><item><title>互联网的女性主义特征</title><author>stronger@126.com (狮子)</author><link>http://www.zaiqiang.com/c/2013-11-18/internet-typicality.html</link><pubDate>Mon, 18 Nov 2013 15:51:09 +0800</pubDate><guid>http://www.zaiqiang.com/c/2013-11-18/internet-typicality.html</guid><description><![CDATA[<p class="summary">女性只是改变自己，世界并不会发生质的变化；女性对互联网的实质性影响在于，通过推动互联网的女性主义特征的形成，改变了人们的思维方式，从而改变了整个世界。。。</p>]]></description><category>挨踢</category><comments>http://www.zaiqiang.com/c/2013-11-18/internet-typicality.html#comment</comments><wfw:comment>http://www.zaiqiang.com/</wfw:comment><wfw:commentRss>http://www.zaiqiang.com/feed.asp?cmt=410</wfw:commentRss><trackback:ping>http://www.zaiqiang.com/cmd.asp?act=tb&amp;id=410&amp;key=64391727</trackback:ping></item><item><title>MySQL(root用户)密码重置</title><author>stronger@126.com (狮子)</author><link>http://www.zaiqiang.com/c/2013-04-12/409.html</link><pubDate>Fri, 12 Apr 2013 23:50:11 +0800</pubDate><guid>http://www.zaiqiang.com/c/2013-04-12/409.html</guid><description><![CDATA[<p>分别在Windows下和Linux下重置了MYSQL的root的密码： <br />　　<strong><span style="color: #800080">在windows下：</span></strong></p><p>　　1：进入cmd，停止mysql服务：Net stop mysql</p><p>　　&nbsp;&nbsp; 到mysql的安装路径启动mysql，在bin目录下使用mysqld-nt.exe启动，</p><p>　　2：执行：mysqld-nt --skip-grant-tables（窗口会一直停止）<br />　　<br />&nbsp;&nbsp;&nbsp;&nbsp; 3：然后另外打开一个命入令行窗口，执行mysql（或者直接进入Mysql Command Line Cilent），此时无需输入密码即可进入。</p><p>　　Java代码</p><p>　　&gt;use mysql</p><p>　　&gt;update user set password=password(&quot;新密码&quot;) where user=&quot;root&quot;;</p><p>　　&gt;flush privileges;</p><p>　　&gt;exit</p><p>　　4：使用任务管理器，找到mysqld-nt的进程，结束进程!</p><p>　　在重新启动mysql-nt服务，就可以用新密码登录了。</p><p>　　<strong><span style="color: #800080">在linux下：</span></strong></p><p>　　如果 MySQL 正在运行，首先杀之： killall -TERM mysqld。</p><p>　　启动 MySQL ：bin/safe_mysqld --skip-grant-tables &amp;</p><p>　　就可以不需要密码就进入 MySQL 了。</p><p>　　然后就是</p><p>　　Java代码</p><p>　　&gt;use mysql</p><p>　　&gt;update user set password=password(&quot;new_pass&quot;) where user=&quot;root&quot;;</p><p>　　&gt;flush privileges</p><p>　　&gt;use mysql &gt;update user set password=password(&quot;new_pass&quot;) where user=&quot;root&quot;; &gt;flush privileges;</p><p>　　重新杀 MySQL ，用正常方法启动 MySQL 。</p><p>分别在Windows下和Linux下重置了MYSQL的root的密码： <br />　　<strong><span style="color: #800080">在windows下：</span></strong></p><p>　　1：进入cmd，停止mysql服务：Net stop mysql</p><p>　　&nbsp;&nbsp; 到mysql的安装路径启动mysql，在bin目录下使用mysqld-nt.exe启动，</p><p>　　2：执行：mysqld-nt --skip-grant-tables（窗口会一直停止）<br />　　<br />&nbsp;&nbsp;&nbsp;&nbsp; 3：然后另外打开一个命入令行窗口，执行mysql（或者直接进入Mysql Command Line Cilent），此时无需输入密码即可进入。</p><p>　　Java代码</p><p>　　&gt;use mysql</p><p>　　&gt;update user set password=password(&quot;新密码&quot;) where user=&quot;root&quot;;</p><p>　　&gt;flush privileges;</p><p>　　&gt;exit</p><p>　　4：使用任务管理器，找到mysqld-nt的进程，结束进程!</p><p>　　在重新启动mysql-nt服务，就可以用新密码登录了。</p><p>　　<strong><span style="color: #800080">在linux下：</span></strong></p><p>　　如果 MySQL 正在运行，首先杀之： killall -TERM mysqld。</p><p>　　启动 MySQL ：bin/safe_mysqld --skip-grant-tables &amp;</p><p>　　就可以不需要密码就进入 MySQL 了。</p><p>　　然后就是</p><p>　　Java代码</p><p>　　&gt;use mysql</p><p>　　&gt;update user set password=password(&quot;new_pass&quot;) where user=&quot;root&quot;;</p><p>　　&gt;flush privileges</p><p>　　&gt;use mysql &gt;update user set password=password(&quot;new_pass&quot;) where user=&quot;root&quot;; &gt;flush privileges;</p><p>　　重新杀 MySQL ，用正常方法启动 MySQL 。</p>]]></description><category>挨踢</category><comments>http://www.zaiqiang.com/c/2013-04-12/409.html#comment</comments><wfw:comment>http://www.zaiqiang.com/</wfw:comment><wfw:commentRss>http://www.zaiqiang.com/feed.asp?cmt=409</wfw:commentRss><trackback:ping>http://www.zaiqiang.com/cmd.asp?act=tb&amp;id=409&amp;key=b56a2b8c</trackback:ping></item><item><title>如何解决 windows 2003 下 Mysql 启动缓慢的问题？</title><author>stronger@126.com (狮子)</author><link>http://www.zaiqiang.com/c/2011-12-15/406.html</link><pubDate>Thu, 15 Dec 2011 18:31:35 +0800</pubDate><guid>http://www.zaiqiang.com/c/2011-12-15/406.html</guid><description><![CDATA[<p>服务器重启后Mysql 至少要个把小时才能正常使用，网上查了查资料，按如下方法操作，问题得到解决：</p><p>&nbsp;&nbsp; 开始&mdash;&mdash;运行&nbsp;&nbsp; 输入CMD</p><p>&nbsp;&nbsp; 然后再输入&nbsp; del c:\windows\temp\*.* /s /q&nbsp;&nbsp;&nbsp;&nbsp; 回车</p><p>&nbsp;&nbsp; 就会自动删除C:\windows\temp下面所有的临时文件。</p>]]></description><category>挨踢</category><comments>http://www.zaiqiang.com/c/2011-12-15/406.html#comment</comments><wfw:comment>http://www.zaiqiang.com/</wfw:comment><wfw:commentRss>http://www.zaiqiang.com/feed.asp?cmt=406</wfw:commentRss><trackback:ping>http://www.zaiqiang.com/cmd.asp?act=tb&amp;id=406&amp;key=5f823059</trackback:ping></item><item><title>干净卸载SQL Server 2005</title><author>stronger@126.com (狮子)</author><link>http://www.zaiqiang.com/c/2011-04-21/400.html</link><pubDate>Thu, 21 Apr 2011 09:24:40 +0800</pubDate><guid>http://www.zaiqiang.com/c/2011-04-21/400.html</guid><description><![CDATA[<div id="cnblogs_post_body"><p style="text-indent: 2em">1。首先要停止所有的SQL的服务，步骤如下：</p><p style="text-indent: 2em">Control Panel &gt; Administrative Tools &gt; Services &gt; stop all SQL services</p><p style="text-indent: 2em">这一步非常重要，因为如果你不这样做，有些服务在你卸载的时候仍然被占用，这样的话你会卸不干净，或者遇到一些其他的怪问题。在Windows上什么都有可能发生。（在卸载之前先停掉相关服务，这一条也适用于其他软件的卸载。）</p><p style="text-indent: 2em">2。卸载程序</p><p style="text-indent: 2em">通过add and remove program来删除所有的SQL Server 2005相关的应用程序，都删除了，一个都不要留，包括.net framwork（注：这个也一定要删除，要不然安装不会成功，我就惨痛的失败过）统统删掉。</p><p style="text-indent: 2em">SQL Server 2005比较奇怪的一点是，你把这些程序都删除了之后，居然在开始菜单的program里面那些东西都还在，居然还可以点，只是你肯定是连不上数据库了。为什么，天知道，微软知道，记住在Windows下面什么都有可能发生。而且所有的服务都还在那里，一个都没有少。oh, god!~所以只有继续进行第三步。</p><p style="text-indent: 2em">3。手动删除服务</p><p style="text-indent: 2em">所谓道高一尺魔高一丈，自己动手丰衣足食！~我下了一个小软件，这里隆重推荐给大家，叫做SRVINSTW，它可以帮助我们删除所有的删不掉的服务，或者是一些病毒恶意创建的一些服务。该软件很精悍才60多K，不过很好用的说。通过它把Serverics里面所有的关于SQL的服务统统删掉，一个也不要留。</p><p style="text-indent: 2em">4。删除注册表</p><p style="text-indent: 2em">如果不进行这一步，你下次装，他会说你已经安装了什么组件，让你的安装进行不下去，因为他在安装的时候把这些组件都在注册表中进行注册了。所以需要删除注册表中的这些注册信息，但是不要乱删，否则后果自负。其实注册表里面的东西虽然很多，删除这几项里面的东东也就够了。</p><p style="text-indent: 2em">（1）start &gt; run... &gt; regedit</p><p style="text-indent: 2em">（2）HKEY_CURRENT_USER &gt; Software &gt; Microsoft &gt; Microsoft SQL Server整个文件夹一块删，不用手软</p><p style="text-indent: 2em">（3）HKEY_LOCAL_MACHINE &gt; Software &gt; Microsoft &gt; Microsoft SQL Server删,删,删</p><p style="text-indent: 2em">一般来说，应用程序在安装的时候都是在这两项里面注册的，所以如果要删除注册表，不妨可以先试试删除这两项的内容。</p><p style="text-indent: 2em">5。删除残留文件</p><p style="text-indent: 2em">删完注册表，然后就需要删除一些残留的文件和文件夹，因为这些文件夹里面可能会有一些配置文件，所以不删干净你下次装还是用的这个文件的话就会有问题，所以为了安全起见，需要把这些文件也统统删掉。</p><p style="text-indent: 2em">这些文件散落各处，不是很集中。你可以用Search，Key用SQL（注：这一步我没有操作，但是也安装成功了）， 然后找出来一对，你看看相关的都可以删掉。不过最好不要删除那些.dll文件，否则系统起不来后果自负。而且这些文件一般也不是配置文件，所以对你再次安装应该来说不会有什么影响，所以可以不要删除它们。</p><p style="text-indent: 2em">至此，所有的卸载工作就已经告一段落了。最后一步就是重启机器，非常重要，相信大家能够体会到。</p><p style="text-indent: 2em">重起之后就可以重装了。我装了好几遍都是这种方式进行了，目前运行良好。</p><p style="text-indent: 2em">第二：安装SQL2005 跟第一次安装是一样的。</p></div><p><em>来源：bubbledong</em></p>]]></description><category>挨踢</category><comments>http://www.zaiqiang.com/c/2011-04-21/400.html#comment</comments><wfw:comment>http://www.zaiqiang.com/</wfw:comment><wfw:commentRss>http://www.zaiqiang.com/feed.asp?cmt=400</wfw:commentRss><trackback:ping>http://www.zaiqiang.com/cmd.asp?act=tb&amp;id=400&amp;key=b7542752</trackback:ping></item><item><title>Windows server 2008 R2下安装SQL SERVER 2005出现IIS功能要求警告解决方案</title><author>stronger@126.com (狮子)</author><link>http://www.zaiqiang.com/c/2011-04-21/399.html</link><pubDate>Thu, 21 Apr 2011 08:47:34 +0800</pubDate><guid>http://www.zaiqiang.com/c/2011-04-21/399.html</guid><description><![CDATA[<p>影响到的操作系统有：<br />* Windows 7<br />* Windows Server 2008 R2<br />* Windows Server 2008<br />* Windows Vista<br /><br />适用于：<br />* Microsoft SQL Server 2005 Standard Edition<br />* Microsoft SQL Server 2005 Workgroup Edition<br />* Microsoft SQL Server 2005 Developer Edition<br />* Microsoft SQL Server 2005 Enterprise Edition<br />* Microsoft SQL Server 2005 Express Edition with Advanced Services<br /><br />但是，并不是所有IIS都有类似的问题，关键还取决于IIS安装的组件。<br />官方文档指出，在安装IIS7的时候，要安装如下组件，才能解决这个问题：<br />组件 文件夹<br />静态内容 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 常见HTTP功能<br />默认文档 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 常见HTTP功能<br />HTTP重定向 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;常见HTTP功能<br />目录浏览 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;常见HTTP功能<br />ASP.Net &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 应用程序开发功能<br />ISAPI 扩展 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;应用程序开发功能<br />ISAPI 筛选器 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;应用程序开发功能<br />Windows身份验证 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 安全性<br />IIS元数据库和IIS 6 配置兼容性 &nbsp; &nbsp; IIS6管理兼容性<br />IIS 6 WMI兼容性 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IIS6管理兼容性<br /><br />英文版本<br />Component Folder<br />Static Content &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Common HTTP Features<br />Default Document &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Common HTTP Features<br />HTTP Redirection &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Common HTTP Features<br />Directory Browsing &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Common HTTP Features<br />ASP.Net &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Application Development<br />ISAPI Extension &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Application Development<br />ISAPI Filters &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Application Development<br />Windows Authentication &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Security<br />IIS Metabase &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Management Tools<br />IIS 6 WMI &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Management Tools</p><p><em>来源：永恒國度</em></p>]]></description><category>挨踢</category><comments>http://www.zaiqiang.com/c/2011-04-21/399.html#comment</comments><wfw:comment>http://www.zaiqiang.com/</wfw:comment><wfw:commentRss>http://www.zaiqiang.com/feed.asp?cmt=399</wfw:commentRss><trackback:ping>http://www.zaiqiang.com/cmd.asp?act=tb&amp;id=399&amp;key=fb1348dc</trackback:ping></item><item><title>HOW TO 解决Windows Media Player播放文件时遇到问题的解决办法</title><author>stronger@126.com (狮子)</author><link>http://www.zaiqiang.com/c/2010-12-04/windows-media-player-problem.html</link><pubDate>Sat, 04 Dec 2010 10:34:00 +0800</pubDate><guid>http://www.zaiqiang.com/c/2010-12-04/windows-media-player-problem.html</guid><description><![CDATA[<p>从网络上下了一些视频，刚开始能看，可是后来不知道什么原因，再次播放的时刻提示：&ldquo;Windows&nbsp;Media&nbsp;Player&nbsp;播放文件时遇到问题。有关其他帮助信息，单击&nbsp;Web&nbsp;帮助&nbsp;&rdquo;，刚开始怀疑声卡出了问题，后面上面搜索到一些资料，整理如下. <br />Windows&nbsp;Media&nbsp;Player播放文件时遇到问题的解决办法: <br />重新注册以下三个&quot;.dll&quot;&nbsp;步骤：&nbsp; <br />1.点击&ldquo;开始&rdquo;，再点击&ldquo;运行&rdquo;，在&ldquo;打开&rdquo;框中输入&ldquo;regsvr32&nbsp;jscript.dll&rdquo;，而后点&ldquo;确定&rdquo;，出现成功提示后点OK。&nbsp; <br />2.按上面的步骤再次输入&ldquo;regsvr32&nbsp;vbscript.dll&rdquo;&nbsp; <br />3.再次输入&ldquo;regsvr32&nbsp;quartz.dll&rdquo;&nbsp;按以上操作一般即可解决问题。 <br />如果没有quartz.dll 则可以在网上下载一个。</p><p><em>来源：互联网</em></p>]]></description><category>挨踢</category><comments>http://www.zaiqiang.com/c/2010-12-04/windows-media-player-problem.html#comment</comments><wfw:comment>http://www.zaiqiang.com/</wfw:comment><wfw:commentRss>http://www.zaiqiang.com/feed.asp?cmt=393</wfw:commentRss><trackback:ping>http://www.zaiqiang.com/cmd.asp?act=tb&amp;id=393&amp;key=9c3fa849</trackback:ping></item><item><title>马云评谷歌：最大的失败是放弃</title><author>stronger@126.com (狮子)</author><link>http://www.zaiqiang.com/c/2010-01-14/Jackma-Google.html</link><pubDate>Thu, 14 Jan 2010 01:50:32 +0800</pubDate><guid>http://www.zaiqiang.com/c/2010-01-14/Jackma-Google.html</guid><description><![CDATA[<p>马云十三日在此间出席&ldquo;浙江周&rdquo;民营<span class="t_tag" onclick="tagshow(event)" href="tag.php?name=%C6%F3%D2%B5">企业</span>高峰<span class="t_tag" onclick="tagshow(event)" href="tag.php?name=%C2%DB%CC%B3">论坛</span>时被问到有关Google扬言撤出内地市场时表示，未有看到有关消息，但他相信，最大失败是放弃，&ldquo;在艰难环境下做得好，才是英雄&rdquo;。马云说，自已做电子商贸生意，困难比他们更多。马云十三日在此间出席&ldquo;浙江周&rdquo;民营<span class="t_tag" onclick="tagshow(event)" href="tag.php?name=%C6%F3%D2%B5">企业</span>高峰<span class="t_tag" onclick="tagshow(event)" href="tag.php?name=%C2%DB%CC%B3">论坛</span>时被问到有关Google扬言撤出内地市场时表示，未有看到有关消息，但他相信，最大失败是放弃，&ldquo;在艰难环境下做得好，才是英雄&rdquo;。马云说，自已做电子商贸生意，困难比他们更多&hellip;&hellip;</p>]]></description><category>挨踢</category><comments>http://www.zaiqiang.com/c/2010-01-14/Jackma-Google.html#comment</comments><wfw:comment>http://www.zaiqiang.com/</wfw:comment><wfw:commentRss>http://www.zaiqiang.com/feed.asp?cmt=328</wfw:commentRss><trackback:ping>http://www.zaiqiang.com/cmd.asp?act=tb&amp;id=328&amp;key=8c9b284d</trackback:ping></item><item><title>HOW TO：PHPWind使用更短的伪静态URL呈现。</title><author>stronger@126.com (狮子)</author><link>http://www.zaiqiang.com/c/2009-12-26/PHPWind-Static-Short-URL.html</link><pubDate>Sat, 26 Dec 2009 00:12:26 +0800</pubDate><guid>http://www.zaiqiang.com/c/2009-12-26/PHPWind-Static-Short-URL.html</guid><description><![CDATA[<p>PHPWind 开启伪静态之后，在访问某些页面时显得URL非常之长，例如你访问某个贴子的第二页可能是这样的地址：http://www.jijianying.com/read-htm-tid-99-page-2.html ，是不是可以设置成这样的地址：<a href="http://www.jijianying.com/read-tid-99-page-2.html">http://www.jijianying.com/read-tid-99-page-2.html</a>&nbsp;呢？答案是肯定的，你点击一下，就可以验证。那么怎么样才可以做到呢，是不是只需要在静态目录部署的&ldquo;静态目录&rdquo;框里默认的-htm-改成单一个杠号-就可以了呢，答案是不行，还需要要另外再做点小改动。在你已经成功部署好默认的伪静态前提下，下边我谈一谈更短的伪静态URL如何实现：</p><p>1、进入后台》核心设置》静态目录部署》，在&ldquo;静态目录部署&rdquo;、&ldquo;静态目录&rdquo;框内填写一个杠号-。现在刷新前台，发现页面连接的输出已经变成了简短的了，但是一点击，发现是404错误，无法打开，于是就要进行下边的设置了。</p><p>2、&hellip;&hellip;</p>]]></description><category>挨踢</category><comments>http://www.zaiqiang.com/c/2009-12-26/PHPWind-Static-Short-URL.html#comment</comments><wfw:comment>http://www.zaiqiang.com/</wfw:comment><wfw:commentRss>http://www.zaiqiang.com/feed.asp?cmt=322</wfw:commentRss><trackback:ping>http://www.zaiqiang.com/cmd.asp?act=tb&amp;id=322&amp;key=be39d71e</trackback:ping></item><item><title>如何正确使用IIS Rewrite部署PHPWind 在Windows下的伪静态。</title><author>stronger@126.com (狮子)</author><link>http://www.zaiqiang.com/c/2009-12-19/How-to-PHPWind-Rewrite-Windows-IIS.html</link><pubDate>Sat, 19 Dec 2009 14:24:53 +0800</pubDate><guid>http://www.zaiqiang.com/c/2009-12-19/How-to-PHPWind-Rewrite-Windows-IIS.html</guid><description><![CDATA[<p>自从在某次会上被 PHPWind 现在灌输些东西后，一直想找个时间来体验一下。</p><p>PHPWind 7.5 SP3 发布之时，就上了一个站，因为是Windows下的IIS，在进行静态目录部署时出现问题。必须手动在IIS上安装Rewrite模块。于是在Helicon Tech.公司官方网站下载了ISAPI_Rewrite 3 Lite 。安装之后发现该免费版本只可以作用于全局，而无法每个站点独立的配置，放弃之。最后在中国站长网找到一个版本非常不错，支持每个站点根目录放置 httpd.ini 配置文件。经过一翻捣鼓，总算是把伪静态给成功启用了，其中一些注意的地方给大家分享一下，如果你正在做这件事或者会少走点弯路：</p><p>1、安装好 ISAPI_Rewrite 0053 并授权之后在你的站点根目录放置一个httpd.ini 并将规则配置好，规则配置格式参照安装目录内的该文件。</p><p>2、如果访问伪静态地址还是404错误的话，你就要注意这里了，PHPWind 7.5 SP3 官方提供的 Apache下的默认规则 RewriteRule ^(.*)-htm-(.*)$ $1.php?$2 这在 IIS Rewrite 模块的不同版本下情况使用方法有异。我没有测试哪个版本可以直接使用这条规则，但至少在2.7或者更低的版本下是不行的，需要改成：RewriteRule ^(.*)-htm-(.*)$ $1\.php\?$2&nbsp; 才可成功启用。在找到相关社区的提示后我才想起我的一个程序达人朋友去年帮我解决程序问题时顺便提到，这种Rewrite规则基本就是正则表达式，而正则表达式中特殊符号需要转义，即规则中的点号和问号需要加反斜杠，注意修改配置后需要重启IIS。如果你的配置文件同目录里的 httpd.parse.errors 文件为0字节即没有记录错误的话，应该伪静态就成功了。</p><p>3、如果访问伪静态地址还是404错误，那么就应该查看你的Windows日志中的程序日志，注意如果有&ldquo;无法加载站点/服务的所有 ISAPI 筛选器。因此启动中止。&rdquo;&ldquo;HTTP 筛选器 DLL C:\Rewrite\Rewrite.dll 加载失败。数据是错误。&rdquo;类似的错误那么就应当注意 ISAPI_Rewrite 0053&nbsp;安装目录的权限问题，以下是网上的说法：&ldquo;注意 IIS_WPG权限问题，IIS你的站点来宾用户（如果你自定义了）的权限，也有网友提到加载Rewrite的站点需要使用默认进程池&rdquo;。我遇到的是权限问题，进程池我使用独立进程是没有问题的，你可以作参考。</p><p>4、总结起来就是，Rewrite模板的版本和对应的规则问题是我解决问题的关键！低版本的IIS Rewrite 模块在编辑规则时需要使用规范的正则表达式语法，特殊符号需要转义。如果你是从Discuz 的相关帮助页面下载的Rewrite，那里的版本是1.x 的，因也需要规范的 Rewrite 配置文件。另外目录的权限问题和httpd.ini 规则本身的格式问题也是你失败时最值得注意的地方。</p>]]></description><category>挨踢</category><comments>http://www.zaiqiang.com/c/2009-12-19/How-to-PHPWind-Rewrite-Windows-IIS.html#comment</comments><wfw:comment>http://www.zaiqiang.com/</wfw:comment><wfw:commentRss>http://www.zaiqiang.com/feed.asp?cmt=319</wfw:commentRss><trackback:ping>http://www.zaiqiang.com/cmd.asp?act=tb&amp;id=319&amp;key=892bffbd</trackback:ping></item><item><title>普通PC能当服务器用？</title><author>stronger@126.com (狮子)</author><link>http://www.zaiqiang.com/c/2009-08-18/309.html</link><pubDate>Tue, 18 Aug 2009 23:28:43 +0800</pubDate><guid>http://www.zaiqiang.com/c/2009-08-18/309.html</guid><description><![CDATA[服务器，顾名思义就是一台提供某种因特网服务的长期运行不关机的电脑，因此服务器对硬件的要求高很多，这就是一台品牌服务器动辄上万主要原因之一。<br><br>网站到了一定访问量的时候就需要独立服务器，可能这时候网站收入还不是很多，不足以支撑一台品牌服务器加托管费用，这是让很多站长头痛的。那么是不是可以用一台价格相对低廉的普通<a href="http://www.testfreaks.cn/desktop-computers/" target="_blank">台式机</a>来当服务器使用呢？答案是肯定的，下边我就来谈谈如何选用普通台式机的配件来DIY一台可以长期运行相对稳定的服务器。<br><br>首先在各主要配件的品牌选择时，我们一定要选择一线大品牌。其次我们不要选择最新的产品，尽量选择面市已经有三个月至半年的型号，最后一定要选择正品行货。不要省这少数的金钱，因为你的稳定和数据是相当重要的！]]></description><category>挨踢</category><comments>http://www.zaiqiang.com/c/2009-08-18/309.html#comment</comments><wfw:comment>http://www.zaiqiang.com/</wfw:comment><wfw:commentRss>http://www.zaiqiang.com/feed.asp?cmt=309</wfw:commentRss><trackback:ping>http://www.zaiqiang.com/cmd.asp?act=tb&amp;id=309&amp;key=e87212bb</trackback:ping></item></channel></rss>
