<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[老岩的布拉格]]></title> 
<link>http://www.wduw.com/index.php</link> 
<description><![CDATA[不想有很多钱，只想做独一无二的快乐的自己！]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[老岩的布拉格]]></copyright>
<item>
<link>http://www.wduw.com/read.php?164</link>
<title><![CDATA[install mogilefs on Gentoo]]></title> 
<author>harrie &lt;&gt;</author>
<category><![CDATA[关于技术]]></category>
<pubDate>Fri, 20 Mar 2009 14:31:10 +0000</pubDate> 
<guid>http://www.wduw.com/read.php?164</guid> 
<description>
<![CDATA[ 
	<p>1, 系统环境</p><p style="padding-left: 30px">1.1, 操作系统</p><p style="padding-left: 60px">Gentoo 2007.0 with portage snapshot 20081022, update world in 2008.10.22</p><p style="padding-left: 30px">1.2, 服务器列表</p><p style="padding-left: 60px">修改/etc/hosts,加入下面的机器名和IP对应<br />数据库和track服务器: M-Gentoo IP:10.129.62.243<br />存储服务器01: S-Gentoo-01 IP:10.129.62.244<br />存储服务器02: S-Gentoo-02 IP:10.129.62.241</p><p>2, 解锁gentoo portage中安装mogilefs所需要的包</p><p style="padding-left: 30px">echo =dev-perl/mogilefs-server-2.20&nbsp; ~x86 &gt;&gt; /etc/portage/package.keywords<br />echo =dev-perl/Danga-Socket-1.59 ~x86 &gt;&gt; /etc/portage/package.keywords<br />echo =dev-perl/IO-AIO-3.07 ~x86 &gt;&gt; /etc/portage/package.keywords<br />echo =dev-perl/Gearman-Server-1.09-r1 ~x86 &gt;&gt; /etc/portage/package.keywords<br />echo =dev-perl/Gearman-1.09 ~x86 &gt;&gt; /etc/portage/package.keywords<br />echo =dev-perl/Gearman-Client-Async-0.94 ~x86 &gt;&gt; /etc/portage/package.keywords<br />echo =dev-perl/Perlbal-1.72 ~x86 &gt;&gt; /etc/portage/package.keywords<br />echo =dev-perl/MogileFS-Utils-2.13 ~x86 &gt;&gt; /etc/portage/package.keywords<br />echo =dev-perl/MogileFS-Client-1.08 ~x86 &gt;&gt; /etc/portage/package.keywords</p><p>3, 安装</p><p style="padding-left: 30px">USE=&rdquo;mysql&rdquo; emerge mogile-server MogileFS-Client MogileFS-Utils<br />这个过程会将关联的包全部装好</p><p>4, 配置</p><p style="padding-left: 30px">4.1, 数据库</p><p style="padding-left: 60px">建立数据库<br />mogdbsetup &ndash;dbname=mogilefs &ndash;dbuser mogile &ndash;dbpass mogile</p><p style="padding-left: 30px">4.2, tracker</p><p style="padding-left: 60px">修改tracker服务器配置文件/etc/mogilefs/mogilefsd.conf<br />db_dsn = DBI:mysql:mogilefs<br />db_user = mogile<br />db_pass = mogile</p><p style="padding-left: 30px">4.3, storage server</p><p style="padding-left: 60px">修改storage服务器的配置文件/etc/mogilefs/mogstorage.conf<br />httplisten = 0.0.0.0:7500<br />mgmtlisten = 0.0.0.0:7501<br />docroot = /var/mogdata<br />server = perlbal</p><p>5, start server</p><p style="padding-left: 30px">M-Gentoo: /etc/init.d/mogilefsd start<br />S-Gentoo-01: /etc/init.d/mogstored start<br />S-Gentoo-02: /etc/init.d/mogstored start</p><p>6, 在tracker中注册存储服务器</p><p style="padding-left: 30px">mogadm &ndash;trackers=M-Gentoo:7001 host add S-Gentoo-01 -status=alive<br />mogadm &ndash;trackers=M-Gentoo:7001 host add S-Gentoo-02 -status=alive</p><p>7, 添加设备</p><p style="padding-left: 30px">建立保存文件的目录,分别在S-Gentoo-01和S-Gentoo-02中的/var/mogdata/下建立dev1和dev2的目录,并在tracker中添加这些device:<br />mogadm &ndash;trackers=M-Gentoo:7001 device add S-Gentoo-01 1 &ndash;status=alive<br />mogadm &ndash;trackers=M-Gentoo:7001 device add S-Gentoo-02 2 &ndash;status=alive<br />察看device: mogadm &ndash;trackers=M-Gentoo:7001 device list</p><p>8, 添加domain和class</p><p style="padding-left: 30px">增加一个domain: mogadm &ndash;trackers=M-Gentoo:7001 domain add project<br />增加一个class并且设定replication为2份: mogadm &ndash;trackers=M-Gentoo:7001 class add project class01 &ndash;mindevcount=2</p><p>9,测试</p><p style="padding-left: 30px"><a href="http://capoune.net/mogilefs" target="_blank"><span style="color: #2970a6"><a href="http://capoune.net/mogilefs/" target="_blank">http://capoune.net/mogilef...</a></span></a> 这里提供的php的module在php 5.2.6上面不work,所以改用<a href="http://www.sbw.org/File_Mogile/" target="_blank"><span style="color: #2970a6"><a href="http://www.sbw.org/File_Mogile/" target="_blank">http://www.sbw.org/File_Mo...</a></span></a>提供的pear的包进行测试.<br />pear的File_Mogile的类需要Validate的支持,分别下载安装之:<br />wget <a href="http://www.sbw.org/File_Mogile/File_Mogile-0.0.7.tgz" target="_blank">http://www.sbw.org/File_Mo...</a><br />wget <a href="http://download.pear.php.net/package/Validate-0.8.1.tgz" target="_blank">http://download.pear.php.n...</a><br />pear install Validate-0.8.1.tgz<br />pear install File_Mogile-0.0.7.tgz</p><pre style="padding-left: 30px">&lt;?php require_once('File/Mogile.php'); $hosts = array('127.0.0.1:7001'); $domain = 'project'; $class = 'class01'; $key = 'file_storage'; //这个为文件的唯一标识！ $mogile = new File_Mogile($hosts, $domain,array('socketTimeout' =&gt; 0.01,'streamTimeout' =&gt;1.0,'commandTimeout' =&gt; 4,)); $mogile-&gt;storeData($key, $class, 'I am the walrus.' . &quot;&#92;n&quot;); $paths = $mogile-&gt;getPaths($key); var_dump($paths); ?&gt;</pre><p style="padding-left: 30px">参考:</p><p style="padding-left: 30px"><a href="http://mogilefs.pbwiki.com/HowTo" target="_blank"><span style="color: #2970a6"><a href="http://mogilefs.pbwiki.com/HowTo" target="_blank">http://mogilefs.pbwiki.com...</a></span></a></p><p style="padding-left: 30px"><a href="http://danga.com/mogilefs/usage.bml"><span style="color: #2970a6"><a href="http://danga.com/mogilefs/usage.bml" target="_blank">http://danga.com/mogilefs/...</a></span></a></p><p style="padding-left: 30px"><a href="http://capoune.net/mogilefs" target="_blank"><span style="color: #2970a6"><a href="http://capoune.net/mogilefs/" target="_blank">http://capoune.net/mogilef...</a></span></a><br /><br />转自&nbsp;<a href="http://i.19830102.com/archives/55" target="_blank">http://i.19830102.com/arch...</a><br /><br /></p>
]]>
</description>
</item><item>
<link>http://www.wduw.com/read.php?163</link>
<title><![CDATA[在linux 或者 苹果terminal使用public key 连接ssh]]></title> 
<author>harrie &lt;&gt;</author>
<category><![CDATA[关于技术]]></category>
<pubDate>Thu, 19 Mar 2009 10:04:22 +0000</pubDate> 
<guid>http://www.wduw.com/read.php?163</guid> 
<description>
<![CDATA[ 
	&nbsp;ssh -l root [ip] -i [publickey_path]<br /><br/>Tags - <a href="http://www.wduw.com/tag.php?tag=linux" rel="tag">linux</a> , <a href="http://www.wduw.com/tag.php?tag=mac" rel="tag">mac</a>
]]>
</description>
</item><item>
<link>http://www.wduw.com/read.php?158</link>
<title><![CDATA[Gentoo 升级系统的标准步骤]]></title> 
<author>harrie &lt;&gt;</author>
<category><![CDATA[关于技术]]></category>
<pubDate>Wed, 04 Mar 2009 09:36:35 +0000</pubDate> 
<guid>http://www.wduw.com/read.php?158</guid> 
<description>
<![CDATA[ 
	<span style="font-size: 13px; line-height: 20px; font-family: verdana; color: #4b4b4b" class="Apple-style-span"><p>#emerge --sync&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //升级整个portage目录<br /></p><p>#emerge portage&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//如果不是最新的portage，需要按提示执行此操作<br />#emerge python&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//如果不是最新的python，需要按提示执行此操作<br />#/usr/sbin/update-python&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//执行完emerge python后执行此操作</p><p>#emerge -avuDN world&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//按照 /var/lib/portage/world 文件下的包，重新构建整个系统<br />&nbsp;参数说明：&nbsp;&nbsp;--ask (-a)&nbsp; 控制Portage显示它要更新的软件包列表，并让您决定是否继续更新<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--verbose (-v) 在屏幕上输出完整的文件列表<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--update (-u) 更新包的最佳版本<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--deep (-D)&nbsp; 更新系统中的每个软件包<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;--newuse (-N) USE标记变更后，要使Portage检查USE标记的变动是否导致<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;需要安装新的软件包或者将现有的包重新编译</p><p>#emerge -av --depclean&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//清除不需要（孤立）的软件包</p><p>#revdep-rebuild&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//gentoolkit包里面的一个软件，用来检查系统的依赖关系是否都满足，<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;自动安装没有满足关系的包</p><p>#dispatch-conf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//更新系统的配置文件</p><p>#emerge -e world&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//本地重新编译整个系统，<strong style="color: red">USE标记变化不大时不需执行<br /></strong>&nbsp;参数说明：&nbsp;--emptytree (-e)&nbsp;</p><p>&nbsp;</p><p><span style="font-size: 10px; line-height: normal; font-family: Fixedsys; color: #333333" class="Apple-style-span"><ol class="hl-main ln-show" style="font-size: 1em; line-height: 1.5em; list-style-type: decimal !important; list-style-position: outside !important; list-style-image: initial !important; padding-top: 0px; padding-right: 12px; padding-bottom: 0px; padding-left: 56px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: transparent; background-image: url('http://www.jianblog.com/wp-content/plugins/coolcode/images/hide.gif'); background-repeat: no-repeat; background-position: 5px 5px"><li class="hl-firstline" style="list-style-type: decimal !important; list-style-position: outside !important; list-style-image: initial !important; display: list-item !important; font-size: 12px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 20px !important; border-left-width: 1px; border-left-style: solid; border-left-color: #c3ced9; border-top-width: 1px; border-top-style: solid; border-top-color: #e3eef9 !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 12px !important; background-color: #f9fbfc !important">emerge --sync</li><li style="list-style-type: decimal !important; list-style-position: outside !important; list-style-image: initial !important; display: list-item !important; font-size: 12px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 20px !important; border-left-width: 1px; border-left-style: solid; border-left-color: #c3ced9; border-top-width: 1px; border-top-style: solid; border-top-color: #e3eef9 !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 12px !important; background-color: #f9fbfc !important">emerge -vuD --newuse world</li><li style="list-style-type: decimal !important; list-style-position: outside !important; list-style-image: initial !important; display: list-item !important; font-size: 12px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 20px !important; border-left-width: 1px; border-left-style: solid; border-left-color: #c3ced9; border-top-width: 1px; border-top-style: solid; border-top-color: #e3eef9 !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 12px !important; background-color: #f9fbfc !important">emerge &ndash;depclean</li><li style="list-style-type: decimal !important; list-style-position: outside !important; list-style-image: initial !important; display: list-item !important; font-size: 12px !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-left: 0px !important; line-height: 20px !important; border-left-width: 1px; border-left-style: solid; border-left-color: #c3ced9; border-top-width: 1px; border-top-style: solid; border-top-color: #e3eef9 !important; padding-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; padding-left: 12px !important; background-color: #f9fbfc !important">revdep-rebuild</li></ol></span></p></span>
]]>
</description>
</item><item>
<link>http://www.wduw.com/read.php?157</link>
<title><![CDATA[服务器性能测试和设置篇]]></title> 
<author>harrie &lt;&gt;</author>
<category><![CDATA[关于技术]]></category>
<pubDate>Fri, 20 Feb 2009 07:59:17 +0000</pubDate> 
<guid>http://www.wduw.com/read.php?157</guid> 
<description>
<![CDATA[ 
	<p style="line-height: normal">实时检测HTTPD连接数：<br />watch -n 1 -d &quot;pgrep httpd&#124;wc -l&quot;<br /><br />ps -ef &#124; grep httpd &#124; wc -l<br />　　返回结果示例：<br />　　1388<br />　　表示Apache能够处理1388个并发请求，这个值Apache可根据负载情况自动调整，我这组服务器中每台的峰值曾达到过2002。</p><p style="line-height: normal"><br /></p><p style="line-height: normal">安装memcached @ CentOS</p><p style="line-height: normal"></p><p style="font-family: 'Lucida Grande', 'Trebuchet MS', Tahoma, Verdana, Helvetica, sans-serif; margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-bottom: 15px">* memcached homepage:<br /><a href="http://www.danga.com/memcached/" target="_blank">http://www.danga.com/memca...</a><br />yum install memcached<br />chkconfig memcached on<br />service memcached start</p><p style="font-family: 'Lucida Grande', 'Trebuchet MS', Tahoma, Verdana, Helvetica, sans-serif; margin-top: 0px; margin-right: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-bottom: 15px">vi /etc/sysconfig/memcached<br /># set listening host to localhost<br />OPTIONS=&quot;-l 127.0.0.1&quot;<br />If you use a different version of php from the one in official CentOS repo, you need to compile the php memcache extension (php-pecl-memcache) by yourself. Just download the source rpm from the CentOS Extras repository and build it.</p><p></p>
]]>
</description>
</item><item>
<link>http://www.wduw.com/read.php?144</link>
<title><![CDATA[PHP友好URL的实现]]></title> 
<author>harrie &lt;&gt;</author>
<category><![CDATA[关于技术]]></category>
<pubDate>Sat, 22 Nov 2008 16:51:42 +0000</pubDate> 
<guid>http://www.wduw.com/read.php?144</guid> 
<description>
<![CDATA[ 
	<p>下面的<a href="javascript:;" target="_self" onclick="javascript:tagshow(event, '%B4%FA%C2%EB');"><u><strong>代码</strong></u></a>主要是伪静态的实现，搜索引擎喜欢</p><p>大家经常看到别的站的<a href="javascript:;" target="_self" onclick="javascript:tagshow(event, 'URL');"><u><strong>URL</strong></u></a>是这样的吧？<br /><a href="http://www.xxx.com/module/show/action/list/page/7" target="_blank">http://www.xxx.com/module/...</a><br />或者<br /><a href="http://xx.com/module/show/action/show/id/8.shtml" target="_blank">http://xx.com/module/show/...</a> 带扩展名的<br />或者<br /><a href="http://xx.com/module/show/action/show/id/8?word=ss&amp;age=11" target="_blank">http://xx.com/module/show/...</a><br />这样的吧<br />今天我就是公布下这种<a href="javascript:;" target="_self" onclick="javascript:tagshow(event, '%B7%BD%B7%A8');"><u><strong>方法</strong></u></a>的实现，并独立出最简单的代码<br /><a href="javascript:;" target="_self" onclick="javascript:tagshow(event, '%BA%AF%CA%FD');"><u><strong>函数</strong></u></a>如下，没封装成类，主要是没必要，用函数能方便些</p><div class="codebody">&lt;?php<br />/**<br />* 获得<a href="javascript:;" target="_self" onclick="javascript:tagshow(event, '%D3%D1%BA%C3');"><u><strong>友好</strong></u></a>的URL访问<br />*<br />* @<a href="http://www.jb51.net/list/list_105_1.htm" target="_blank"><span style="color: red">access</span></a>public<br />* @return array<br />*/<br />function getQueryString()&#123;<br />$_SGETS = explode(&quot;/&quot;,substr($_SERVER['PATH_INFO'],1));<br />$_SLEN = count($_SGETS);<br />$_SGET = $_GET;<br />for($i=0;$i&lt;$_SLEN;$i+=2)&#123;<br />if(!empty($_SGETS[$i]) &amp;&amp; !empty($_SGETS[$i+1])) $_SGET[$_SGETS[$i]]=$_SGETS[$i+1];<br />&#125;<br />$_SGET['m'] = !empty($_SGET['m']) &amp;&amp; is_string($_SGET['m']) ? trim($_SGET['m']).'Action' : 'indexAction';<br />$_SGET['a'] = !empty($_SGET['a']) &amp;&amp; is_string($_SGET['a']) ? trim($_SGET['a']) : 'run';<br />return $_SGET;<br />&#125;<br />/**<br />* 生成链接URL<br />*<br />* @<a href="http://www.jb51.net/list/list_105_1.htm" target="_blank"><span style="color: red">access</span></a>public<br />* @param array $arr<br />* @return string<br />*/<br />function setUrl($arr)&#123;<br />global $Global;<br />$queryString='';<br />if($Global['urlmode']==2)&#123;<br />foreach($arr as $k=&gt; $v)&#123;<br />$queryString.=$k.'/'.$v.'/';<br />&#125;<br />&#125;<br />$queryString.=$Global['urlsuffix'];<br />return $queryString;<br />&#125;<br />?&gt;</div><div class="codebody">使用很简单</div><div class="codebody">&lt;?php<br />$_GET= getQueryString();<br />?&gt;</div><div class="codebody">但是这样还不行，这样只能实现<br /><a href="http://www.xxx.com/index.php/module/show/action/list/page/7" target="_blank">http://www.xxx.com/index.p...</a> 这样的<br />中间多了个index.php 为此我们要把他去掉，只好重写<br />但是有些文件 又不希望这样，比如 样式 <a href="javascript:;" target="_self" onclick="javascript:tagshow(event, '%CD%BC%C6%AC');"><u><strong>图片</strong></u></a>，那就放条件里<br />建立一个 .ht<a href="http://www.jb51.net/list/list_105_1.htm" target="_blank"><span style="color: red">access</span></a>文件</div><div id="code48920" class="codebody"><br />RewriteEngine on<br />RewriteCond $1 !^(index&#92;.php&#124;css&#124;pics&#124;themes&#124;js&#124;robots&#92;.txt)<br />RewriteRule ^(.*)$ index.php/$1 [L]<br />现在OK了，赶快去测试吧<br /><br />&lt;?php<br />$_GET= getQueryString();<br />print_r($_GET);<br />?&gt;</div>
]]>
</description>
</item><item>
<link>http://www.wduw.com/read.php?136</link>
<title><![CDATA[待解决的任务 sendmail]]></title> 
<author>harrie &lt;&gt;</author>
<category><![CDATA[关于技术]]></category>
<pubDate>Sun, 19 Oct 2008 15:08:16 +0000</pubDate> 
<guid>http://www.wduw.com/read.php?136</guid> 
<description>
<![CDATA[ 
	<div>不能用mail()函数发送邮件</div><div><br /></div><div>Oct 19 22:56:39 localhost sendmail[31320]: My unqualified host name (localhost) unknown; sleeping for retry</div><div>Oct 19 22:57:39 localhost sendmail[31320]: unable to qualify my own domain name (localhost) -- using short name</div><div>Oct 19 22:57:39 localhost sendmail[31320]: m9JEvdL4031320: from=nginx, size=687, class=0, nrcpts=0, msgid=&lt;200810191457.m9JEvdL4031320@localhost&gt;, relay=nginx@localhost</div><div>Oct 19 22:58:04 localhost sendmail[31729]: My unqualified host name (localhost) unknown; sleeping for retry</div><div>Oct 19 22:59:04 localhost sendmail[31729]: unable to qualify my own domain name (localhost) -- using short name</div><div>Oct 19 22:59:04 localhost sendmail[31729]: m9JEx4XA031729: from=nginx, size=816, class=0, nrcpts=0, msgid=&lt;200810191459.m9JEx4XA031729@localhost&gt;, bodytype=8BITMIME, relay=nginx@localhost</div><div><br /></div><div>解决办法 </div><div>&gt;&gt;hostname wduw</div><div>&gt;&gt;vi /etc/hosts/<span style="line-height: 20px; color: #494949" class="Apple-style-span"><br />192.168.0.84&nbsp;&nbsp;&nbsp;&nbsp;wduw&nbsp;&nbsp;&nbsp;&nbsp;wduw<br />&gt;&gt;rc-update add sendmail default<br />&gt;&gt;reboot<br />&gt;&gt;/etc/init.d/sendmail status<br />&nbsp;* status:&nbsp; started<br /><br /></span></div><br/>Tags - <a href="http://www.wduw.com/tag.php?tag=linux" rel="tag">linux</a> , <a href="http://www.wduw.com/tag.php?tag=gentoo" rel="tag">gentoo</a> , <a href="http://www.wduw.com/tag.php?tag=sendmail" rel="tag">sendmail</a>
]]>
</description>
</item><item>
<link>http://www.wduw.com/read.php?123</link>
<title><![CDATA[一次博客的数据表修复]]></title> 
<author>harrie &lt;&gt;</author>
<category><![CDATA[关于技术]]></category>
<pubDate>Fri, 07 Mar 2008 18:07:55 +0000</pubDate> 
<guid>http://www.wduw.com/read.php?123</guid> 
<description>
<![CDATA[ 
	最近网站总是出现too many connection. 更严重的时候会出现can't use database.问题出现了，仔细检查，发现问题所在。数据库的用户表can open file"userinfo.MYI"。<br/>1 首先尝试repairtable.这样几乎不可行。<br/>2 于是立刻备份数据，然后反复repair 或者opterimize table,只要一运行，损坏的表所在的数据库一定锁住。<br/>3 以上方法行不通，于是尝试用myisamchk这个工具检查文件.分别用-r -o -f 最后一个参数终于幸运的修复成功了。
]]>
</description>
</item><item>
<link>http://www.wduw.com/read.php?104</link>
<title><![CDATA[避免表格table被撑变形的CSS代码]]></title> 
<author>harrie &lt;&gt;</author>
<category><![CDATA[关于技术]]></category>
<pubDate>Tue, 10 Jul 2007 09:08:29 +0000</pubDate> 
<guid>http://www.wduw.com/read.php?104</guid> 
<description>
<![CDATA[ 
	如何避免表格因为图片尺寸或者过长的英文字符而变形撑开，在CSS加入以下代码就可以防止，同时英文单词也会按单词断行，不是按字母这个。我想说的是这个在CSS2.0是不支持的，但是能解决一些实际问题。页面设计不是为了标准检验而设计，还是以用户使用为主，在目前有些WEB标准无法解决的一些问题上，我会采用一些非标准的方法处理，只要主流BROWSER如IE,Firefox,Netscape,Opera等上能正确显示，我会把通过WEB表准的校验放在次要位置，并且MS已经建议在CSS3。0中加入这个属性了，也许CSS3。0会支持。WEB标准也是在发展的，也许明天的标准就加入了这个属性，或者出现新的属性来解决。 <br/><div class="code">常用的CSS代码片段：<br/>&lt;style&gt;<br/>table &#123; <br/>table-layout: fixed;<br/>word-wrap:break-word;<br/>&#125;<br/>div &#123; <br/>word-wrap:break-word;<br/>&#125;<br/>&lt;/style&gt;</div><br/>Tags - <a href="http://www.wduw.com/tag.php?tag=%25E6%258A%2580%25E6%259C%25AF" rel="tag">技术</a>
]]>
</description>
</item><item>
<link>http://www.wduw.com/read.php?102</link>
<title><![CDATA[开启.htaccess]]></title> 
<author>harrie &lt;&gt;</author>
<category><![CDATA[关于技术]]></category>
<pubDate>Thu, 05 Jul 2007 04:21:13 +0000</pubDate> 
<guid>http://www.wduw.com/read.php?102</guid> 
<description>
<![CDATA[ 
	今天测试zend framework<br/>index.php/index/index可以访问但是<a href="http://localhost/index/index" target="_blank">http://localhost/index/ind...</a>不能访问<br/>我已经确认文件和目录已经部署好，最后发现是.htaccess没有生效，在apache的配置文件中修改<br/>AllowOverride All 就好了。<br/>Tags - <a href="http://www.wduw.com/tag.php?tag=php" rel="tag">php</a> , <a href="http://www.wduw.com/tag.php?tag=zendframework" rel="tag">zendframework</a>
]]>
</description>
</item><item>
<link>http://www.wduw.com/read.php?96</link>
<title><![CDATA[修改linux帐户密码]]></title> 
<author>harrie &lt;&gt;</author>
<category><![CDATA[关于技术]]></category>
<pubDate>Mon, 14 May 2007 08:27:46 +0000</pubDate> 
<guid>http://www.wduw.com/read.php?96</guid> 
<description>
<![CDATA[ 
	passwd [accountname]<br/>然后就会提示你输入新的密码.<br/>Tags - <a href="http://www.wduw.com/tag.php?tag=linux" rel="tag">linux</a>
]]>
</description>
</item>
</channel>
</rss>