<?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>回首望风景</title>
	<atom:link href="http://www.javaems.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.javaems.com</link>
	<description>白桦林</description>
	<lastBuildDate>Sat, 10 Jul 2010 03:16:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>IBM X335 RAID1如何使用LSI配置RAID1</title>
		<link>http://www.javaems.com/2010/07/ibm-x335-raid1-lsi/</link>
		<comments>http://www.javaems.com/2010/07/ibm-x335-raid1-lsi/#comments</comments>
		<pubDate>Sat, 10 Jul 2010 03:10:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[实用]]></category>
		<category><![CDATA[IBM]]></category>
		<category><![CDATA[RAID]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.javaems.com/2010/07/ibm-x335-raid1%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8lsi%e9%85%8d%e7%bd%aeraid1/</guid>
		<description><![CDATA[X服务器中有一些集成LSI SCSI控制器的机型,在开机自检时按CTRL C可以配置两个硬盘的镜像。但是当升级BIOS之后，CTRL C中的一些设置发生了变化，配置方法也较以前的版本有些差异。新版本的配置步骤：1．启动服务器，在自检过程中按CTRL C键，进入到菜单（双通道LSI控制器）2．选择硬盘所在SCSI通道回车3．选择&#60;RAID Properties&#62;,回车。4．发现两个硬盘，选择一个为主盘，在&#60;Array Disk?&#62;按减号。5．系统提示按F3保存磁盘的数据，按Delete删除磁盘上的数据。如果这个磁盘上有操作系统，一定要选择F3.完成之后&#60;Array Disk?&#62;下面的[No]变成[Yes].6. 在第二个磁盘上[No]的位置按减号：7．系统警告这个磁盘上的信息会丢失，按DELETE删除这个磁盘上的所有数据，或者按任意键取消。按DELETE，第二个磁盘的[No]也会变成[Yes],重启系统，开始同步磁盘。旧版本1） 重启主机 按 CTRL-C 进入配置菜单 ，光标放在&#60;LSI1030 &#62;第一个通道上，按&#60;ENTER&#62;继续2） 选择 DEVICE PROPERTIES 可发现硬盘，按&#60;Esc&#62;回到前一菜单3） 选择 MIRRORING PROPERTIES 按&#60;ENTER&#62;继续4） 选择第一块硬盘 ，第三列mirror pair项，按-/+号 将其设为PRIMARY。5） 选择第二块硬盘 ，第三列mirror pair项，按-/+号 将其设为SECONDE6） 按ESC ，选择“SAVE CHANGE THEN EXIT THIS MENU”，按&#60;ENTER&#62;继续7） 按ESC ，选择“EXIT &#8230; <a href="http://www.javaems.com/2010/07/ibm-x335-raid1-lsi/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: Helvetica, Arial, sans-serif; font-size: 14px; border-collapse: collapse;"><br style="word-wrap: break-word; line-height: normal;" /><br style="word-wrap: break-word; line-height: normal;" />X<span class="t_tag" style="word-wrap: break-word; line-height: normal; cursor: pointer; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #ff0000; white-space: nowrap;">服务器</span>中有一些集成LSI SCSI控制器的机型,在开机自检时按CTRL C可以配置两个硬盘的镜像。但是当升级BIOS之后，CTRL C中的一些设置发生了变化，配置方法也较以前的版本有些差异。<br style="word-wrap: break-word; line-height: normal;" /><br style="word-wrap: break-word; line-height: normal;" />新版本的配置步骤：<br style="word-wrap: break-word; line-height: normal;" />1．启动服务器，在自检过程中按CTRL C键，进入到菜单（双通道LSI控制器）<br style="word-wrap: break-word; line-height: normal;" />2．选择硬盘所在SCSI通道回车<br style="word-wrap: break-word; line-height: normal;" />3．选择&lt;RAID Properties&gt;,回车。<br style="word-wrap: break-word; line-height: normal;" />4．发现两个硬盘，选择一个为主盘，在&lt;Array Disk?&gt;按减号。<br style="word-wrap: break-word; line-height: normal;" />5．系统提示按F3保存磁盘的数据，按Delete删除磁盘上的数据。如果这个磁盘上有操作系统，一定要选择F3.完成之后&lt;Array Disk?&gt;下面的[No]变成[Yes].<br style="word-wrap: break-word; line-height: normal;" />6. 在第二个磁盘上[No]的位置按减号：<br style="word-wrap: break-word; line-height: normal;" />7．系统警告这个磁盘上的信息会丢失，按DELETE删除这个磁盘上的所有数据，或者按任意键取消。按DELETE，第二个磁盘的[No]也会变成[Yes],重启系统，开始同步磁盘。<br style="word-wrap: break-word; line-height: normal;" /><br style="word-wrap: break-word; line-height: normal;" />旧版本<br style="word-wrap: break-word; line-height: normal;" />1） 重启主机 按 CTRL-C 进入配置菜单 ，光标放在&lt;LSI1030 &gt;第一个通道上，按&lt;ENTER&gt;继续<br style="word-wrap: break-word; line-height: normal;" />2） 选择 DEVICE PROPERTIES 可发现硬盘，按&lt;Esc&gt;回到前一菜单<br style="word-wrap: break-word; line-height: normal;" />3） 选择 MIRRORING PROPERTIES 按&lt;ENTER&gt;继续<br style="word-wrap: break-word; line-height: normal;" />4） 选择第一块硬盘 ，第三列mirror pair项，按-/+号 将其设为PRIMARY。<br style="word-wrap: break-word; line-height: normal;" />5） 选择第二块硬盘 ，第三列mirror pair项，按-/+号 将其设为SECONDE<br style="word-wrap: break-word; line-height: normal;" />6） 按ESC ，选择“SAVE CHANGE THEN EXIT THIS MENU”，按&lt;ENTER&gt;继续<br style="word-wrap: break-word; line-height: normal;" />7） 按ESC ，选择“EXIT THE CONFIGURATION UTITILY”，按&lt;ENTER&gt;继续</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.javaems.com/2010/07/ibm-x335-raid1-lsi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>白桦林</title>
		<link>http://www.javaems.com/2010/07/birch/</link>
		<comments>http://www.javaems.com/2010/07/birch/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 17:32:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[生活]]></category>

		<guid isPermaLink="false">http://www.javaems.com/?p=404</guid>
		<description><![CDATA[白桦林 梦想要去的地方 在何方 不见你的身影 我心惆怅 寂寞里有希望 是因你 我还有梦想 白桦林 终有一日 相聚一起 诉说梦想]]></description>
			<content:encoded><![CDATA[<p>白桦林</p>
<p>梦想要去的地方</p>
<p>在何方</p>
<p>不见你的身影</p>
<p>我心惆怅</p>
<p>寂寞里有希望</p>
<p>是因你</p>
<p>我还有梦想</p>
<p>白桦林</p>
<p>终有一日</p>
<p>相聚一起</p>
<p>诉说梦想</p>
]]></content:encoded>
			<wfw:commentRss>http://www.javaems.com/2010/07/birch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>时隔一年</title>
		<link>http://www.javaems.com/2010/06/for-one-year/</link>
		<comments>http://www.javaems.com/2010/06/for-one-year/#comments</comments>
		<pubDate>Fri, 25 Jun 2010 16:42:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[生活]]></category>

		<guid isPermaLink="false">http://www.javaems.com/?p=397</guid>
		<description><![CDATA[时隔一年没有更新自己的博客了，新疆去年的事件导致我与网络断了将近一年，刚开网的日子就想着到博客上庆祝一番，却发现自己的空间IP被墙了，也没心情写了。 其实也没什么大不了的，仔细想想，开网这段时间到现在，自己又做了什么呢。 这一年自己的变化其实挺大，最大的变化是角色的转变，现在当爸爸了，看着宝宝一天天长大，他哇啦哇啦的开始学着说话，心中的喜悦真是无法言表。也感觉压力大了，生活依然老样子，也没什么改善，老听着说涨工资，快一年了都没消息。不过，至少还是幸福的。这也是最让我安慰的。 这些日子，感觉很迷茫，像是失去了些什么，不知道方向在哪了，前面面对的是个十字路口，却不知道该如何选择。记得初中时候班主任就对我们说，在你们的人生道路上有许多转折点，一定要把握好了，中考，高考，大学毕业，就这样一路走来了，现在都是奔三的人了，却在这一刻感受到了人生的迷茫，也许以前也迷茫过，但现在都不记得了。 时隔一年，网络通了，心却开始漂泊了]]></description>
			<content:encoded><![CDATA[<p>时隔一年没有更新自己的博客了，新疆去年的事件导致我与网络断了将近一年，刚开网的日子就想着到博客上庆祝一番，却发现自己的空间IP被墙了，也没心情写了。</p>
<p>其实也没什么大不了的，仔细想想，开网这段时间到现在，自己又做了什么呢。</p>
<p>这一年自己的变化其实挺大，最大的变化是角色的转变，现在当爸爸了，看着宝宝一天天长大，他哇啦哇啦的开始学着说话，心中的喜悦真是无法言表。也感觉压力大了，生活依然老样子，也没什么改善，老听着说涨工资，快一年了都没消息。不过，至少还是幸福的。这也是最让我安慰的。</p>
<p>这些日子，感觉很迷茫，像是失去了些什么，不知道方向在哪了，前面面对的是个十字路口，却不知道该如何选择。记得初中时候班主任就对我们说，在你们的人生道路上有许多转折点，一定要把握好了，中考，高考，大学毕业，就这样一路走来了，现在都是奔三的人了，却在这一刻感受到了人生的迷茫，也许以前也迷茫过，但现在都不记得了。</p>
<p>时隔一年，网络通了，心却开始漂泊了</p>
]]></content:encoded>
			<wfw:commentRss>http://www.javaems.com/2010/06/for-one-year/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Under mountain and valley</title>
		<link>http://www.javaems.com/2009/06/under-mountain-and-valley/</link>
		<comments>http://www.javaems.com/2009/06/under-mountain-and-valley/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 16:27:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[天籁]]></category>

		<guid isPermaLink="false">http://www.javaems.com/?p=389</guid>
		<description><![CDATA[http://www.mashow.com.tw/joomla//images/stories/audio/album/arctic_refuge/ar_under_mountain_and_valley.mp3]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mashow.com.tw/joomla//images/stories/audio/album/arctic_refuge/ar_under_mountain_and_valley.mp3">http://www.mashow.com.tw/joomla//images/stories/audio/album/arctic_refuge/ar_under_mountain_and_valley.mp3</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.javaems.com/2009/06/under-mountain-and-valley/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://www.mashow.com.tw/joomla//images/stories/audio/album/arctic_refuge/ar_under_mountain_and_valley.mp3" length="2207370" type="audio/mpeg" />
		</item>
		<item>
		<title>Google的一份面试题集</title>
		<link>http://www.javaems.com/2009/06/google-mianshi/</link>
		<comments>http://www.javaems.com/2009/06/google-mianshi/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 13:59:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[实用]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[Heroes]]></category>

		<guid isPermaLink="false">http://www.javaems.com/?p=385</guid>
		<description><![CDATA[下面Google的一份面试题集，看看你是否能够回答出来。其中很多问题都是开放式的，正确的解答有许多种，所以发挥你的Creativity and Imagination. 1.一辆学校班车里面能装多少个高尔夫球? 2.你被缩小到只有硬币厚度那么点高(不是压扁，是按比例缩小)，然后被扔到一个空的玻璃搅拌器中，搅拌刀片一分钟后就开始转动。你怎么办? 3.要是让你清洗整个西雅图的所有窗子，你会收取多少费用? 4.怎么才能识别出电脑的内存堆栈是向上溢出还是向下溢出? 5.你要向你8岁的侄子解释什么是数据库，请用三句话完成。 6.时钟的指针一天内会重合几次? 7.你需要从A地去B地，但你不知道能不能到，这时该怎么办? 8.好比你有一个衣橱，里面塞满了各种衬衫，你会怎么整理这些衬衫，好让你以后找衬衫的时候容易些? 9. 有个小镇有100对夫妇，每个丈夫都在欺骗他的妻子。妻子们都无法识破自己丈夫的谎言，但是她们却能知道其他任何一个男人是否在撒谎。镇上的法律规定不准通奸，妻子一旦证明丈夫不忠就应该立刻杀死他，镇上所有妇女都必须严格遵守这项法律。有一天，镇上的女王宣布，至少有一个丈夫是不忠的。这是怎么发生的呢? 10.在一个重男轻女的国家里，每个家庭都想生男孩，如果他们生的孩子是女孩，就再生一个，直到生下的是男孩为止。这样的国家，男女比例会是多少? 11.如果在高速公路上30分钟内到一辆车开过的几率是0.95，那么在10分钟内看到一辆车开过的几率是多少 (假设为常概率条件下) 12.如果你看到钟的时间是3:15，那一刻时针和分针的夹角是多少?(肯定不是0度!) 13.4 个人晚上要穿过一座索桥回到他们的营地。可惜他们手上只有一支只能再坚持17分钟的手电筒。通过索桥必须要拿着手电，而且索桥每次只能撑得起两个人的份量。这四个人过索桥的速度都不一样，第一个走过索桥需要1分钟，第二个2分钟，第三个5分钟，最慢的那个要10分钟。他们怎样才能在17分钟内全部走过索桥? 14.你和朋友参加聚会，包括你们两人在内一共有10个人在场。你朋友想跟你打赌，说这里每有一个人生日和你相同，你就给他1元，每有一个人生日和你不同，他给你2元。你会接受么? 15.全世界有多少个钢琴调音师? 16.你有8个一样大小的球，其中7个的重量是一样的，另一个比较重。怎样能够用天平仅称两次将那个重一些的球找出来。 17.有5个海盗，按照等级从5到1排列。最大的海盗有权提议他们如何分享100枚金币。但其他人要对此表决，如果多数反对，那他就会被杀死。他应该提出怎样的方案，既让自己拿到尽可能多的金币又不会被杀死?(提示：有一个海盗能拿到98%的金币)]]></description>
			<content:encoded><![CDATA[<p>下面Google的一份面试题集，看看你是否能够回答出来。其中很多问题都是开放式的，正确的解答有许多种，所以发挥你的Creativity and Imagination.</p>
<p>1.一辆学校班车里面能装多少个高尔夫球?</p>
<p>2.你被缩小到只有硬币厚度那么点高(不是压扁，是按比例缩小)，然后被扔到一个空的玻璃搅拌器中，搅拌刀片一分钟后就开始转动。你怎么办?</p>
<p>3.要是让你清洗整个西雅图的所有窗子，你会收取多少费用?<span id="more-385"></span></p>
<p>4.怎么才能识别出电脑的内存堆栈是向上溢出还是向下溢出?</p>
<p>5.你要向你8岁的侄子解释什么是数据库，请用三句话完成。</p>
<p>6.时钟的指针一天内会重合几次?</p>
<p>7.你需要从A地去B地，但你不知道能不能到，这时该怎么办?</p>
<p>8.好比你有一个衣橱，里面塞满了各种衬衫，你会怎么整理这些衬衫，好让你以后找衬衫的时候容易些?</p>
<p>9. 有个小镇有100对夫妇，每个丈夫都在欺骗他的妻子。妻子们都无法识破自己丈夫的谎言，但是她们却能知道其他任何一个男人是否在撒谎。镇上的法律规定不准通奸，妻子一旦证明丈夫不忠就应该立刻杀死他，镇上所有妇女都必须严格遵守这项法律。有一天，镇上的女王宣布，至少有一个丈夫是不忠的。这是怎么发生的呢?</p>
<p>10.在一个重男轻女的国家里，每个家庭都想生男孩，如果他们生的孩子是女孩，就再生一个，直到生下的是男孩为止。这样的国家，男女比例会是多少?</p>
<p>11.如果在高速公路上30分钟内到一辆车开过的几率是0.95，那么在10分钟内看到一辆车开过的几率是多少 (假设为常概率条件下)</p>
<p>12.如果你看到钟的时间是3:15，那一刻时针和分针的夹角是多少?(肯定不是0度!)</p>
<p>13.4 个人晚上要穿过一座索桥回到他们的营地。可惜他们手上只有一支只能再坚持17分钟的手电筒。通过索桥必须要拿着手电，而且索桥每次只能撑得起两个人的份量。这四个人过索桥的速度都不一样，第一个走过索桥需要1分钟，第二个2分钟，第三个5分钟，最慢的那个要10分钟。他们怎样才能在17分钟内全部走过索桥?</p>
<p>14.你和朋友参加聚会，包括你们两人在内一共有10个人在场。你朋友想跟你打赌，说这里每有一个人生日和你相同，你就给他1元，每有一个人生日和你不同，他给你2元。你会接受么?</p>
<p>15.全世界有多少个钢琴调音师?</p>
<p>16.你有8个一样大小的球，其中7个的重量是一样的，另一个比较重。怎样能够用天平仅称两次将那个重一些的球找出来。</p>
<p>17.有5个海盗，按照等级从5到1排列。最大的海盗有权提议他们如何分享100枚金币。但其他人要对此表决，如果多数反对，那他就会被杀死。他应该提出怎样的方案，既让自己拿到尽可能多的金币又不会被杀死?(提示：有一个海盗能拿到98%的金币)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.javaems.com/2009/06/google-mianshi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>晚霞</title>
		<link>http://www.javaems.com/2009/06/sunset-glow/</link>
		<comments>http://www.javaems.com/2009/06/sunset-glow/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 18:08:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[摄影]]></category>
		<category><![CDATA[晚霞]]></category>

		<guid isPermaLink="false">http://www.javaems.com/?p=377</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.javaems.com/wp-content/uploads/2009/06/wanxia6.jpg" rel="lightbox[377]"></a><a href="http://www.javaems.com/wp-content/uploads/2009/06/wanxia4.jpg" rel="lightbox[377]"></a><a href="http://www.javaems.com/wp-content/uploads/2009/06/wanxia3.jpg" rel="lightbox[377]"></a><a href="http://www.javaems.com/wp-content/uploads/2009/06/wanxia1.jpg" rel="lightbox[377]"></a><a href="http://www.javaems.com/wp-content/uploads/2009/06/wanxia.jpg" rel="lightbox[377]"></a>
<a href='http://www.javaems.com/2009/06/sunset-glow/wanxia/' title='wanxia'><img width="150" height="150" src="http://www.javaems.com/wp-content/uploads/2009/06/wanxia-150x150.jpg" class="attachment-thumbnail" alt="wanxia" title="wanxia" /></a>
<a href='http://www.javaems.com/2009/06/sunset-glow/wanxia1/' title='wanxia1'><img width="150" height="150" src="http://www.javaems.com/wp-content/uploads/2009/06/wanxia1-150x150.jpg" class="attachment-thumbnail" alt="wanxia1" title="wanxia1" /></a>
<a href='http://www.javaems.com/2009/06/sunset-glow/wanxia3/' title='wanxia3'><img width="150" height="150" src="http://www.javaems.com/wp-content/uploads/2009/06/wanxia3-150x150.jpg" class="attachment-thumbnail" alt="wanxia3" title="wanxia3" /></a>
<a href='http://www.javaems.com/2009/06/sunset-glow/wanxia4/' title='wanxia4'><img width="150" height="150" src="http://www.javaems.com/wp-content/uploads/2009/06/wanxia4-150x150.jpg" class="attachment-thumbnail" alt="wanxia4" title="wanxia4" /></a>
<a href='http://www.javaems.com/2009/06/sunset-glow/wanxia5/' title='wanxia5'><img width="150" height="150" src="http://www.javaems.com/wp-content/uploads/2009/06/wanxia5-150x150.jpg" class="attachment-thumbnail" alt="wanxia5" title="wanxia5" /></a>
<a href='http://www.javaems.com/2009/06/sunset-glow/wanxia6/' title='wanxia6'><img width="150" height="150" src="http://www.javaems.com/wp-content/uploads/2009/06/wanxia6-150x150.jpg" class="attachment-thumbnail" alt="wanxia6" title="wanxia6" /></a>
</p>
<p><a href="http://www.javaems.com/wp-content/uploads/2009/06/wanxia5.jpg" rel="lightbox[377]"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.javaems.com/2009/06/sunset-glow/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>默认安装debian后使用drupal的问题</title>
		<link>http://www.javaems.com/2009/06/debian-drupal/</link>
		<comments>http://www.javaems.com/2009/06/debian-drupal/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 15:19:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[实用]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[rewrite]]></category>

		<guid isPermaLink="false">http://www.javaems.com/?p=375</guid>
		<description><![CDATA[在安装完debian，后使用apt-get 工具安装apahce,mysql.php5,安装完drupal后，在使用过程中，遇到一些问题 1.用户注册时接收不到验证邮件。 2.apache没有启用rewrite，不能使用drupal的clean url。 3.uploadprogress没用启用（在传送大文件时的进度条显示）。 4.在debian5下配置php,其extension并不在php.ini中。 解决方法： 1.用户接收不到验证邮件是由于mail()肯定没有发送成功，查阅了一下发现，mail()要使用sendmail.debian默认安装时没有安装sendmail,我使用sudo apt-get install sendmail 不成功，提示包依赖sendmail-bin,但其无法安装，所以改用sudo apt-get install sendmail-bin,安装顺利，重新启动apache后，发面验证邮件可以发出了。 2.第二个问题，前面有提过，只简单使用一个命令，便可搞定 #sudo a2enmod rewrite 重新加载apache2，便可使用clean url了 3.这个问题的解决是参考了http://www.javaems.com/archives/364 来解决，不过在使用程中，下载解压文件后，定位到解压目录 使用phpize发面没有这个命令。  这个命令是在php-dev中，所以要先安装php-dev 然后使用 phpize,./configure成功，便在make过程中还是出现ERROR make not found. 哈哈，竟然连make 工具都没有安装，debian也太小心眼了。 #sudo apt-get install make 然后make make install &#8230; <a href="http://www.javaems.com/2009/06/debian-drupal/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>在安装完debian，后使用apt-get 工具安装apahce,mysql.php5,安装完drupal后，在使用过程中，遇到一些问题</p>
<p>1.用户注册时接收不到验证邮件。</p>
<p>2.apache没有启用rewrite，不能使用drupal的clean url。</p>
<p>3.uploadprogress没用启用（在传送大文件时的进度条显示）。</p>
<p>4.在debian5下配置php,其extension并不在php.ini中。</p>
<p>解决方法：</p>
<p>1.用户接收不到验证邮件是由于mail()肯定没有发送成功，查阅了一下发现，mail()要使用sendmail.debian默认安装时没有安装sendmail,我使用sudo apt-get install sendmail 不成功，提示包依赖sendmail-bin,但其无法安装，所以改用sudo apt-get install sendmail-bin,安装顺利，重新启动apache后，发面验证邮件可以发出了。</p>
<p>2.第二个问题，前面有提过，只简单使用一个命令，便可搞定</p>
<p>#sudo a2enmod rewrite</p>
<p>重新加载apache2，便可使用clean url了</p>
<p>3.这个问题的解决是参考了<a href="http://www.javaems.com/archives/364">http://www.javaems.com/archives/364</a></p>
<p>来解决，不过在使用程中，下载解压文件后，定位到解压目录</p>
<p>使用phpize发面没有这个命令。</p>
<p> 这个命令是在php-dev中，所以要先安装php-dev</p>
<p>然后使用 phpize,./configure成功，便在make过程中还是出现ERROR make not found.</p>
<p>哈哈，竟然连make 工具都没有安装，debian也太小心眼了。</p>
<p>#sudo apt-get install make</p>
<p>然后make</p>
<p>make install ，这只是安装了，uploadprogress的扩展，要在php的extension中启用。</p>
<p>定位到/etc/php5/conf.d/</p>
<p>#sudo gedit uploadprogress.ini</p>
<p>输入：extension=uploadprogress.so</p>
<p>4.#ls /etc/php5/conf.d</p>
<p>mysql.ini curl.ini等等吧，所以php的extension启用在这里。</p>
<p>备查！！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.javaems.com/2009/06/debian-drupal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Earth is a Spy</title>
		<link>http://www.javaems.com/2009/06/google-earth-is-a-spy/</link>
		<comments>http://www.javaems.com/2009/06/google-earth-is-a-spy/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 18:02:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[生活]]></category>
		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://www.javaems.com/archives/369</guid>
		<description><![CDATA[Google earth is a spy <a href="http://www.javaems.com/2009/06/google-earth-is-a-spy/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Only a picture from Google earth.It&#8217;s show the north korea<br />
<a href="http://www.javaems.com/wp-content/uploads/2009/06/nkorea.jpg" rel="lightbox[369]"><img style="max-width: 800px;" src="http://www.javaems.com/wp-content/uploads/2009/06/nkorea.jpg" alt="" width="482" height="416" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.javaems.com/2009/06/google-earth-is-a-spy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>老小孩们节日快乐</title>
		<link>http://www.javaems.com/2009/06/%e8%80%81%e5%b0%8f%e5%ad%a9%e4%bb%ac%e8%8a%82%e6%97%a5%e5%bf%ab%e4%b9%90/</link>
		<comments>http://www.javaems.com/2009/06/%e8%80%81%e5%b0%8f%e5%ad%a9%e4%bb%ac%e8%8a%82%e6%97%a5%e5%bf%ab%e4%b9%90/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 17:36:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[生活]]></category>
		<category><![CDATA[爱有天意]]></category>

		<guid isPermaLink="false">http://www.javaems.com/?p=366</guid>
		<description><![CDATA[6.1儿童节 <a href="http://www.javaems.com/2009/06/%e8%80%81%e5%b0%8f%e5%ad%a9%e4%bb%ac%e8%8a%82%e6%97%a5%e5%bf%ab%e4%b9%90/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>长大了</p>
<p>但永远都是孩子<span id="more-366"></span></p>
<p>6.1节来了</p>
<p>我所认识的</p>
<p>老小男孩</p>
<p>和</p>
<p>老小女孩</p>
<p>们</p>
<p>节日快乐</p>
<p>了</p>
]]></content:encoded>
			<wfw:commentRss>http://www.javaems.com/2009/06/%e8%80%81%e5%b0%8f%e5%ad%a9%e4%bb%ac%e8%8a%82%e6%97%a5%e5%bf%ab%e4%b9%90/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing PECL uploadprogress Extension for Drupal FileField 3.0 Module</title>
		<link>http://www.javaems.com/2009/06/installing-pecl-uploadprogress-extension-for-drupal-filefield-30-module/</link>
		<comments>http://www.javaems.com/2009/06/installing-pecl-uploadprogress-extension-for-drupal-filefield-30-module/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 17:31:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Unix]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[实用]]></category>
		<category><![CDATA[pecl]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.javaems.com/?p=364</guid>
		<description><![CDATA[installng-pecl-uploadprogress-extension-drupal-filefield-module <a href="http://www.javaems.com/2009/06/installing-pecl-uploadprogress-extension-for-drupal-filefield-30-module/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>搜索找到的方法，备查</p>
<p>FileField and ImageField 3.0 have just been released and bring with them the ability to display an upload progress meter in the FileField widget while a file is being uploaded. As ImageField uses the FileField widget this works for ImageFields too.</p>
<p>The original article <a class="ext" href="http://www.lullabot.com/blog/filefield-and-imagefield-30-drupal-6-released">FileField and ImageField 3.0 for Drupal 6 Released</a> points out:</p>
<blockquote><p>Probably the most exciting improvement is the addition of upload progress indication. This enhancement requires the PECL uploadprogress PHP extension, but adds a real asset to sites that use FileField for podcasts, videos, or other large files.</p></blockquote>
<p><img class="blog-image" src="http://freestylesystems.co.uk/files/blog/uploadprogress.png" alt="" width="418" height="123" /></p>
<p><span id="more-364"></span></p>
<p>It took me a while to figure out how to install this extension so I thought I&#8217;d do a quick post about it. These instructions are probably valid for other PECL extensions but since this is the only one I have installed I wouldn&#8217;t like to say for sure.</p>
<h3><a name="install-unix" href="http://freestylesystems.co.uk/files/blog/installng-pecl-uploadprogress-extension-drupal-filefield-module#install-unix">Installation on Unix/Mac</a></h3>
<div class="help"><strong>Please note:</strong> These instructions are only valid if you have problems running <span class="geshifilter"><code class="geshifilter-text">$ pecl install uploadprogress</code></span>.</div>
<ol>
<li>Download the <a class="ext" href="http://pecl.php.net/package/uploadprogress">PECL uploadprogress extension</a></li>
<li>Extract the uploadprogress-1.x.x.tgz archive, cd into the extracted folder and run these commands in Terminal:
<div class="geshifilter">
<div class="php geshifilter-php" style="font-family: monospace;">$ phpize            <span class="co2"># prepares the PHP extension for compiling</span><br />
$ <span class="sy0">./</span>configure<br />
$ make<br />
$ sudo make install</div>
</div>
</li>
<li>Check that the directory for the extensions is correct. The last line of the output returned from the <span class="geshifilter"><code class="geshifilter-text">$ make install</code></span> command (on my system) is:
<p><span class="geshifilter"><code class="geshifilter-text">Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20060613/</code></span>.</p>
<p>Open php.ini and edit the <span class="geshifilter"><code class="geshifilter-text">extension_dir</code></span> directive, replacing it with this path.</li>
<li>Add the extension to php.ini by adding this line <span class="geshifilter"><code class="geshifilter-text">extension=uploadprogress.so</code></span></li>
<li>Restart apache</li>
</ol>
<p>You should now have the PECL uploadprogress extension installed.</p>
<h3><a name="install-windows" href="http://freestylesystems.co.uk/blog/installng-pecl-uploadprogress-extension-drupal-filefield-module#install-windows">Installation on Windows</a></h3>
<p>It&#8217;s very simple to install on Windows:</p>
<ol>
<li>Copy the uploadprogress.dll file from <a class="ext" href="http://pecl4win.php.net/">pecl4win</a> into the path set for <span class="geshifilter"><code class="geshifilter-text">extension_dir</code></span> in php.ini.</li>
<li>Add <span class="geshifilter"><code class="geshifilter-text">extension=uploadprogress.dll</code></span> to php.ini.</li>
<li>Restart apache.</li>
</ol>
<p>The pecl4win site was down for maintenance at time of writing so you could try <a class="ext" href="http://blog.liip.ch/archive/2009/03/09/upload-progress-meter-for-windows-the-next-take.html">here</a> in the meantime (thanks to <a class="ext" href="http://c-cohen.blogspot.com/">chriscohen</a> for the link).</p>
<p>If you&#8217;re using using WampServer 2 then it already comes with php_uploadprogress.dll installed (thanks again to <a class="ext" href="http://c-cohen.blogspot.com/">chriscohen</a> for pointing this out and testing that both methods work).</p>
<h3><a name="increase-max-filefize" href="http://freestylesystems.co.uk/blog/installng-pecl-uploadprogress-extension-drupal-filefield-module#increase-max-filefize">Increasing Maximum Filesize</a></h3>
<p>To increase the maximum filesize you need to set 2 directives:</p>
<ul>
<li><a class="ext" href="http://us3.php.net/manual/en/ini.core.php#ini.upload-max-filesize">upload_max_filesize</a> &#8211; Maximum allowed size for uploaded files.</li>
<li><a class="ext" href="http://us3.php.net/manual/en/ini.core.php#ini.post-max-size">post_max_size</a> &#8211; Maximum size of POST data that PHP will accept.</li>
</ul>
<p>Generally you should set <span class="geshifilter"><code class="geshifilter-text">post_max_size</code></span> to double what you set <span class="geshifilter"><code class="geshifilter-text">upload_max_filesize</code></span> to. This means you can upload 2 files of your maximum limit for each POST and seems like a good middle ground.</p>
<p>The <span class="geshifilter"><code class="geshifilter-text">memory_limit</code></span> directive should also be set above the value of <span class="geshifilter"><code class="geshifilter-text">post_max_size</code></span> so your server can handle the uploads.</p>
<p>There are 2 ways you can set this directive:</p>
<h4>php.ini</h4>
<p>Edit php.ini and modify these directives:</p>
<div class="geshifilter">
<div class="php geshifilter-php" style="font-family: monospace;">upload_max_filesize <span class="sy0">=</span> 128M<br />
post_max_size <span class="sy0">=</span> 256M</div>
</div>
<h4>.htaccess</h4>
<p>Edit .htaccess and add:</p>
<div class="geshifilter">
<div class="php geshifilter-php" style="font-family: monospace;">php_value upload_max_filesize 128M<br />
php_value post_max_size 256M</div>
</div>
<p>Adjust 128M and 256M with the sizes you require.</p>
<h3><a name="increase-memory-limit" href="http://freestylesystems.co.uk/blog/installng-pecl-uploadprogress-extension-drupal-filefield-module#increase-memory-limit">Increasing PHP&#8217;s Memory Limit</a></h3>
<p>You could edit the <span class="geshifilter"><code class="geshifilter-text">memory_limit</code></span> directive in php.ini but I personally like to set that directive on a site-by-site basis. This helps to keep sites that don&#8217;t need such a large <span class="geshifilter"><code class="geshifilter-text">memory_limit</code></span> nice and efficient.</p>
<p>Instead you can set the directive in settings.php by adding this line just below the other <span class="geshifilter"><code class="geshifilter-text">ini_set</code></span> lines:</p>
<div class="geshifilter">
<div class="php geshifilter-php" style="font-family: monospace;"><a class="ext" href="http://www.php.net/ini_set"><span class="kw3">ini_set</span></a><span class="br0">(</span><span class="st_h">&#8216;memory_limit&#8217;</span><span class="sy0">,</span>             <span class="st_h">&#8217;256M&#8217;</span><span class="br0">)</span><span class="sy0">;</span></div>
<div class="php geshifilter-php" style="font-family: monospace;"><span class="sy0">最好还是看原文吧</span></div>
<div class="php geshifilter-php" style="font-family: monospace;"><span class="sy0">URL：<a href="http://freestylesystems.co.uk/blog/installng-pecl-uploadprogress-extension-drupal-filefield-module">http://freestylesystems.co.uk/blog/installng-pecl-uploadprogress-extension-drupal-filefield-module</a></span></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.javaems.com/2009/06/installing-pecl-uploadprogress-extension-for-drupal-filefield-30-module/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
