<?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?197</link>
<title><![CDATA[我的作品列表（最后更新时间 2010年5月5日）]]></title> 
<author>harrie &lt;&gt;</author>
<category><![CDATA[关于工作]]></category>
<pubDate>Wed, 05 May 2010 02:51:53 +0000</pubDate> 
<guid>http://www.wduw.com/read.php?197</guid> 
<description>
<![CDATA[ 
	<div>我在过去的几年的开发生涯中完成的或者参与的网站列表，不断增加中</div><div><br /></div>500强企业招聘网站 Fortune 500：<br /><ol><li>百胜中国 Yum brand!)&nbsp;&nbsp;<a href="http://www.joinyum.com/&nbsp;" target="_blank">http://www.joinyum.com/&nb...</a></li><li>诺华制药 Novartis&nbsp;&nbsp;<a href="http://careers.novartis.com.cn/" target="_blank">http://careers.novartis.co...</a> <a href="http://www.neverstopgrowing.cn/&nbsp;" target="_blank">http://www.neverstopgrowin...</a></li><li>阿 克苏诺贝尔 Akzonobel <a href="http://www.tomorrowscareer.cn/&nbsp;" target="_blank">http://www.tomorrowscareer...</a></li><li>万得城 Media Markt <a href="http://www.mediamarkt.cn/&nbsp;" target="_blank">http://www.mediamarkt.cn/&...</a></li><li>Deloitte Club <a href="http://www.deloitteclub.com&nbsp;" target="_blank">http://www.deloitteclub.co...</a></li><li>工作在德勤 Work at Starbucks <a href="http://www.workatstarbucks.com&nbsp;" target="_blank">http://www.workatstarbucks...</a></li></ol>小型企业网站<br /><ol><li>渔工网 <a href="http://www.yugongwang.com/" target="_blank">http://www.yugongwang.com/</a> <br /></li><li>上海微孚信息技术有限公司 <a href="http://www.microcall.com.cn/" target="_blank">http://www.microcall.com.c...</a></li><li>岩创网络 <a href="http://www.yancreate.com" target="_blank">http://www.yancreate.com</a><br /></li></ol>电子商务 E-business：<br /><ol><li>比购族 <a href="http://www.bigouzu.com/" target="_blank">http://www.bigouzu.com/</a></li><li>Smarter Comparison Shopping <a href="http://www.smarter.com&nbsp;" target="_blank">http://www.smarter.com&nbs...</a></li></ol>视频直播 P2P：<br /><ol><li>悠视网 <a href="http://www.uusee.com" target="_blank">http://www.uusee.com</a> 工作在UUSEE时的作品</li><li>中央电视台直播 CCTV live <a href="http://zhibo.cctv.com/&nbsp;" target="_blank">http://zhibo.cctv.com/&nbs...</a></li><li>IBTV 北京宽频 <a href="http://www.ibtv.com.cn/&nbsp;" target="_blank">http://www.ibtv.com.cn/&nb...</a></li></ol>English and Dutch websites:<br /><ol><li>Maximum <a href="http://www.maximum.nl&nbsp;" target="_blank">http://www.maximum.nl&nbsp...</a></li><li>1 op de 4 Nederlanders krijgt een psychische stoornis. <a href="http://www.1opde4.nl/&nbsp;" target="_blank">http://www.1opde4.nl/&nbsp...</a></li><li>Maximum China <a href="http://www.mxmm.cn&nbsp;" target="_blank">http://www.mxmm.cn&nbsp;</a></li><li>Laureate Online Education &amp; University of Liverpool <a href="http://liverpool.ohecampus.com/&nbsp;" target="_blank">http://liverpool.ohecampus...</a></li><li><a href="http://www.uol.ohecampus.com/&nbsp;" target="_blank">http://www.uol.ohecampus.c...</a></li><li><a href="http://devlaureate.mxmm.com/admin/&nbsp;" target="_blank">http://devlaureate.mxmm.co...</a></li><li><a href="http://connected.waldenu.edu/" target="_blank">http://connected.waldenu.e...</a></li><li><a href="http://thinkup.waldenu.edu/&nbsp;" target="_blank">http://thinkup.waldenu.edu...</a></li></ol>社交网络和微博客 SNS and Micro-blog:<br /><ol><li>贫嘴网 <a href="http://www.pinzui.com" target="_blank">http://www.pinzui.com</a><br /></li></ol><br />
]]>
</description>
</item><item>
<link>http://www.wduw.com/read.php?196</link>
<title><![CDATA[Gentoo 下配置WSGI的虚拟主机]]></title> 
<author>harrie &lt;&gt;</author>
<category><![CDATA[生活笔记]]></category>
<pubDate>Mon, 19 Apr 2010 09:36:07 +0000</pubDate> 
<guid>http://www.wduw.com/read.php?196</guid> 
<description>
<![CDATA[ 
	一直受mod_python缓存的困扰，所以想尝试使用一下mod_wsgi，以下记录的是大概的步骤：<br /><br />首先ln -s /var/www/virtualhost/项目名 /usr/lib/python2.6/site-packages/项目名<br /><br />&lt;VirtualHost *:80&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ServerName pinzui.com<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WSGIScriptAlias / /var/www/virtualhost/项目名/wsgi/项目名.wsgi<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;Directory /var/www/virtualhost/项目名&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Order allow,deny<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Allow from all<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/Directory&gt;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Alias /static &quot;/var/www/virtualhost/项目名/static&quot;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;Directory &quot;/var/www/virtualhost/项目命/static&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Order allow,deny<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Allow from all<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/Directory&gt;<br />&lt;/VirtualHost&gt;<br /><br />在项目下面创建 wsgi/项目名.wsgi<br /><span style="color: #009966">import os, sys<br />os.environ['DJANGO_SETTINGS_MODULE'] = 'yanchuang.settings'<br /><br />import django.core.handlers.wsgi<br />application = django.core.handlers.wsgi.WSGIHandler()</span><br />就ok了<br /><br />另外发现 <br />ll /usr/lib/python2.6/site-packages/<br />项目名 -&gt; /var/www/virtualhost/项目名<br />做link可以把这个项目当成python的lib使用<br /><br /><br/>Tags - <a href="http://www.wduw.com/tag.php?tag=gentoo" rel="tag">gentoo</a> , <a href="http://www.wduw.com/tag.php?tag=wsgi" rel="tag">wsgi</a> , <a href="http://www.wduw.com/tag.php?tag=django" rel="tag">django</a>
]]>
</description>
</item><item>
<link>http://www.wduw.com/read.php?194</link>
<title><![CDATA[2010年2月28日，上海航空从哈尔滨到上海的飞机上]]></title> 
<author>harrie &lt;&gt;</author>
<category><![CDATA[关于工作]]></category>
<pubDate>Mon, 01 Mar 2010 03:39:13 +0000</pubDate> 
<guid>http://www.wduw.com/read.php?194</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<!--[if gte mso 9]><xml>&nbsp;&nbsp;<o:OfficeDocumentSettings>&nbsp;&nbsp; <o:AllowPNG/>&nbsp;&nbsp;</o:OfficeDocumentSettings> </xml><![endif]--><!--[if gte mso 9]><xml>&nbsp;&nbsp;<w:WordDocument>&nbsp;&nbsp; <w:Zoom>0</w:Zoom>&nbsp;&nbsp; <w:TrackMoves>false</w:TrackMoves>&nbsp;&nbsp; <w:TrackFormatting/>&nbsp;&nbsp; <w:PunctuationKerning/>&nbsp;&nbsp; <w:DrawingGridHorizontalSpacing>18 pt</w:DrawingGridHorizontalSpacing>&nbsp;&nbsp; <w:DrawingGridVerticalSpacing>18 pt</w:DrawingGridVerticalSpacing>&nbsp;&nbsp; <w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery>&nbsp;&nbsp; <w:DisplayVerticalDrawingGridEvery>0</w:DisplayVerticalDrawingGridEvery>&nbsp;&nbsp; <w:ValidateAgainstSchemas/>&nbsp;&nbsp; <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>&nbsp;&nbsp; <w:IgnoreMixedContent>false</w:IgnoreMixedContent>&nbsp;&nbsp; <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>&nbsp;&nbsp; <w:Compatibility>&nbsp;&nbsp;&nbsp;&nbsp;<w:BreakWrappedTables/>&nbsp;&nbsp;&nbsp;&nbsp;<w:DontGrowAutofit/>&nbsp;&nbsp;&nbsp;&nbsp;<w:DontAutofitConstrainedTables/>&nbsp;&nbsp;&nbsp;&nbsp;<w:DontVertAlignInTxbx/>&nbsp;&nbsp;&nbsp;&nbsp;<w:UseFELayout/>&nbsp;&nbsp; </w:Compatibility>&nbsp;&nbsp;</w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml>&nbsp;&nbsp;<w:LatentStyles DefLockedState="false" LatentStyleCount="276">&nbsp;&nbsp;</w:LatentStyles> </xml><![endif]-->&nbsp;&nbsp;<!--&nbsp;&nbsp;/* Font Definitions */ @font-face&nbsp;&nbsp; &#123;font-family:宋体;&nbsp;&nbsp; mso-font-charset:80;&nbsp;&nbsp; mso-generic-font-family:auto;&nbsp;&nbsp; mso-font-pitch:variable;&nbsp;&nbsp; mso-font-signature:1 0 16778254 0 262144 0;&#125; @font-face&nbsp;&nbsp; &#123;font-family:Cambria;&nbsp;&nbsp; panose-1:2 4 5 3 5 4 6 3 2 4;&nbsp;&nbsp; mso-font-charset:0;&nbsp;&nbsp; mso-generic-font-family:auto;&nbsp;&nbsp; mso-font-pitch:variable;&nbsp;&nbsp; mso-font-signature:3 0 0 0 1 0;&#125;&nbsp;&nbsp;/* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal&nbsp;&nbsp; &#123;mso-style-parent:"";&nbsp;&nbsp; margin-top:0in;&nbsp;&nbsp; margin-right:0in;&nbsp;&nbsp; margin-bottom:10.0pt;&nbsp;&nbsp; margin-left:0in;&nbsp;&nbsp; mso-pagination:widow-orphan;&nbsp;&nbsp; font-size:12.0pt;&nbsp;&nbsp; font-family:"Times New Roman";&nbsp;&nbsp; mso-ascii-font-family:Cambria;&nbsp;&nbsp; mso-ascii-theme-font:minor-latin;&nbsp;&nbsp; mso-fareast-font-family:宋体;&nbsp;&nbsp; mso-hansi-font-family:Cambria;&nbsp;&nbsp; mso-hansi-theme-font:minor-latin;&nbsp;&nbsp; mso-bidi-font-family:"Times New Roman";&nbsp;&nbsp; mso-bidi-theme-font:minor-bidi;&#125; @page Section1&nbsp;&nbsp; &#123;size:8.5in 11.0in;&nbsp;&nbsp; margin:1.0in 1.25in 1.0in 1.25in;&nbsp;&nbsp; mso-header-margin:.5in;&nbsp;&nbsp; mso-footer-margin:.5in;&nbsp;&nbsp; mso-paper-source:0;&#125; div.Section1&nbsp;&nbsp; &#123;page:Section1;&#125; -->&nbsp;&nbsp;<!--[if gte mso 10]> <style>&nbsp;&nbsp;/* Style Definitions */ table.MsoNormalTable&nbsp;&nbsp; &#123;mso-style-name:"Table Normal";&nbsp;&nbsp; mso-tstyle-rowband-size:0;&nbsp;&nbsp; mso-tstyle-colband-size:0;&nbsp;&nbsp; mso-style-noshow:yes;&nbsp;&nbsp; mso-style-parent:"";&nbsp;&nbsp; mso-padding-alt:0in 5.4pt 0in 5.4pt;&nbsp;&nbsp; mso-para-margin-top:0in;&nbsp;&nbsp; mso-para-margin-right:0in;&nbsp;&nbsp; mso-para-margin-bottom:10.0pt;&nbsp;&nbsp; mso-para-margin-left:0in;&nbsp;&nbsp; mso-pagination:widow-orphan;&nbsp;&nbsp; font-size:12.0pt;&nbsp;&nbsp; font-family:"Times New Roman";&nbsp;&nbsp; mso-ascii-font-family:Cambria;&nbsp;&nbsp; mso-ascii-theme-font:minor-latin;&nbsp;&nbsp; mso-fareast-font-family:"Times New Roman";&nbsp;&nbsp; mso-fareast-theme-font:minor-fareast;&nbsp;&nbsp; mso-hansi-font-family:Cambria;&nbsp;&nbsp; mso-hansi-theme-font:minor-latin;&#125; </style> <![endif]--><!--[if gte mso 9]><xml>&nbsp;&nbsp;<o:shapedefaults v:ext="edit" spidmax="1026"/> </xml><![endif]--><!--[if gte mso 9]><xml>&nbsp;&nbsp;<o:shapelayout v:ext="edit">&nbsp;&nbsp; <o:idmap v:ext="edit" data="1"/>&nbsp;&nbsp;</o:shapelayout></xml><![endif]-->&nbsp;&nbsp;<!--StartFragment-->&nbsp;&nbsp;<p class="MsoNormal"><span style="font-family: 宋体">2010<span>年</span>2<span>月</span>28<span>日，上海航空从哈尔滨到上海的飞机上，我怀着忐忑的心情返回上海，没有其他创业者那样开始时就信心满满。我只知道，即使这条路真的不好走（今天的飞机同样有些颠簸），我也一定会去实现我想做的事业。</span></span></p>&nbsp;&nbsp;<p class="MsoNormal"><span style="font-family: 宋体">我并没有对现在的工作有什么不舍，或许有一些不甘心。因为曾经付出过那么多，包括最宝贵的</span><span style="font-family: 宋体">3<span>年时间；还因为自己的期待，我曾经也真的把这份工作当成自己的事业来做，曾经为这里画蓝图，成为公司的</span>Parter<span>，我们一起成长。现在，往事不要再提，我只能祝愿你们找到其他合适的人来帮助你们，而我将用我的行动实现我的一个一个梦想，让人们的生活因此能够有所改变。</span></span></p>&nbsp;&nbsp;<p class="MsoNormal"><span style="font-family: 宋体">对于接下来的日子，没有充分的准备，也已经准备了几年，是什么样的信念支持我来走这条路，跟我的人生经历有关，一直缺少安全感的我工作后无论做什么都还算幸运和顺利。年少时坎坷让我对物质的需求看的很淡，对梦想看的很重。总觉得该做点什么了，如果不去做，我会不快乐，生活也会变得没有意义。使命感？之前几次辞职我都会休息几个月，反思过去，寻找将来的路，有的宽广，有的是少有人经过的小路，有的是金光大道。每一次辞掉工作之后都会去权衡自己是否是否自己做的已经很好，是否有能力来影响到他人。我是有很多缺点的，在过去和将来的日子我都还是在对自己苛刻，却又放纵自己的一些小缺点。我也可以用有限的能力来影响身边的人了。所以权衡之后，我对自己说，是时候跨出这一步的了。</span></p>&nbsp;&nbsp;<p class="MsoNormal"><span style="font-family: 宋体">It&rsquo;s written!</span></p><p class="MsoNormal"><br /></p><p class="MsoNormal"><span style="font-family: 宋体">－－－－－－－－－－－－－－－－－－－－－－－－</span></p><p class="MsoNormal"><span style="font-family: 宋体">2010年3月18日补充</span></p><p class="MsoNormal"><span style="font-family: 宋体">经过和朋友们对探讨和自己对可行性对探讨，深刻的感觉到做一点实际的事情不容易，如果今年可以做到得到稳定的项目分给朋友们和团队来做，让大家得到稳定的收入，我们产生一定的品牌效应，就足够了。</span></p><p class="MsoNormal"><span style="font-family: 宋体">－－－－－－－－－－－－－－－－－－－－－－－－</span></p><p class="MsoNormal"><span style="font-family: 宋体">2010年3月31日</span></p><p class="MsoNormal"><span style="font-family: 宋体">签了合同，开始验名</span></p><p class="MsoNormal"><span style="font-family: 宋体">－－－－－－－－－－－－－－－－－－－－－－－－</span></p><p class="MsoNormal"><span style="font-family: 宋体">2010年4月9日</span></p><p class="MsoNormal"><span style="font-family: 宋体">公司名称确定为上海岩创网络科技有限公司</span></p><p class="MsoNormal"><span style="font-family: 宋体">－－－－－－－－－－－－－－－－－－－－－－－－</span></p><p class="MsoNormal"><span style="font-family: 宋体">2010年5月13日</span></p><p class="MsoNormal"><span style="font-family: 宋体">公司拿到营业执照<br /></span></p>&nbsp;&nbsp;<!--EndFragment--> 
]]>
</description>
</item><item>
<link>http://www.wduw.com/read.php?193</link>
<title><![CDATA[公司总部拍摄的视频]]></title> 
<author>harrie &lt;&gt;</author>
<category><![CDATA[生活笔记]]></category>
<pubDate>Thu, 21 Jan 2010 05:48:29 +0000</pubDate> 
<guid>http://www.wduw.com/read.php?193</guid> 
<description>
<![CDATA[ 
	<br/>此处包含一个多媒体文件，请用网页方式查看。<br/><br /><br /><a href="http://adsoftheworld.net/videos/GAP-desktop.mov" target="_blank">http://adsoftheworld.net/v...</a><br />个人觉得非常有想法，在上海开一个这样子的店也不错<br />
]]>
</description>
</item><item>
<link>http://www.wduw.com/read.php?191</link>
<title><![CDATA[Smarty和gettxt一起做多语言网站的一些记录]]></title> 
<author>harrie &lt;&gt;</author>
<category><![CDATA[生活笔记]]></category>
<pubDate>Tue, 22 Dec 2009 09:02:48 +0000</pubDate> 
<guid>http://www.wduw.com/read.php?191</guid> 
<description>
<![CDATA[ 
	首先我参考了这篇文章<br /><br /><a href="http://tech.ddvip.com/2009-03/1236245280110445.html" target="_blank">http://tech.ddvip.com/2009...</a><br /><br />下载了<a href="http://smarty-gettext.sourceforge.net/" target="_blank">http://smarty-gettext.sour...</a><br />文章里的这句话 写的不对:<br /><span style="background-color: #00cccc">php　-q　./tsmarty2c.php　　*.html　　$package.c</span> <br />应该改为<br /><span style="background-color: #669999">php　-q　./tsmarty2c.php　　*.html　　&gt;$package.c</span><br />
]]>
</description>
</item><item>
<link>http://www.wduw.com/read.php?190</link>
<title><![CDATA[定期备份服务器的解决方案]]></title> 
<author>harrie &lt;&gt;</author>
<category><![CDATA[生活笔记]]></category>
<pubDate>Fri, 27 Nov 2009 07:26:32 +0000</pubDate> 
<guid>http://www.wduw.com/read.php?190</guid> 
<description>
<![CDATA[ 
	首先先估算Mysql和网站各自需要的备份空间,然后定出来多少时间删除旧的备份文件。<br /><br /><p style="text-indent: 2em"><strong>1、创建保存备份文件的路径/mysqldata</strong></p> <p style="text-indent: 2em"> </p> <p style="text-indent: 2em">#mkdir /mysqldata</p> <p style="text-indent: 2em"> </p> <p style="text-indent: 2em"><strong>2、创建/usr/sbin/bakmysql文件</strong></p> <p style="text-indent: 2em"> </p> <p style="text-indent: 2em">#vi /usr/sbin/bakmysql</p> <p style="text-indent: 2em"> </p>&nbsp;&nbsp;<p style="text-indent: 2em"> </p> <p style="text-indent: 2em; background-color: #00cc99">#注意：`符号是TAB键上面的符号，不是ENTER左边的</p><p style="text-indent: 2em; background-color: #00cc99">#还有date后要有一个空格。</p> <p style="text-indent: 2em; background-color: #00cc99"> </p> <p style="text-indent: 2em; background-color: #00cc99">rq=`date +%Y%m%d`<br /></p> <p style="text-indent: 2em; background-color: #00cc99"> </p> <p style="text-indent: 2em; background-color: #00cc99">tar zcvf /mysqldata/mysql$rq.tar.gz /var/lib/mysql</p><p style="text-indent: 2em; background-color: #00cc99">＃删除60天以前的备份文件<br /></p><p style="text-indent: 2em; background-color: #00cc99">find /mysqldata -atime +60 -name '*.tar.gz'-exec rm -f &#123;&#125; ';'<br /></p> <p style="text-indent: 2em"> </p> <p style="text-indent: 2em">或者写成</p> <p style="text-indent: 2em"> </p> <p style="text-indent: 2em; background-color: #33ff66">rq=` date +%Y%m%d `</p> <p style="text-indent: 2em; background-color: #33ff66"> </p> <p style="text-indent: 2em; background-color: #33ff66">mysqldump --all-databases -u root -p密码 &gt; /mysqldata/mysql$rq.sql</p><p style="text-indent: 2em; background-color: #33ff66">rm -f `find -ctime 60` /mysqldata<br /></p> <p style="text-indent: 2em"> </p> <p style="text-indent: 2em">/var/lib/mysql是你数据库文件的目录，部分用户是/usr/local/mysql/data，每个人可能不同</p> <p style="text-indent: 2em"> </p> <p style="text-indent: 2em">/mysqldata/表示保存备份文件的目录，这个每个人也可以根据自己的要求来做。</p> <p style="text-indent: 2em"> </p> <p style="text-indent: 2em"><strong>3、修改文件属性，使其可执行</strong></p> <p style="text-indent: 2em"> </p> <p style="text-indent: 2em"># chmod +x /usr/sbin/bakmysql</p> <p style="text-indent: 2em"> </p> <p style="text-indent: 2em"><strong>4、修改/etc/crontab</strong></p> <p style="text-indent: 2em"> </p> <p style="text-indent: 2em">#vi /etc/crontab</p> <p style="text-indent: 2em"> </p> <p style="text-indent: 2em">在下面添加</p> <p style="text-indent: 2em"> </p> <p style="text-indent: 2em">01 3 * * * root /usr/sbin/bakmysql</p> <p style="text-indent: 2em"> </p> <p style="text-indent: 2em">表示每天3点钟执行备份</p> <p style="text-indent: 2em"> </p> <p style="text-indent: 2em">02 * * * * root /usr/sbin/bakmysql</p><p style="text-indent: 2em">表示每周1，5:02执行备份</p>&nbsp;&nbsp;<p style="text-indent: 2em"> </p>&nbsp;&nbsp;<p style="text-indent: 2em">02 5 * * 1 root /usr/sbin/bakmysql</p><p style="text-indent: 2em">每小时第二分钟备份一次</p> <p style="text-indent: 2em"> </p> <p style="text-indent: 2em"><strong>5、重新启动crond</strong></p> <p style="text-indent: 2em"> </p> <p style="text-indent: 2em"># /etc/rc.d/init.d/crond restart</p> <p style="text-indent: 2em"> </p> <p style="text-indent: 2em">完成。</p> <p style="text-indent: 2em"> </p> <p style="text-indent: 2em">这样每天你在/mysqldata可以看到这样的文件</p> <p style="text-indent: 2em"> </p> <p style="text-indent: 2em">mysql20070929.tar.gz</p> <p style="text-indent: 2em"> </p> <p style="text-indent: 2em">直接下载即可。</p><br />参考文章1：<br /><a href="http://hi.baidu.com/hfr6666/blog/item/f20b71039f15da8fd53f7c29.html" target="_blank">http://hi.baidu.com/hfr666...</a><br />参考文章2：<br /><a href="http://www.linuxforum.net/forum/showflat.php?Board=newbie&amp;Number=222620" target="_blank">http://www.linuxforum.net/...</a><br />参考文章3：<br /><a href="http://www.chinaunix.net/jh/4/277682.html" target="_blank">http://www.chinaunix.net/j...</a><br /><br />补充：一个朋友给我的建议<br />creating backups with rsync is more reliable, faster and<br />stores the backup at a separate disk on a different place.<br />I have daily, weekly and monthly backups with rsync to two fysical<br />different locations with command like:<br />rsync -r&nbsp;&nbsp;rsync://*****.com/sqldata /backup/sqldata<br /><br />可以参考：<a href="http://hi.baidu.com/52hack/blog/item/b7e9acc2a9d302130ff47737.html" target="_blank">http://hi.baidu.com/52hack...</a><br />
]]>
</description>
</item><item>
<link>http://www.wduw.com/read.php?189</link>
<title><![CDATA[Linux 挂载新硬盘的方法]]></title> 
<author>harrie &lt;&gt;</author>
<category><![CDATA[生活笔记]]></category>
<pubDate>Fri, 27 Nov 2009 04:02:43 +0000</pubDate> 
<guid>http://www.wduw.com/read.php?189</guid> 
<description>
<![CDATA[ 
	连接好新硬盘后输入fdisk -l命令看当前磁盘信息<br /> <span style="background-color: #336699">Disk /dev/sda: 146.8 GB, 146815733760 bytes</span><br /> <span style="background-color: #336699">255 heads, 63 sectors/track, 17849 cylinders</span><br /> <span style="background-color: #336699">Units = cylinders of 16065 * 512 = 8225280 bytes</span><br /> <span style="background-color: #336699">Disk identifier: 0xcf3ecf3e</span><br /> <br /> <span style="background-color: #336699">&nbsp;&nbsp; Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blocks&nbsp;&nbsp; Id&nbsp;&nbsp;System</span><br /> <span style="background-color: #336699">/dev/sda1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;13&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;104391&nbsp;&nbsp; 83&nbsp;&nbsp;Linux</span><br /> <span style="background-color: #336699">/dev/sda2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;14&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 274&nbsp;&nbsp;&nbsp;&nbsp; 2096482+&nbsp;&nbsp;82&nbsp;&nbsp;Linux swap / Solaris</span><br /> <span style="background-color: #336699">/dev/sda3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 275&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 17849&nbsp;&nbsp; 141171187+&nbsp;&nbsp;83&nbsp;&nbsp;Linux</span><br /> <br /> <span style="background-color: #336699">Disk /dev/sdb: 146.8 GB, 146815733760 bytes</span><br /> <span style="background-color: #336699">255 heads, 63 sectors/track, 17849 cylinders</span><br /> <span style="background-color: #336699">Units = cylinders of 16065 * 512 = 8225280 bytes</span><br /> <span style="background-color: #336699">Disk identifier: 0x0009c046</span><br /> <br /> 可以看到除了当前的第一块硬盘sda之外还有一块sdb的第二块硬盘，然后用fdisk /dev/sdb 进行分区<br /> 输入m 可以得到帮助信息。<br /> <span style="color: #3399cc">Command action<br />&nbsp;&nbsp;&nbsp;&nbsp;a&nbsp;&nbsp; toggle a bootable flag<br />&nbsp;&nbsp;&nbsp;&nbsp;b&nbsp;&nbsp; edit bsd disklabel<br />&nbsp;&nbsp;&nbsp;&nbsp;c&nbsp;&nbsp; toggle the dos compatibility flag<br />&nbsp;&nbsp;&nbsp;&nbsp;d&nbsp;&nbsp; delete a partition<br />&nbsp;&nbsp;&nbsp;&nbsp;l&nbsp;&nbsp; list known partition types<br />&nbsp;&nbsp;&nbsp;&nbsp;m&nbsp;&nbsp; print this menu<br />&nbsp;&nbsp;&nbsp;&nbsp;n&nbsp;&nbsp; add a new partition<br />&nbsp;&nbsp;&nbsp;&nbsp;o&nbsp;&nbsp; create a new empty DOS partition table<br />&nbsp;&nbsp;&nbsp;&nbsp;p&nbsp;&nbsp; print the partition table<br />&nbsp;&nbsp;&nbsp;&nbsp;q&nbsp;&nbsp; quit without saving changes<br />&nbsp;&nbsp;&nbsp;&nbsp;s&nbsp;&nbsp; create a new empty Sun disklabel<br />&nbsp;&nbsp;&nbsp;&nbsp;t&nbsp;&nbsp; change a partition's system id<br />&nbsp;&nbsp;&nbsp;&nbsp;u&nbsp;&nbsp; change display/entry units<br />&nbsp;&nbsp;&nbsp;&nbsp;v&nbsp;&nbsp; verify the partition table<br />&nbsp;&nbsp;&nbsp;&nbsp;w&nbsp;&nbsp; write table to disk and exit<br />&nbsp;&nbsp;&nbsp;&nbsp;x&nbsp;&nbsp; extra functionality (experts only)</span><br /> <br /> 这里我输入了n 添加一个新的分区 <br /> <span style="color: #339966">Command action<br />&nbsp;&nbsp;&nbsp;&nbsp;e&nbsp;&nbsp; extended<br />&nbsp;&nbsp;&nbsp;&nbsp;p&nbsp;&nbsp; primary partition (1-4)</span><br /> <br /> 输入了1<br /> <span style="background-color: #ff6666">Partition number (1-4): 1</span><br /> 到这里输入该主分区为第几个主分区，由于是新盘我们输入1来分第一个主分区<br /> <span style="color: #ff6699">First cylinder (1-17849, default 1): </span><br /> First Cylinder是选择该分区的起始磁盘数，这里可自定义也可不做选择，默认是1，如无特殊需求强烈建议选择默认，也就是1来分区（直接按回车）<br /> <span style="background-color: #0033ff">Last cylinder or +size or +sizeM or +sizeK (1-17849, default 17849):</span><br /> 接下来是定义该分区的大小，如果按默认（按回车）即是使用全部可用存储额，也可以是用M或m单位结尾的数字(大写M是大B的意思，如果输入1M实际上是X8也就是8m的空间)，这里我们先分一个1G的空间，所以输入+1024m<br /> 或者输入空<br /> 提示<br /> <span style="background-color: #66ff99">Using default value 17849</span><br /> 之后输入w写入分区，等待结束皆可<br /> <br /> <hr />之后会自动返回到Shell<br /> 再输入fdisk -l 可以看到我们刚才分的一个分区，之后用mkfs -t ext3 -c /dev/sdb1进行格式化，如有多个分区可把sdb1改成sdb2 sdb3...以此类推，具体可用fdisk -l看到每个分区的名字<br /> <span style="background-color: #33ff99">&nbsp;&nbsp; Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blocks&nbsp;&nbsp; Id&nbsp;&nbsp;System</span><br /> <span style="background-color: #33ff99">/dev/sda1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;13&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;104391&nbsp;&nbsp; 83&nbsp;&nbsp;Linux</span><br /> <span style="background-color: #33ff99">/dev/sda2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;14&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 274&nbsp;&nbsp;&nbsp;&nbsp; 2096482+&nbsp;&nbsp;82&nbsp;&nbsp;Linux swap / Solaris</span><br /> <span style="background-color: #33ff99">/dev/sda3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 275&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 17849&nbsp;&nbsp; 141171187+&nbsp;&nbsp;83&nbsp;&nbsp;Linux</span><br /> <br /> <span style="background-color: #33ff99">Disk /dev/sdb: 146.8 GB, 146815733760 bytes</span><br /> <span style="background-color: #33ff99">255 heads, 63 sectors/track, 17849 cylinders</span><br /> <span style="background-color: #33ff99">Units = cylinders of 16065 * 512 = 8225280 bytes</span><br /> <span style="background-color: #33ff99">Disk identifier: 0x0009c046</span><br /> <br /> <span style="background-color: #33ff99">&nbsp;&nbsp; Device Boot&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blocks&nbsp;&nbsp; Id&nbsp;&nbsp;System</span><br /> <span style="background-color: #33ff99">/dev/sdb1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 17849&nbsp;&nbsp; 143372061&nbsp;&nbsp; 83&nbsp;&nbsp;Linux</span><br /> <br /> <span style="background-color: #3333ff">Writing superblocks and filesystem accounting information: done</span><br /> 上图蓝色部分是写硬盘卷标的，如不想要卷标可直接按回车，现在分区好了我们用mount 挂载一下该分区即可使用了，这里我把它挂载到mnt目录下，也可以自建一个目录挂载<br /> mount /dev/sdb1 /backup/<br /> 如果想每次系统重启都能自动挂载该分区可修改/etc/fstab文件，在最后加一段 /dev/sdb1&nbsp;&nbsp;&nbsp; /www&nbsp;&nbsp;&nbsp; ext3&nbsp;&nbsp;&nbsp; defaults 1 2 (格式说明：/dev/sdb1 代表哪个分区&nbsp; ext3是该分区的格式 defaults 是挂载时所要设定的参数(只读，读写，启用quota等)，输入defaults包括的参数有(rw、dev、exec、auto、nouser、 async)&nbsp;，1是使用dump是否要记录，0是不要。 2是开机时检查的顺序，是boot系统文件就为1，其他文件系统都为2，如不要检查就为0)<br /> 这里我用<br /> <span style="background-color: #006666">/dev/sdb1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /backup ext3&nbsp;&nbsp;&nbsp; defaults&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 2</span><br /> <br /> <br /> <br /> 参考文章：<a href="http://blog.csdn.net/zhouyin1988/archive/2009/07/05/4322993.aspx" target="_blank">http://blog.csdn.net/zhouy...</a> 这篇文章写的比我的详细清楚，我只是记录下来自己的方法。<br /> <br /> <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=%25E6%2596%25B0%25E7%25A1%25AC%25E7%259B%2598" rel="tag">新硬盘</a>
]]>
</description>
</item><item>
<link>http://www.wduw.com/read.php?188</link>
<title><![CDATA[如果没有迈出那一步，你看到的只有越走越窄的路或者不切实际的想法]]></title> 
<author>harrie &lt;&gt;</author>
<category><![CDATA[生活笔记]]></category>
<pubDate>Sat, 21 Nov 2009 10:27:15 +0000</pubDate> 
<guid>http://www.wduw.com/read.php?188</guid> 
<description>
<![CDATA[ 
	如果没有迈出那一步，你看到的只有越走越窄的路或者不切实际的想法。只有走过，才会发现是自不量力的满头包还是越走越宽的通天大道。<br /><br /><br /><br />无与伦比的美丽&nbsp;&nbsp;（简谱）<br /> <br />词：青峰 曲：青峰&nbsp;&nbsp;<br /> <br />天上风筝在天上飞&nbsp;&nbsp;<br />5555123(32)&nbsp;&nbsp;<br />地上人儿在地上追&nbsp;&nbsp;<br />1111-6353&nbsp;&nbsp;<br />你若担心你不能飞&nbsp;&nbsp;<br />5556123(32)&nbsp;&nbsp;<br />你有我的蝴蝶你有我的蝴蝶&nbsp;&nbsp;<br />1-63231&nbsp;&nbsp;<br />天上风筝在天上飞&nbsp;&nbsp;<br />5555123(32)&nbsp;&nbsp;<br />地上人儿在地上追&nbsp;&nbsp;<br />1111-6353&nbsp;&nbsp;<br />我若担心我不能飞&nbsp;&nbsp;<br />5556123(32)&nbsp;&nbsp;<br />我有你的草原我有你的草原&nbsp;&nbsp;<br />1-63231&nbsp;&nbsp;<br />嘿嘿 你形容我是这个世界上 无与伦比的美丽&nbsp;&nbsp;<br />(32)(3-6) 11-6111111-6 2222213&nbsp;&nbsp;<br />嘿嘿 我知道你才是这世界上 无与伦比的美丽&nbsp;&nbsp;<br />(32)(3-6) 11-6222222-6 2222213&nbsp;&nbsp;<br />嘿嘿 我知道当你需要个夏天 我会拼了命努力&nbsp;&nbsp;<br />325 3-6 11-6111111-6 22223-63&nbsp;&nbsp;<br />嘿嘿 我知道你会做我的掩护 当我是个逃兵&nbsp;&nbsp;<br />32 3-6 11-6111111-6 222213&nbsp;&nbsp;<br /> <br />我若担心我不能飞 嘿嘿&nbsp;&nbsp;<br /> <br />5556123 32 3-6)&nbsp;&nbsp;<br />我有你的草原我有你的草原&nbsp;&nbsp;<br />1-632-61&nbsp;&nbsp;<br />
]]>
</description>
</item><item>
<link>http://www.wduw.com/read.php?187</link>
<title><![CDATA[SSH导入Key]]></title> 
<author>harrie &lt;&gt;</author>
<category><![CDATA[生活笔记]]></category>
<pubDate>Tue, 03 Nov 2009 14:03:32 +0000</pubDate> 
<guid>http://www.wduw.com/read.php?187</guid> 
<description>
<![CDATA[ 
	ssh-keygen -X -f /root/****.pub &gt;&gt; ~/.ssh/authorized_keys<br /><br />或者用vi编辑~/.ssh/authorized_keys 把生成的那段密钥添加进去
]]>
</description>
</item><item>
<link>http://www.wduw.com/read.php?186</link>
<title><![CDATA[云南7日记]]></title> 
<author>harrie &lt;&gt;</author>
<category><![CDATA[生活笔记]]></category>
<pubDate>Tue, 13 Oct 2009 09:56:55 +0000</pubDate> 
<guid>http://www.wduw.com/read.php?186</guid> 
<description>
<![CDATA[ 
	2009年10月1日到2009年10月8日的短暂的云南之行，我想我还需要很长时间的沉淀才能写出一些什么东西来<br />
]]>
</description>
</item>
</channel>
</rss>