<?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>Mr. 21 &#187; Windows</title>
	<atom:link href="http://mr21.in/tag/windows/feed" rel="self" type="application/rss+xml" />
	<link>http://mr21.in</link>
	<description>KunMing &#124; System Administrator &#124; Blogger &#124; G Fans &#124; OS X</description>
	<lastBuildDate>Sun, 22 Aug 2010 13:34:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<atom:link rel='hub' href='http://mr21.in/?pushpress=hub'/>
		<item>
		<title>MacBook Pro &#8211; Fan Control</title>
		<link>http://mr21.in/2010-08/macbook-pro-fan-control.html</link>
		<comments>http://mr21.in/2010-08/macbook-pro-fan-control.html#comments</comments>
		<pubDate>Sun, 22 Aug 2010 13:33:01 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[软言软语]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Fan]]></category>
		<category><![CDATA[MacBook]]></category>
		<category><![CDATA[MBP]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Snow Leopard]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=365</guid>
		<description><![CDATA[这篇文章主要介绍了在Mac OS X、Ubuntu Lucid和Windows 7三个系统平台下对MacBook Pro（以下简称：MBP）的风扇控制，因为不知道为什么的原因，我个人和不少人的MBP都表现出风扇调速迟钝的问题，通常... ]]></description>
			<content:encoded><![CDATA[<p>这篇文章主要介绍了在Mac OS X、Ubuntu Lucid和Windows 7三个系统平台下对MacBook Pro（以下简称：MBP）的风扇控制，因为不知道为什么的原因，我个人和不少人的MBP都表现出风扇调速迟钝的问题，通常都是2000RPM左右，然后等到机器超过90摄氏度后风扇开始提速到6000RPM进行散热，但这个肯定不是我们需要的效果，我们要的是，要么自己控制，要么自动调整。</p>
<h3>Mac OS X</h3>
<div class="imgdivimg2"><a href="http://www.zooomr.com/photos/cmb/9406199/" title="Photo Sharing"><img src="http://static.zooomr.com/images/9406199_0937fd75d4_m.jpg" width="240" height="81" /></a></div>
<p>这个身为MBP原生的，与硬件契合度最高的系统同样存在风扇自动调整的问题，至少在我重置了N次SMC的情况依然还是只能达到90度附近才会提速，于是只能用软件来对付了，我个人觉得效果比较好的是<strong>Fan Control</strong>。</p>
<p>名称：Fan Control<br />
系统：Leopard, Snow Leopard<br />
下载：<a href="http://www.lobotomo.com/products/FanControl/">http://www.lobotomo.com/products/FanControl/</a></p>
<p>安装之后，会在“系统偏好设置”里面增加一个叫“Fan Control”的设置面板。<br />
<img src="http://www.lobotomo.com/products/FanControl/images/screenshot.gif" alt="" /><br />
进去之后三项设置，<br />
Base Speed，初始速度，系统默认是2000RPM，系统启动之后会以这个初始速度为基准；<br />
Lower Threshold，温度下限阀值，这个是配合Base Speed工作的，在这个温度下，转速是Base Speed；<br />
Upper Threshold，温度上限阀值，这个是值达到时系统将以最高转速跑风扇，我的MBP 13是6200。<br />
风扇的转速会自动在Lower和Upper之间自动调整。<span id="more-365"></span></p>
<h3>Ubuntu Lucid (10.04)</h3>
<p>遇到Linux有个好处，直接修改配置文件就行，可以省掉软件了，但是这个没法进行曲线调速了，所以通常我都是直接把速度一步到位直接上到5500RPM，喜欢6000RPM的也行，反正风扇的作用就是处理积热嘛，往高处提一下没有坏处的~</p>
<p>操作如下：<br />
开启终端（Terminal），输入以下指令，之后需要输入你当前用户的密码，然后回车，</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">sh</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;echo 5000 &gt; /sys/devices/platform/applesmc.768/fan1_min&quot;</span></pre></td></tr></table></div>

<p>通过修改fan1_min中的数字“1”，可以调整各个不同风扇的转速，因为MBP 13只有一个风扇，所以也只有fan1，像MBP 15这一类的，可以分别调整fan1和fan2的转速等。并且每次开机的话系统都会自动重置，所以如果需要每次开机都保持一个转速的话，可以自行修改rc脚本。</p>
<h3>Windows 7</h3>
<p>在Windows下也是需要依靠第三方软件的，据说是有类似于OSX下Fan Control那样的自动调速软件，不过我个人还是比较喜欢把速度调整到5500左右，一次性解决问题。软件叫“Mac/SMC Fan Control for Windows (+ Temp) ”。</p>
<p>名称：Mac/SMC Fan Control for Windows (+ Temp)<br />
平台：32-bit MS Windows (NT/2000/XP), 64-bit MS Windows, Vista, WinXP.<br />
下载：<a href="http://sourceforge.net/projects/macfan/">http://sourceforge.net/projects/macfan/</a></p>
<p>官方没有提到Win7，但是我的Win7-64bit也没有问题的。这是一个基于CLI（CommandLine Interface，命令行界面）的程序，而且同时还需要管理员权限，还要带参数，使用起来稍微有点麻烦，我个人是这么处理的：</p>
<ol>
<li>首先将解压缩后的文件放在\windows\mf目录；</li>
<li>同时在目录里面增加一个批处理文件<strong>mf.cmd</strong>，内容如下：

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="txt" style="font-family:monospace;">@echo off
@echo Input the fan speed (2000-6200): 
set /p speed=
C:\Windows\mf\MacFanx64.exe %speed%</pre></td></tr></table></div>

</li>
<li>之后按住Alt键，把<strong>mf.cmd</strong>拖到桌面上，之后在mf.cmd上右键，选择“属性”，选择“快捷方式”页面，点击“高级”，之后把“以管理员权限运行”勾上。</li>
<li>双击桌面上的“mf.cmd &#8211; 快捷方式”，之后输入你想要调整的风扇转速，回车即可。</li>
</ol>
<p>因为我的是MBP 13，只有一个风扇，所以只需要提供一个参数，如果有多个风扇的话，请依据自己的需要进行修改，按照Mac/SMC Fan Control for Windows (+ Temp) 的说明文件提到的，用法大概如下：</p>
<ul>MacFan.exe &lt;Desired RPM for Fan 1> &lt;Desired RPM for Fan 2 (if applicable)> &lt;Desired RPM for Fan 3 (if applicable)> &lt;Desired RPM for Fan 4 (if applicable)></ul>
<p>基本上，还是不太建议在MBP上使用其它系统，毕竟efi现在还是不能被其它系统较好地支持。不过像我这种爱折腾的人和不少披着MBP的皮WIN的心的人，这样的速度调整还是有必要的，希望这篇文章能帮到你。</p>
<p>引用参考：<br />
Fan Control: <a href="http://www.lobotomo.com/products/FanControl/">http://www.lobotomo.com/products/FanControl/</a><br />
MacFan: <a href="http://sourceforge.net/projects/macfan/">http://sourceforge.net/projects/macfan/</a><br />
Ubuntu Forum: <a href="http://ubuntuforums.org/showthread.php?t=1378663">http://ubuntuforums.org/showthread.php?t=1378663</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2010-08/macbook-pro-fan-control.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>自制RHEL5 DVD安装盘</title>
		<link>http://mr21.in/2010-03/making-rhel-5-dvd-iso.html</link>
		<comments>http://mr21.in/2010-03/making-rhel-5-dvd-iso.html#comments</comments>
		<pubDate>Sun, 21 Mar 2010 10:44:11 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[软言软语]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[CD]]></category>
		<category><![CDATA[DVD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=338</guid>
		<description><![CDATA[最近在学习Red Hat方面的管理，一般来说我们比较容易获取的是RHEL(Red Hat Enterprise Linux)的CD版介质（比如国内的Lupaworld镜像），不过一共6CD安装起来的替换也是很麻烦，我找到一个教程与大家共... ]]></description>
			<content:encoded><![CDATA[<p>最近在学习Red Hat方面的管理，一般来说我们比较容易获取的是RHEL(Red Hat Enterprise Linux)的CD版介质（比如国内的<a href="http://mirror.lupaworld.com/rhel/5/">Lupaworld镜像</a>），不过一共6CD安装起来的替换也是很麻烦，我找到一个教程与大家共享。</p>
<p>文章来源：<a href="http://www.mind-download.com/2007/07/making-rhel-5-dvd-iso.html">Mind Download</a><br />
本教程是基于Linux shell的操作，Unix-like通用，Windows请看文后简述。</p>
<p><strong>一、首先下载6张CD，（借用lupaworld）</strong></p>
<blockquote><p>
32位安装盘<br />
<a href="http://mirror.lupaworld.com/rhel/5/rhel-server-5.3-i386-disc1.iso">rhel-server-5.3-i386-disc1.iso</a><br />
<a href="http://mirror.lupaworld.com/rhel/5/rhel-server-5.3-i386-disc2.iso">rhel-server-5.3-i386-disc2.iso</a><br />
<a href="http://mirror.lupaworld.com/rhel/5/rhel-server-5.3-i386-disc3.iso">rhel-server-5.3-i386-disc3.iso</a><br />
<a href="http://mirror.lupaworld.com/rhel/5/rhel-server-5.3-i386-disc4.iso">rhel-server-5.3-i386-disc4.iso</a><br />
<a href="http://mirror.lupaworld.com/rhel/5/rhel-server-5.3-i386-disc5.iso">rhel-server-5.3-i386-disc5.iso</a><br />
64位安装盘<br />
<a href="http://mirror.lupaworld.com/rhel/5/rhel-server-5.3-x86_64-disc1.iso">rhel-server-5.3-x86_64-disc1.iso</a><br />
<a href="http://mirror.lupaworld.com/rhel/5/rhel-server-5.3-x86_64-disc2.iso">rhel-server-5.3-x86_64-disc2.iso</a><br />
<a href="http://mirror.lupaworld.com/rhel/5/rhel-server-5.3-x86_64-disc3.iso">rhel-server-5.3-x86_64-disc3.iso</a><br />
<a href="http://mirror.lupaworld.com/rhel/5/rhel-server-5.3-x86_64-disc4.iso">rhel-server-5.3-x86_64-disc4.iso</a><br />
<a href="http://mirror.lupaworld.com/rhel/5/rhel-server-5.3-x86_64-disc5.iso">rhel-server-5.3-x86_64-disc5.iso</a><br />
<a href="http://mirror.lupaworld.com/rhel/5/rhel-server-5.3-x86_64-disc6.iso">rhel-server-5.3-x86_64-disc6.iso</a>
</p></blockquote>
<p><strong>二、建立6个临时目录，同时挂载6个ISO文件。</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">4</span>,<span style="color: #000000;">5</span>,<span style="color: #000000;">6</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> ro,loop rhel-<span style="color: #000000;">5</span>-client-i386-disc1.iso <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> ro,loop rhel-<span style="color: #000000;">5</span>-client-i386-disc2.iso <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp2
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> ro,loop rhel-<span style="color: #000000;">5</span>-client-i386-disc3.iso <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp3
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> ro,loop rhel-<span style="color: #000000;">5</span>-client-i386-disc4.iso <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp4
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> ro,loop rhel-<span style="color: #000000;">5</span>-client-i386-disc5.iso <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp5
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> ro,loop rhel-<span style="color: #000000;">5</span>-client-i386-disc6.iso <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp6</pre></td></tr></table></div>

<p><strong>三、修改相关的光盘配置文件</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-a</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1<span style="color: #000000; font-weight: bold;">/</span>isolinux <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1<span style="color: #000000; font-weight: bold;">/</span>.discinfo .
<span style="color: #c20cb9; font-weight: bold;">chmod</span> +<span style="color: #c20cb9; font-weight: bold;">w</span> isolinux<span style="color: #000000; font-weight: bold;">/</span>isolinux.bin
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> isolinux<span style="color: #000000; font-weight: bold;">/</span>boot.cat</pre></td></tr></table></div>

<p>编辑复制过来的当前目录的.discinfo文件（<strong>nano .discinfo</strong>或<strong>gedit .discinfo</strong>），效果如下（不一定完全一样）：</p>
<blockquote><p>
1170972087.594754<br />
Red Hat Enterprise Linux Client 5<br />
i386<br />
1,2,3,4,5,6 &lt;-主要是修改这里的<strong>1</strong>为现在的<strong>1,2,3,4,5,6</strong><br />
Client/<br />
VT/<br />
Workstation/
</p></blockquote>
<p><strong>四、合并6个CD镜像并写入新的配置文件，生成DVD ISO镜像，红色的是卷标名称，请自定义。</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">mkisofs <span style="color: #660033;">-v</span> <span style="color: #660033;">-pad</span> <span style="color: #660033;">-o</span> RHEL5-x86_64-DVD.iso <span style="color: #660033;">-V</span> <span style="color: #ff0000;">&quot;RHEL5-x86_64-DVD&quot;</span> <span style="color: #660033;">-b</span> isolinux<span style="color: #000000; font-weight: bold;">/</span>isolinux.bin <span style="color: #660033;">-c</span> isolinux<span style="color: #000000; font-weight: bold;">/</span>boot.cat <span style="color: #660033;">-no-emul-boot</span> <span style="color: #660033;">-boot-load-size</span> <span style="color: #000000;">4</span> <span style="color: #660033;">-boot-info-table</span> <span style="color: #660033;">-r</span> <span style="color: #660033;">-R</span> <span style="color: #660033;">-T</span> <span style="color: #660033;">-m</span> TRANS.TBL <span style="color: #660033;">-x</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1<span style="color: #000000; font-weight: bold;">/</span>.discinfo <span style="color: #660033;">-x</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1<span style="color: #000000; font-weight: bold;">/</span>isolinux <span style="color: #660033;">-graft-points</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1 .discinfo=.discinfo isolinux<span style="color: #000000; font-weight: bold;">/</span>=isolinux <span style="color: #007800;">Server</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp2<span style="color: #000000; font-weight: bold;">/</span>Server <span style="color: #007800;">Server</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp3<span style="color: #000000; font-weight: bold;">/</span>Server <span style="color: #007800;">Server</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp4<span style="color: #000000; font-weight: bold;">/</span>Server <span style="color: #007800;">Server</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp5<span style="color: #000000; font-weight: bold;">/</span>Server <span style="color: #007800;">Server</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp6<span style="color: #000000; font-weight: bold;">/</span>Server</pre></td></tr></table></div>

<p><strong>五、扫尾工作</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp2
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp3
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp4
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp5
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp6
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">4</span>,<span style="color: #000000;">5</span>,<span style="color: #000000;">6</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> .discinfo</pre></td></tr></table></div>

<p><strong>六、Windows怎么办？</strong><br />
呃，实际上我没有试过，但是我推断，只要把所有的ISO解压后复制到同一目录下（可覆盖同名文件），然后编辑.discinfo文件（如第三步那样），然后用WinISO或者UltraISO创建一个DVD文件，引导文件使用文件目录下的“isolinux/isolinux.bin”文件，并删除“isolinux/boot.cat”文件，然后保存ISO，应该可以，不过，建议尽量使用linux。</p>
<p><strong>七、其它</strong><br />
实际上，RedHat官方就提供了DVD文件，只要注册一个RHN试用30天的帐户就可以下载，这个仅供大家参考。<br />
同时，原作者提供了一个bash脚本用来处理这个过程，只要跟几个镜像放在同一目录下执行就是，文件内容如下：<span id="more-338"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp2
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp3
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp4
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp5
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp6
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> ro,loop rhel-<span style="color: #000000;">5</span>-server-x86_64-disc1.iso <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> ro,loop rhel-<span style="color: #000000;">5</span>-server-x86_64-disc2.iso <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp2
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> ro,loop rhel-<span style="color: #000000;">5</span>-server-x86_64-disc3.iso <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp3
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> ro,loop rhel-<span style="color: #000000;">5</span>-server-x86_64-disc4.iso <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp4
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> ro,loop rhel-<span style="color: #000000;">5</span>-server-x86_64-disc5.iso <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp5
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> ro,loop rhel-<span style="color: #000000;">5</span>-server-x86_64-disc6.iso <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp6
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-a</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1<span style="color: #000000; font-weight: bold;">/</span>isolinux <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1<span style="color: #000000; font-weight: bold;">/</span>.discinfo .
<span style="color: #c20cb9; font-weight: bold;">chmod</span> +<span style="color: #c20cb9; font-weight: bold;">w</span> isolinux<span style="color: #000000; font-weight: bold;">/</span>isolinux.bin
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> isolinux<span style="color: #000000; font-weight: bold;">/</span>boot.cat
<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/1$/1,2,3,4,5,6/g'</span> .<span style="color: #000000; font-weight: bold;">/</span>.discinfo <span style="color: #000000; font-weight: bold;">&gt;</span> .<span style="color: #000000; font-weight: bold;">/</span>.discinfo
mkisofs <span style="color: #660033;">-v</span> <span style="color: #660033;">-pad</span> <span style="color: #660033;">-o</span> RHEL5-x86_64-DVD.iso <span style="color: #660033;">-V</span> <span style="color: #ff0000;">&quot;RHEL5-x86_64-DVD&quot;</span> <span style="color: #660033;">-b</span> isolinux<span style="color: #000000; font-weight: bold;">/</span>isolinux.bin <span style="color: #660033;">-c</span> isolinux<span style="color: #000000; font-weight: bold;">/</span>boot.cat <span style="color: #660033;">-no-emul-boot</span> <span style="color: #660033;">-boot-load-size</span> <span style="color: #000000;">4</span> <span style="color: #660033;">-boot-info-table</span> <span style="color: #660033;">-r</span> <span style="color: #660033;">-R</span> <span style="color: #660033;">-T</span> <span style="color: #660033;">-m</span> TRANS.TBL <span style="color: #660033;">-x</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1<span style="color: #000000; font-weight: bold;">/</span>.discinfo <span style="color: #660033;">-x</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1<span style="color: #000000; font-weight: bold;">/</span>isolinux <span style="color: #660033;">-graft-points</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1 .discinfo=.discinfo isolinux<span style="color: #000000; font-weight: bold;">/</span>=isolinux <span style="color: #007800;">Server</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp2<span style="color: #000000; font-weight: bold;">/</span>Server <span style="color: #007800;">Server</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp3<span style="color: #000000; font-weight: bold;">/</span>Server <span style="color: #007800;">Server</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp4<span style="color: #000000; font-weight: bold;">/</span>Server <span style="color: #007800;">Server</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp5<span style="color: #000000; font-weight: bold;">/</span>Server <span style="color: #007800;">Server</span>=<span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp6<span style="color: #000000; font-weight: bold;">/</span>Server
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp1
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp2
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp3
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp4
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp5
<span style="color: #c20cb9; font-weight: bold;">umount</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp6
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #000000; font-weight: bold;">/</span>mnt<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #000000;">1</span>,<span style="color: #000000;">2</span>,<span style="color: #000000;">3</span>,<span style="color: #000000;">4</span>,<span style="color: #000000;">5</span>,<span style="color: #000000;">6</span><span style="color: #7a0874; font-weight: bold;">&#125;</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> .discinfo</pre></td></tr></table></div>

<p>保存为sh文件后，使用<strong>sh 脚本名称</strong>，或者<strong>./脚本名称</strong>的方式执行即可。</p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2010-03/making-rhel-5-dvd-iso.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows to MacOSX</title>
		<link>http://mr21.in/2010-03/win-to-mac.html</link>
		<comments>http://mr21.in/2010-03/win-to-mac.html#comments</comments>
		<pubDate>Mon, 01 Mar 2010 13:10:05 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[软言软语]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[MacBook]]></category>
		<category><![CDATA[MBP]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=328</guid>
		<description><![CDATA[新近购置了MacBook Pro MB990，正式开始接触Mac OS X了。 自从有电脑开始，接触各种不同的系统就是我的一大爱好和谈资，不过实际上能做到实际应用的也就只有Windows了，环境使然，而这次购入的MB... ]]></description>
			<content:encoded><![CDATA[<p>新近购置了MacBook Pro MB990，正式开始接触Mac OS X了。<br />
自从有电脑开始，接触各种不同的系统就是我的一大爱好和谈资，不过实际上能做到实际应用的也就只有Windows了，环境使然，而这次购入的MBP的，我坚持不使用BootCamp，直接就把硬盘分区两个（这会导致你无法使用BootCamp安装Windows），不过为了网银还是安装了一个PD5（Parallel Desktop 5），基本上没有遇到多少障碍，这篇文字的目的就是稍微总结一下自己从Windows迁移到MacOSX后使用上的一些习惯变更和两个系统上的不同，不过不会太深层。</p>
<p>以下是记录内容，会不断更新，就不新开Post了，因为近似于草稿，会有些混乱，见谅 <img src='http://mr21.in/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' /> </p>
<h3><strong>Tips 1. 关于常用按键</strong></h3>
<p>MBP的键盘上相比于PC本子，少了不少常用的按键，即使这些按键我不认为是PC专用的，但实际上就是没有，并且明确的组合键提示也没有，所以记录一下。</p>
<blockquote><p>
<img src="http://static.zooomr.com/images/8955014_4e6fa3573f_o.png" width="432" height="243" alt="屏幕快照 2010-03-01 下午09.03.31" />
</p></blockquote>
<p>比较奇特的是，不是每个软件都管用的， 不过至少在Firefox是这样用的，<br />
然后在textedit.app里面的话，Shift+Fn+← 可以实现选中当前文字到顶端的效果。<br />
<span id="more-328"></span></p>
<h3><strong>Tips 2. 让F1~F12正常用，还有Tab</strong></h3>
<div class="imgdivimg2"><a href="http://www.zooomr.com/photos/cmb/8956957/" title="Photo Sharing"><img src="http://static.zooomr.com/images/8956957_1f6267b23e_m.jpg" width="240" height="132" alt="屏幕快照 2010-03-02 下午07.13.47" /></a></div>
<p>我承认这12个按键其实我更喜欢以苹果功能键的方式出现，音量控制、键盘背光、屏幕亮度、Dashboard我都用得非常频繁，但是也有人喜欢以F键出现，那就F键好了，设置一下就行了。</p>
<p><strong>系统偏好设置 -> 键盘 -> 键盘</strong>，选择“<strong>将F1、F2等键用做标准功能键</strong>”，钩上就行，放心，虽然示例说的是F1、F2，实际上是针对所有F键的，搞定。<br />
这样的设置，在不用BootCamp、装虚拟机Windows的情况下比较实用，毕竟我还是非常习惯Ctrl+F5搞强制刷新，F2更名，F3搜索，F6切换选择域的。</p>
<p>顺便说一下，默认情况下，<strong>Tab键</strong>你会发现很难用，大多数地方都按了没反应，ok，这么操作，<strong>Fn+Control+F7</strong>，按一下就行，然后Tab就会变得很好用了。</p>
<h3><strong>Tips 3. Safari新链接用Tab开启</strong></h3>
<p>打开终端，输入以下命令即可</p>
<blockquote><p><strong>defaults write com.apple.Safari TargetedClicksCreateTabs -bool true</strong></p></blockquote>
<p>Safari3/4适用，主要是实现链接由标签打开，并且鼠标中键 (Middle-Button) 点击也是开新的Tabs.<br />
Btw, 喜欢一个程序多个窗口的，可以 <strong>Cmd+`</strong> （数字1左边那个）在不同窗口间切换，Cmd+Tab则是切换程序的。</p>
<h3><strong>Tips 4. TouchPad 3指轻触 = 鼠标中键</strong></h3>
<p>MiddleClick, link: <a href="http://clement.beffa.org/labs/projects/middleclick/">http://clement.beffa.org/labs/projects/middleclick/</a></p>
<p>这个软件比较适合我，我非常喜欢用鼠标用中键把链接从新Tab打开，但是触摸板明显不具备这个功能，每次都是双指开启辅助菜单后，再选择。使用MiddleClick后，会在菜单栏上有个“三个点”的ICON，说明启动了，这个时候，<strong>用三个手指轻触触摸板</strong>，可以实现鼠标中键功能。建议添加到<strong>登录项</strong>。</p>
<p>感谢<a href="http://www.appinn.com/middleclick/">小众软件</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2010-03/win-to-mac.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>BlogBus应急方案复原</title>
		<link>http://mr21.in/2010-01/hosts-for-bus-come-back.html</link>
		<comments>http://mr21.in/2010-01/hosts-for-bus-come-back.html#comments</comments>
		<pubDate>Mon, 11 Jan 2010 15:45:25 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[博客贴士]]></category>
		<category><![CDATA[2010]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[BlogBus]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[翻墙]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=313</guid>
		<description><![CDATA[各位访问Mr. 21并且获得帮助的乘客们，很高兴大巴在明天能恢复启程， 而我之前的教程让大家修改了Hosts文件，现在我提供一个恢复的脚本，请按照说明使用。 脚本名称： Hosts_BusComeBack 适用范... ]]></description>
			<content:encoded><![CDATA[<p>各位访问Mr. 21并且获得帮助的乘客们，很高兴大巴在明天能恢复启程，<br />
而我之前的教程让大家修改了Hosts文件，现在我提供一个恢复的脚本，请按照说明使用。</p>
<blockquote><p><strong>脚本名称：</strong> Hosts_BusComeBack<br />
<strong>适用范围：</strong> Windows 2000/XP/Vista/7<br />
<strong>使用条件：</strong> 等到Bus确认恢复运作后再使用，否则你又得再用一次BusHosts<br />
<strong>使用方法：</strong> Win2000/XP可以直接使用，WinVista/7请解压后在文件上<strong>右键</strong>选择“以管理员身份运行”。<br />
<strong>简单说明：</strong> 使用这个脚本将恢复系统本身默认的Hosts文件，如果你的Hosts文件有其它特殊配置，请注意备份。<br />
<strong>使用后果：</strong> 除了系统默认的记录外，Hosts文件不会再存在额外的东西，也就说无法再“翻墙”访问Bus。<br />
<strong>下载地址：</strong> <a href="/wp-content/uploads/2010/01/hosts_BusComeBack.zip">http://mr21.in/wp-content/uploads/2010/01/hosts_BusComeBack.zip</a><br />
<strong>注意事项：</strong> <strong style="color:red;">使用之后，请重新开启你的浏览器或者重新启动电脑，后者最保险。</strong></p></blockquote>
<blockquote><p>关于一点很抱歉，<br />
就是Linux/Mac OS X用户，如果你有改动，需要手动去除原来添加的代码了，Hosts文件一般保留下面一行即可：<br />
<strong>127.0.0.1 localhost</strong><br />
或者在终端中（Terminal）运行下面一行命令，只要你权限够<br />
<strong>sudo echo 127.0.0.1 localhost > /etc/hosts</strong> 或 <strong>echo 127.0.0.1 localhost > /etc/hosts</strong></p></blockquote>
<p>如果有Bus的用户想考虑独立博客，可以点击<a href="http://s.click.taobao.com/t_1?i=qvFcRUSA%2Fu2W2Q%3D%3D&#038;p=mm_15117278_0_0&#038;n=11">虚拟主机 Plan-2 WordPress</a>了解，目前是2月底前会多赠送一个月。<br />
同时可以QQ联系我，随时为大家提供帮助。</p>
<p>以下部分为脚本源代码，仅供高级用户参考交流，一般用户请不用理会。<br />
<span id="more-313"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">echo</span> off
color 0a
goto start
&nbsp;
:start
cls
<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">echo</span>  以下每个操作都需要在输入完成后按回车。
<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">echo</span>+
<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">echo</span>  请选择本机系统：Win2000<span style="color: #000000; font-weight: bold;">/</span>XP（按<span style="color: #000000;">1</span>）或WinVista<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">7</span>（按<span style="color: #000000;">2</span>）或退出（按Q）
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #000000; font-weight: bold;">/</span>p <span style="color: #007800;">ossel</span>=
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #ff0000;">&quot;%ossel%&quot;</span> == <span style="color: #ff0000;">&quot;q&quot;</span> <span style="color: #7a0874; font-weight: bold;">exit</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #ff0000;">&quot;%ossel%&quot;</span> == <span style="color: #ff0000;">&quot;Q&quot;</span> <span style="color: #7a0874; font-weight: bold;">exit</span>
<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">echo</span>  即将开始恢复本机默认Hosts文件，这将导致Bus的翻墙失效，是否继续<span style="color: #7a0874; font-weight: bold;">&#40;</span>Y or N<span style="color: #7a0874; font-weight: bold;">&#41;</span>？
<span style="color: #000000; font-weight: bold;">set</span> <span style="color: #000000; font-weight: bold;">/</span>p <span style="color: #007800;">answer</span>=
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #ff0000;">&quot;%ossel%&quot;</span> == <span style="color: #ff0000;">&quot;1&quot;</span> goto 2p
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #ff0000;">&quot;%ossel%&quot;</span> == <span style="color: #ff0000;">&quot;2&quot;</span> goto v7
&nbsp;
:2p
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #ff0000;">&quot;%answer%&quot;</span> == <span style="color: #ff0000;">&quot;y&quot;</span> goto yes2p
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #ff0000;">&quot;%answer%&quot;</span> == <span style="color: #ff0000;">&quot;Y&quot;</span> goto yes2p
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #ff0000;">&quot;%answer%&quot;</span> == <span style="color: #ff0000;">&quot;n&quot;</span> goto start
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #ff0000;">&quot;%answer%&quot;</span> == <span style="color: #ff0000;">&quot;N&quot;</span> goto start
&nbsp;
:v7
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #ff0000;">&quot;%answer%&quot;</span> == <span style="color: #ff0000;">&quot;y&quot;</span> goto yesv7
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #ff0000;">&quot;%answer%&quot;</span> == <span style="color: #ff0000;">&quot;Y&quot;</span> goto yesv7
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #ff0000;">&quot;%answer%&quot;</span> == <span style="color: #ff0000;">&quot;n&quot;</span> goto start
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #ff0000;">&quot;%answer%&quot;</span> == <span style="color: #ff0000;">&quot;N&quot;</span> goto start
&nbsp;
:yes2p
<span style="color: #7a0874; font-weight: bold;">echo</span> 127.0.0.1	localhost <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">%</span>windir<span style="color: #000000; font-weight: bold;">%</span>\system32\drivers\etc\hosts
goto end
&nbsp;
:yesv7
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #000000;">127.1</span>		<span style="color: #7a0874; font-weight: bold;">local</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">%</span>windir<span style="color: #000000; font-weight: bold;">%</span>\system32\drivers\etc\hosts
<span style="color: #7a0874; font-weight: bold;">echo</span> 127.0.0.1	localhost <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">%</span>windir<span style="color: #000000; font-weight: bold;">%</span>\system32\drivers\etc\hosts
<span style="color: #7a0874; font-weight: bold;">echo</span> 127.0.0.1	localhost.localdomain <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">%</span>windir<span style="color: #000000; font-weight: bold;">%</span>\system32\drivers\etc\hosts
<span style="color: #7a0874; font-weight: bold;">echo</span> 127.0.0.1	localhost <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">%</span>windir<span style="color: #000000; font-weight: bold;">%</span>\system32\drivers\etc\hosts
<span style="color: #7a0874; font-weight: bold;">echo</span> ::<span style="color: #000000;">1</span>             localhost <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #000000; font-weight: bold;">%</span>windir<span style="color: #000000; font-weight: bold;">%</span>\system32\drivers\etc\hosts
goto end
&nbsp;
:end
<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">echo</span>  恢复完成，按任意键退出。
<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">echo</span>+
<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">echo</span>  如果你又突然需要BusHosts解析，请访问我的博客 http:<span style="color: #000000; font-weight: bold;">//</span>mr21.in
<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">echo</span>  脚本编写：Mr. <span style="color: #000000;">21</span>
<span style="color: #000000; font-weight: bold;">@</span><span style="color: #7a0874; font-weight: bold;">echo</span>+
pause</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2010-01/hosts-for-bus-come-back.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Nero 9 &#8211; Free version</title>
		<link>http://mr21.in/2009-08/nero-9-free-version.html</link>
		<comments>http://mr21.in/2009-08/nero-9-free-version.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 03:11:04 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[软言软语]]></category>
		<category><![CDATA[Free]]></category>
		<category><![CDATA[nero]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[免费]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=290</guid>
		<description><![CDATA[Nero相当厚道的推出了免费版本的Nero 9，来自官方的说明： Nero 9 &#8211; Free version What’s better than free? Free forever! Nero offers you the chance to enjoy Nero’s world-renowned data disc burning and copying features for an un... ]]></description>
			<content:encoded><![CDATA[<p>Nero相当厚道的推出了免费版本的Nero 9，来自官方的说明：</p>
<blockquote><p>
<strong>Nero 9 &#8211; Free version</strong></p>
<p>What’s better than free? Free forever! Nero offers you the chance to enjoy Nero’s world-renowned<br />
data disc burning and copying features for an unlimited time, absolutely FREE!</p>
<p>Enjoy basic data burning and copying capabilities for your CDs and DVDs from the world’s most<br />
trusted digital media brand, Nero.
</p></blockquote>
<p>看来终于可以挣脱使用D版Nero的困扰了！<br />
虽然我知道可以替代它的软件非常非常之多，但是周围能像我这样使用非常非常之多的不同UI不同设置的软件的人不多——是的，我必须迁就这些大众们。<br />
同时，不得不说，Nero确实是一款非常优秀的软件，虽然自从nero 7以后，身材越来越臃肿——具备了很多平时我们不需要的功能，比如Nero ShowTime抢了我的媒体文件关联我就很不高兴……但是，依然推荐，特别是这款免费版，只剩下烧录功能了，非常棒！</p>
<p>当然，如果需要烧录之外的功能，推荐使用Nero 9完整版，至于完整什么版，XX或YY版，自己选择咯~</p>
<p>虽然近期有购买MacBook Pro的计划，但是现在依然关注Windows软件。 <img src='http://mr21.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
但事实上，我仅推荐使用合法授权的软件，不论是商业软件还是免费软件抑或是共享软件，作者需要我们的尊重。</p>
<p><strong>Download info from Nero offical website:</strong><br />
Download Page: <a href="http://www.nero.com/eng/downloads-nero9-free.php">http://www.nero.com/eng/downloads-nero9-free.php</a> (need your mail)<br />
Download Link: <a href="http://ftp22.nero.com/Nero9/79a1617ac1f8b22196e2c6ed2724df74/Nero-9.4.12.3_free.exe">http://ftp22.nero.com/Nero9/79a1617ac1f8b22196e2c6ed2724df74/Nero-9.4.12.3_free.exe</a></p>
<blockquote><p><strong>About the file &#8220;Nero-9.4.12.3_free.exe&#8221;</strong><br />
Version  9.4.12.3<br />
Release Date  July 30, 2009<br />
File Size  55 MB (57.187.288 bytes)<br />
MD5 checksum  11c83041227b73c0c490ffe16a5d65c3</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2009-08/nero-9-free-version.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>服务器监测和实时SMS警报的思路</title>
		<link>http://mr21.in/2009-06/server-monitor-and-sms-realtime-notify.html</link>
		<comments>http://mr21.in/2009-06/server-monitor-and-sms-realtime-notify.html#comments</comments>
		<pubDate>Fri, 12 Jun 2009 07:13:29 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[软言软语]]></category>
		<category><![CDATA[2000]]></category>
		<category><![CDATA[A1Monitor]]></category>
		<category><![CDATA[Fetion]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[SMS]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[实时警报]]></category>
		<category><![CDATA[服务器]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=274</guid>
		<description><![CDATA[一直以来， 我手下的一台运行着ASP应用的Win2000服务器总是访问数据库会莫名其妙锁死， 然后用户端访问的页面就提示：数据库查询错误，编码AXXX； 最终分析下来的原因是ASP程序本身的问题，... ]]></description>
			<content:encoded><![CDATA[<p>一直以来，<br />
我手下的一台运行着ASP应用的Win2000服务器总是访问数据库会莫名其妙锁死，<br />
然后用户端访问的页面就提示：<strong>数据库查询错误，编码AXXX</strong>；<br />
最终分析下来的原因是ASP程序本身的问题，所以每次都要人工去执行<strong>iisreset</strong>释放，</p>
<p>而我又不会ASP且开发方对这个缺陷的改进意见总是支支吾吾的，<br />
每次出故障都是同事打电话过来提醒然后我再连接上服务器去执行重置，因为我不太用那个东西……<br />
但老这样，领导也渐渐开始有点意见了，所以，需要一个能及时报警并自动解决IIS重置的方案。</p>
<p>最理想的状态是基本满足以下需求：</p>
<ol>
<li>实时报警，宕机与恢复时通过<strong>MAIL/SMS/CALL</strong>等时效性较高的手段通知；</li>
<li>自动恢复，在发出警报的同时能执行一些额外的命令操作，以达到自动恢复的功能；</li>
<li>字词检测，能通过实时的页面关键字词的监测达到判断业务系统的正常性；</li>
<li>费用低廉，最好是免费了，不能免费的话，再说吧……</li>
</ol>
<p>其中至关重要的就是状态监测这一块的，<br />
因为是内网业务系统，无法通过站长保姆这类第三方的Uptime Monitor来监视，只能自己选择可靠的同机房其它服务器进行监测，并且为了排除线路故障外的原因，本机也要监测，同时兼顾到另一个工作现场的使用和线路故障检测，也需要上一个监测点。<br />
总的来说就是三个监测点：服务器本机、机房旁路、远端现场；</p>
<p>最终我在<a href="http://down.chinaz.com">chinaz</a>里面用<strong>monitor</strong>为关键词找到了一个软件：<a href="http://www.a1monitor.com/">A1Monitor</a>；<br />
从官方网站看来，最新版的<strong>A1Monitor 2009</strong>支持有以下特性：</p>
<ol>
<li>Vista兼容性，已经完成了对Vista的测试和工作兼容检查；</li>
<li>没有任何限制免费试用45天（如果企业对正版化有要求，建议购买，$89.95）；</li>
<li>可以监视任何TCP/IP服务器或网页（通过http, https, pop3, smtp, ftp, 或者任何你需要监视的端口)；</li>
<li>支持通过关键字来判断任何网页的正常与否；</li>
<li>你可以在服务器状态监测失败的时候收到邮件、同时A1Monitor还可以重启服务器或者执行一些附加的命令；</li>
<li>可以PING任何IP地址</li>
<li>每次有效的监测状态都会自动生成HTML格式的监测报告</li>
</ol>
<p>事实上，除了VISTA兼容性之外，<br />
我在<a href="http://down.chinaz.com">chinaz</a>找到的<strong>A1Monitor 2007特别版</strong>具备以上所有功能并且在我的2000/XP上工作非常良好，<br />
如果你有这方面的需要，可以去<a href="http://down.chinaz.com">down.chinaz.com</a>搜索<strong>A1Monitor</strong>， <img src='http://mr21.in/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' /> </p>
<p>基本上，<br />
需求列表里面的<strong>自动恢复</strong>和<strong>字词检测</strong>使用A1Monitor就可以解决，那实时报警呢？</p>
<p>这个时候我想起了通过<a href="http://www.fetion.com.cn">飞信</a>，因为飞信可以给机主和好友发短信并且免费，那么自己给自己发警报SMS是可行的，<br />
通过Google我找到<a href="http://zhouzaibao.javaeye.com/blog/378631">这篇文章</a>，里面提到了几种发送短信的方式，免费方案就是利用fetion了，</p>
<p>于是乎我从里面选择了<strong>网页命令行</strong>的方式，该方式貌似通过<a href="https://fetionapi.appspot.com/">Fetion API</a>这个Google App项目开发的，<br />
然后我构造了通过Fetion API发送警报的方式，因为可以在链接后面构造参数直接提交接收人和内容，格式如下：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">https<span style="color: #00AA00;">:</span>//fetionAPI<span style="color: #6666ff;">.appspot</span>.com/api/?from<span style="color: #00AA00;">=</span>您手机号&amp;pw<span style="color: #00AA00;">=</span>您的密码&amp;to<span style="color: #00AA00;">=</span>接收方手机号&amp;msg<span style="color: #00AA00;">=</span>短信内容</pre></td></tr></table></div>

<p>调用的方式就是</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">iexplore https<span style="color: #00AA00;">:</span>//fetionAPI<span style="color: #6666ff;">.appspot</span>.com/api/?from<span style="color: #00AA00;">=</span>您手机号&amp;pw<span style="color: #00AA00;">=</span>您的密码&amp;to<span style="color: #00AA00;">=</span>接收方手机号&amp;msg<span style="color: #00AA00;">=</span>短信内容</pre></td></tr></table></div>

<p>缺点就是会打开一个IE窗口，并且不会自动关掉，如果要是故障频繁点，还需要人工来关大量的IE窗口。</p>
<p>之后我突然以前看到过的<a href="http://www.it-adv.net">飞信机器人</a>，<br />
一个可以通过<strong>CLI</strong>(Command Line Interface，命令行界面，也有称之为DOS、命令提示符)调用的飞信客户端，<br />
同时适用于Windows/Linux平台，还有一些开发文档，而我们需要用到的只是其中一个非常小的功能，<strong>CLI发短信</strong>，<br />
格式如下：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">fetion --mobile<span style="color: #00AA00;">=</span>你的号码 --pwd<span style="color: #00AA00;">=</span>密码 --to<span style="color: #00AA00;">=</span>目标号码 --msg-gb<span style="color: #00AA00;">=</span>内容
fetion --sid<span style="color: #00AA00;">=</span>你的飞信ID --pwd<span style="color: #00AA00;">=</span>密码 --to<span style="color: #00AA00;">=</span>目标号码 --msg-gb<span style="color: #00AA00;">=</span>内容</pre></td></tr></table></div>

<p>看到这儿，大多数人应该能明白了，<br />
既然<strong>A1Monitor</strong>允许执行额外的命令，而我的故障处理方式<strong>iisreset</strong>，并且同时执行一个飞信机器人发送短信的命令，<br />
那么只要随便写一个cmd文件，包含上面两条命令，然后放在磁盘方便访问机器人的地方，等着A1执行就好了。</p>
<p>基本上解决方法就是这些了，并且试验过确实有效，当然，整个机房掉电的情况下就比较麻烦了，<br />
不过因为设置了三个监测点，3D防护，基本上可以解决服务器死机、线路故障、机房掉电等情况的近实时（0s~你设定的监测时间间隔）SMS警报，但要求监测机24&#215;7开机。</p>
<p>思路写的有点混乱，如果需要教程的话，请关注后续文章。</p>
<p>Btw,<br />
你当然也可以用这个办法在你的电脑上监控你Web空间的Uptime，<br />
但问题是我想没有多少人能保持电脑24&#215;7并且网络线路一直通常无故障的对吧，比较有难度而已。</p>
<p>本文参考：<br />
利用飞信fetion发送短信，实现服务器报警等： <a href="http://zhouzaibao.javaeye.com/blog/378631">http://zhouzaibao.javaeye.com/blog/378631</a><br />
fetion机器人2009版说明及下载： <a href="http://bbs.it-adv.net/viewthread.php?tid=155">http://bbs.it-adv.net/viewthread.php?tid=155</a><br />
09版fetion机器人安装说明： <a href="http://bbs.it-adv.net/viewthread.php?tid=186">http://bbs.it-adv.net/viewthread.php?tid=186</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2009-06/server-monitor-and-sms-realtime-notify.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>EasyWP, WordPress快打！</title>
		<link>http://mr21.in/2009-05/easy-wordpress-installing.html</link>
		<comments>http://mr21.in/2009-05/easy-wordpress-installing.html#comments</comments>
		<pubDate>Mon, 18 May 2009 13:34:36 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[安装]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=264</guid>
		<description><![CDATA[虽然全程自主安装WordPress不是啥难事， 不过在国内这种参差不齐自立门户的线路状况下，让你完整FTP一个WordPress还是需要不少时间的， 特别是那些用国外主机的家伙（包括我自己），无奈了吧... ]]></description>
			<content:encoded><![CDATA[<p>虽然全程自主安装WordPress不是啥难事，<br />
不过在国内这种参差不齐自立门户的线路状况下，让你完整FTP一个WordPress还是需要不少时间的，<br />
特别是那些用国外主机的家伙（包括我自己），无奈了吧~</p>
<p>OK，今天在我的GReader里面看到一篇POST，<br />
“<a href="http://www.dailyblogtips.com/trouble-installing-wordpress-try-easywp-install/"><strong>Trouble Installing WordPress? Try EasyWP Install</strong></a>”<br />
介绍了EasyWP这个工具，可以让我们方便地安装WordPress。</p>
<p>EasyWP是一个PHP脚本，<br />
在你访问相应路径，填写相应内容后，点击“<strong>Go</strong>”，将会自动下载WP的安装包，然后解压安装，<br />
整个过程自动化程度非常高。</p>
<p>下载：<a href="http://www.funscripts.net/php-scripts/scripts/easywp.zip">EasyWP WordPress Installer</a><br />
来源：<a href="http://www.funscripts.net/php-scripts/">http://www.funscripts.net/php-scripts/</a></p>
<p><strong>安装步骤：</strong></p>
<ol>
<li>下载EasyWP，并解压，得到easywp.php；</li>
<li>将easywp.php通过任何方式上传到你空间的相应目录下（这里假设为WEB的“/blog”）；</li>
<li>获得你的MYSQL相关参数；</li>
<li>访问 <strong>http://youdomain.com/blog/easywp.php</strong><br />
从上往下为数据库名称、用户名、密码、数据库地址等，有图有真相，相关参数请参考图片<br />
<a href="http://picasaweb.google.com/lh/photo/0hb_FL62njt8e6cZJQQKXA?feat=embedwebsite"><img src="http://lh3.ggpht.com/_yJB0PIHwozI/ShFd_34u9-I/AAAAAAAACU0/DgeSRmSs1Tw/s288/easywp.JPG" /></a></li>
<li>填写完毕，点击“<strong>Go</strong>”；</li>
<li>然后就会进入常规步骤了；</li>
<li>到填写<strong>Blog Title</strong>的步骤，填写了你的博客名称和邮箱，点击<strong>Install WordPress</strong>；</li>
<li>OK，这时马上会显示admin和密码，到此WP安装完毕。</li>
</ol>
<p><span id="more-264"></span><br />
<strong>注意事项：</strong></p>
<ol>
<li>相应的MYSQL数据库必须是已经建立好的；</li>
<li>安装过程中会可能会覆盖数据库中已经存在的同名数据表，请确认你的数据已经备份；</li>
<li>这个脚本推荐使用LAMP平台，Windows平台的用户请谨慎使用；</li>
<li>这个脚本帮你安装的是英文版本的WordPress，稍后我会汉化一个；</li>
<li>在正常情况下，EasyWP所在目录的权限需为755，如果不行，那就777好了。</li>
</ol>
<p>我在填写完相应数据后，点击GO，WordPress界面马上就出来了，<br />
可见国外空间跟WP服务器直接的数据传输速度非常之快，同时也极力推荐国外空间的WP用户使用，<br />
对国内用户来说，用了这个脚本，也能快一些，不过，不好说，嘿嘿~</p>
<p>参考来源<br />
DailyBlogTips: <a href="http://www.dailyblogtips.com/trouble-installing-wordpress-try-easywp-install/">http://www.dailyblogtips.com/trouble-installing-wordpress-try-easywp-install/</a><br />
PHP Scripts: <a href="http://www.funscripts.net/php-scripts/">http://www.funscripts.net/php-scripts/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2009-05/easy-wordpress-installing.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>软RAID可用性测试</title>
		<link>http://mr21.in/2009-03/availability-test-for-soft-raid.html</link>
		<comments>http://mr21.in/2009-03/availability-test-for-soft-raid.html#comments</comments>
		<pubDate>Thu, 19 Mar 2009 04:41:59 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[软言软语]]></category>
		<category><![CDATA[2000]]></category>
		<category><![CDATA[2003]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[软RAID]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=244</guid>
		<description><![CDATA[通常，一些公司或者企业， 在购买服务器的时候会忽略了对RAID的支持或者预算不足以购买支持合适RAID的服务器， 而在实际业务的使用中又需要提供一个阵列上的支持，这个时候要加增加配件... ]]></description>
			<content:encoded><![CDATA[<p>通常，一些公司或者企业，<br />
在购买服务器的时候会忽略了对RAID的支持或者预算不足以购买支持合适RAID的服务器，<br />
而在实际业务的使用中又需要提供一个阵列上的支持，这个时候要加增加配件显然不太合适BOSS的心意，</p>
<p>而从Win2000开始，系统提供了一种叫“软阵列”的功能，<br />
可以让你在Windows系统中，通过软件的方式，实现磁盘的充分利用而不用增加任何硬件，<br />
这样倒是节省成本了，</p>
<p>不过，如果系统坏了，呃，众所周知的，Windows还是很不稳定的，<br />
如果系统坏了，如果系统要升级了，怎么办？<br />
是不是重装/升级系统，软阵列的阵列信息就会丢失？或者说数据会丢失？<br />
毕竟没有一个ROM来存储这些阵列的信息嘛~</p>
<p>本文的目的就在于解决以上的担忧，<br />
不过现在的RAID卡很便宜，服务器也大都支持到RAID5，<br />
所以本文仅仅是个人的小研究，仅供参考，</p>
<p>目前只有RAID1/0的测试，随后的RAID5我也会找时间跟上的，<br />
至于RAID6，系统应该是不支持的，<br />
RAID1+0/0+1的话，有钱买硬盘还能不买块RAID卡？？<br />
当然，有机会有时间都会做做测试的，仅供学术研究~</p>
<blockquote>
<h2><a name="menu">文章目录：</a></h2>
<li>零、 <a href="http://mr21.in/2009-03/availability-test-for-soft-raid.html#no0">测试简述</a></li>
<li>一、 <a href="http://mr21.in/2009-03/availability-test-for-soft-raid.html#no1">测试平台</a></li>
<li>二、 <a href="http://mr21.in/2009-03/availability-test-for-soft-raid.html#no2">测试目标</a></li>
<li>三、 <a href="http://mr21.in/2009-03/availability-test-for-soft-raid.html#no3">测试一，重装系统后的效果</a></li>
<li>四、 <a href="http://mr21.in/2009-03/availability-test-for-soft-raid.html#no4">测试二，升级系统后的效果</a></li>
</blockquote>
<p><span id="more-244"></span></p>
<h3><strong><a name="no0">简述：</a></strong></h3>
<li>本文仅<strong>简单测试</strong>重装/升级系统(Win2000-&gt;Win2003)后对软RAID是否有影响，</li>
<li>不阐述RAID的制作和原理解释。</li>
<li>因为测试结束前，单位有一台服务器需要重装系统，当初前任制作了RAID1。</li>
<li>写在这里仅用于记录。</li>
<h3><strong><a name="no1">平台：</a></strong></h3>
<li><strong>Machine:</strong> VMware.</li>
<li><strong>OS1:</strong> Windows 2000 Advance Server.</li>
<li><strong>OS2:</strong> Windows Server 2003 Standard.</li>
<li><strong>3 VMware disk:</strong> Disk0 is <span style="text-decoration: underline;">3G</span>, Disk1 is <span style="text-decoration: underline;">512M</span>, Disk2 is <span style="text-decoration: underline;">512M</span>.</li>
<li><strong>3G</strong> is <span style="text-decoration: underline;">Operating System</span>, <strong>512M+512M</strong> is <span style="text-decoration: underline;">RAID 0 and 1</span>.</li>
<h3><strong><a name="no2">目标：</a></strong></h3>
<ol>
<li>测试一，重新安装系统，软RAID是否继续有效且数据不受损。</li>
<li>测试二，升级系统后(Win2000 upgrade to Win2003)，软RAID是否继续有效且数据不受损。</li>
</ol>
<h3><strong><a name="no3">测试一</a></strong></h3>
<ol>
<li>Disk0安装Win2000</li>
<li>Disk1&amp;2初始化之后，升级为动态磁盘，分别做RAID0(带区卷)/1(镜像卷)</li>
<li>RAID放置测试文件“新建文件夹”、“新建文本文档.txt”、“新建写字板文档.doc”</li>
<li>重启</li>
<li>使用Win2000安装CD引导</li>
<li>进入分区选择的步骤，得出以下结果：
<div>
<div style="float:left;width:200px;"><a href="http://picasaweb.google.com/lh/photo/07JnaYBuV4CmRofqhmPV9w?feat=embedwebsite"><img src="http://lh5.ggpht.com/_yJB0PIHwozI/SadpCv2H4KI/AAAAAAAAB0o/w0ROA035JVg/s144/Windows%202000%20Server-RAID0.png.jpg" alt="" /></a><br />
Windows 2000 Server-RAID0</div>
<p><a href="http://picasaweb.google.com/live21/SoftRAID?feat=embedwebsite#5307326177054242082"><img src="http://lh4.ggpht.com/_yJB0PIHwozI/SadpCeJzNSI/AAAAAAAAB0g/86GtacRh45E/s144/Windows%202000%20Server-RAID1.png.jpg" alt="" /></a><br />
Windows 2000 Server-RAID1</div>
</li>
<li>事后测试，在系统内不用任何设置直接可以访问RAID分区的所有内容。</li>
</ol>
<h3><strong><a name="no4">测试二</a></strong></h3>
<ol>
<li>使用Win2003引导，格式化Disk0，正常安装系统。<br />
选择磁盘过程中，无法如上图测试一的图片哪样识别软RAID并赋予盘符。</li>
<li>
<div id="imgdiv">
<div id="imgdivimg">
<a href="http://picasaweb.google.com/lh/photo/m0BOiBV6HfmeIib0v8RcWg?feat=embedwebsite"><img src="http://lh3.ggpht.com/_yJB0PIHwozI/SadpDX7qZDI/AAAAAAAAB0w/1azRjsUPHEc/s144/Windows%202003-2009-02-13-09-59-46.png.jpg" /></a>
</div>
<div id="imgdivtext">
Soft RAID in Win2003<br />
Step 1<br />
被识别为外部的动态磁盘，无法直接使用。
</div>
</div>
</li>
<li>
<div id="imgdiv">
<div id="imgdivimg">
<a href="http://picasaweb.google.com/lh/photo/QYs1O_Mu9wom-K6T8ROOVA?feat=embedwebsite"><img src="http://lh4.ggpht.com/_yJB0PIHwozI/SadpEM4wsGI/AAAAAAAAB04/ThiRLNIkPHI/s144/Windows%202003-2009-02-13-09-59-51.png.jpg" /></a>
</div>
<div id="imgdivtext">
Soft RAID in Win2003<br />
Step 2<br />
在磁盘1上右键，选择“<strong>导入外部磁盘</strong>”。
</div>
</div>
</li>
<li>
<div id="imgdiv">
<div id="imgdivimg">
<a href="http://picasaweb.google.com/lh/photo/KsKhD-yvOdY3m397baW2LQ?feat=embedwebsite"><img src="http://lh6.ggpht.com/_yJB0PIHwozI/SadpEy03VTI/AAAAAAAAB1A/zm-M1PB5wVM/s144/Windows%202003-2009-02-13-10-00-05.png.jpg" /></a>
</div>
<div id="imgdivtext">
Soft RAID in Win2003<br />
Step 3<br />
这时，系统告诉你，需要导入的是“磁盘组”，说明识别出来了。
</div>
</div>
</li>
<li>
<div id="imgdiv">
<div id="imgdivimg">
<a href="http://picasaweb.google.com/lh/photo/txsHN7qH5GDKwK3KIz5Reg?feat=embedwebsite"><img src="http://lh3.ggpht.com/_yJB0PIHwozI/SadpFcOmhgI/AAAAAAAAB1I/X91svSCi4MQ/s144/Windows%202003-2009-02-13-10-00-10.png.jpg" /></a>
</div>
<div id="imgdivtext">
Soft RAID in Win2003<br />
Step 4<br />
选择“磁盘”，可以查看本磁盘组的成员磁盘。图中为“磁盘1/2”，证明没错。
</div>
</div>
</li>
<li>
<div id="imgdiv">
<div id="imgdivimg">
<a href="http://picasaweb.google.com/lh/photo/6oAn5cAwZQPIk1vXTPMtZA?feat=embedwebsite"><img src="http://lh4.ggpht.com/_yJB0PIHwozI/SadpGMHULCI/AAAAAAAAB1Q/Nw2dxYliTf4/s144/Windows%202003-2009-02-13-10-00-20.png.jpg" /></a>
</div>
<div id="imgdivtext">
Soft RAID in Win2003<br />
Step 5<br />
系统识别出RAID1，选择“确定”导入。
</div>
</div>
</li>
<li>
<div id="imgdiv">
<div id="imgdivimg">
<a href="http://picasaweb.google.com/lh/photo/DfUByls_ljNETwsn3n0Gpw?feat=embedwebsite"><img src="http://lh6.ggpht.com/_yJB0PIHwozI/SadpGjvEbRI/AAAAAAAAB1Y/4eFTOCYxpEA/s144/Windows%202003-2009-02-13-10-02-09.png.jpg" /></a>
</div>
<div id="imgdivtext">
Soft RAID in Win2003<br />
Step 6<br />
导入成功后，磁盘状态为“联机”，容量正常，识别为RAID1镜像卷。
</div>
</div>
</li>
<li>
<div id="imgdiv">
<div id="imgdivimg">
<a href="http://picasaweb.google.com/lh/photo/l4gG6yKW12R9JCl3xGLAVg?feat=embedwebsite"><img src="http://lh5.ggpht.com/_yJB0PIHwozI/SadpHTKoQTI/AAAAAAAAB1g/wOAOx_gKNEo/s144/Windows%202003-2009-02-13-10-02-18.png.jpg" /></a>
</div>
<div id="imgdivtext">
Soft RAID in Win2003<br />
Step 7<br />
赋予系统盘符，正常。
</div>
</div>
</li>
<li>
<div id="imgdiv">
<div id="imgdivimg">
<a href="http://picasaweb.google.com/lh/photo/RuUabi1Qy7mIRu4Ey4jy0w?feat=embedwebsite"><img src="http://lh5.ggpht.com/_yJB0PIHwozI/SadpIcb8pNI/AAAAAAAAB1o/WyHL2hPA4Ss/s144/Windows%202003-2009-02-13-10-03-45.png.jpg" /></a>
</div>
<div id="imgdivtext">
Soft RAID in Win2003<br />
Final<br />
Win2000的磁盘文件全部识别出来，测试结束。
</div>
</div>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2009-03/availability-test-for-soft-raid.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>安装BootMgr到MBR</title>
		<link>http://mr21.in/2008-12/install-bootmgr-to-mbr.html</link>
		<comments>http://mr21.in/2008-12/install-bootmgr-to-mbr.html#comments</comments>
		<pubDate>Thu, 18 Dec 2008 06:34:12 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[软言软语]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[多重启动]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=220</guid>
		<description><![CDATA[帮H同学折腾笔记本， 要求安装WinXP/Win2K3/Win2K8/Ubuntu/Leopard多启动。 目前解决了WinXP/Win2K3/Win2K8/Ubuntu的安装和多启动。 安装的过程是 Win XP -> Win 2K3 -> Win 2K8 -> Ubuntu 默认的引导流程是 GRUB (Ubuntu/Win2... ]]></description>
			<content:encoded><![CDATA[<p>帮H同学折腾笔记本，<br />
要求安装WinXP/Win2K3/Win2K8/Ubuntu/Leopard多启动。<br />
目前解决了WinXP/Win2K3/Win2K8/Ubuntu的安装和多启动。</p>
<p>安装的过程是</p>
<blockquote><p>Win XP -> Win 2K3 -> Win 2K8 -> Ubuntu</p></blockquote>
<p>默认的引导流程是</p>
<blockquote><p>
GRUB (Ubuntu/Win2k8) -> BootMgr (Win2k8/Earlier Win) -> NTLDR (Win2k3/XP)
</p></blockquote>
<p>但是，因为从GRUB到XP需要经过一个BootMgr，个人觉得比较繁琐，<br />
并且，后面要安装的Leopard的<strong>chain0</strong>文件用BootMgr/NTLDR引导比较方便，<br />
于是有了将BootMgr恢复到MBR的想法（此时MBR已经被GRUB覆盖了），</p>
<p>首先是备份GRUB的MBR代码，在Ubuntu里面执行</p>
<blockquote><p>dd if=/dev/sda of=~/linux.bin bs=512 count=1</p></blockquote>
<p>并将~/linux.bin复制到Windows能访问的分区里面（我复制到c:\）</p>
<p>对于GRUB的引导，你可以有两个选择，</p>
<p><strong>1. NTLDR -> GRUB</strong><br />
到XP或者2K3里面，<br />
编辑<strong>c:\boot.ini</strong>文件（需要去除<strong>隐藏</strong>和<strong>系统</strong>两个属性），在末尾加入行</p>
<blockquote><p>c:\linux.bin=&#8221;Ubuntu Desktop 8.10&#8243;</p></blockquote>
<p><strong>2. BootMgr -> GRUB</strong><br />
或者到win2k8里面，开始->运行->cmd-><strong>bcdedit</strong>，然后执行（runas admin）</p>
<blockquote><p>bcdedit /create /d &#8220;Ubuntu Desktop 8.10&#8243; /application bootsector<br />
执行后会回馈一个{id}，请代入下列命令<br />
bcdedit /set {id} device partition=C:<br />
bcdedit /set {id} path \gdldr.mbr<br />
bcdedit /displayorder {id} /addlast<br />
bcdedit /default {id}
</p></blockquote>
<p>OK，接下来就是恢复BootMgr的MBR代码了。<br />
在这一步遇到了不少问题，<br />
不管是G.cn还是百度，都无法给出满意的处理办法，<br />
不少人在琢磨 <strong>bootsect</strong> 的用法，但是 <strong>bootsect</strong> 无法写入到MBR。</p>
<p>正当无聊的时候，我用Win2k8光盘启动，进入修复程式->Command Prompt，<br />
不停地翻看X盘（由boot.wim虚拟出来的内存盘），列出b开头的可执行程序(dir b*.exe /a)，<br />
在<strong>X:\Windows\System32></strong>我找到一个<strong>bootrec.exe</strong>，似乎跟<strong>bootsect/bcdedit</strong>不大一样，<br />
执行了一下，提示</p>
<blockquote><p>X:\Windows\System32>bootrec /?</p>
<p>Repairs critical disk structures. The following commands are supported:</p>
<p><strong>/FixMbr</strong> &#8212; writes the master boot record of the system partition using the master boot record compatible with Windows Vista.  This operation does not overwrite the existing partition table.</p>
<p><strong>/FixBoot</strong> &#8212; write a new boot sector onto the system partition using the boot sector compatible with Windows Vista.</p>
<p><strong>/ScanOs</strong> &#8212; scan all disks for installations compatible with Windows Vista and display the entries that are currently not in the boot configuration store.</p>
<p><strong>/RebuildBcd</strong> &#8212; scan all disks for installations compatible with Windows Vista and allow the user to choose which to add to the boot configuration store.</p></blockquote>
<p>看到这些，让我想起了XP/2K3的Recovery Console里面的fixmbr/fixboot，<br />
也就是说，如果我执行bootrec /fixmbr的话，BootMgr的MBR代码就得以恢复了。</p>
<blockquote><p>X:\Windows\System32>bootrec /fixmbr</p></blockquote>
<p>执行后重启，GRUB已经被干掉，直接由BootMgr带头启动了。</p>
<p>现在引导流程变更为</p>
<blockquote><p>
1. BootMgr (Win2k8/Earlier Win) -> NTLDR (Win2k3/XP) -> GRUB (Ubuntu/Win2k8)<br />
2. BootMgr (Win2k8/Earlier Win) -> [GRUB -> BootMgr] / [NTLDR]
</p></blockquote>
<p>关键词汇：<br />
[Windows 2008] [Win2k8] [Win2008] [Windows Server 2008] [Ubuntu] [WinXP] [Windows XP] [Win2k3] [Windows 2003] [Win2003] [BootMgr] [MBR] [GRUB] [Leopard] [NTLDR] [Linux] [BootRec] [BootSect] [BCDEdit] [Boot] [多重启动]</p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2008-12/install-bootmgr-to-mbr.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Win2k自动更新重启后无法登陆</title>
		<link>http://mr21.in/2008-12/win2k-can-not-log-in-after-windows-update.html</link>
		<comments>http://mr21.in/2008-12/win2k-can-not-log-in-after-windows-update.html#comments</comments>
		<pubDate>Thu, 04 Dec 2008 13:25:59 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[软言软语]]></category>
		<category><![CDATA[2000]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[VNC]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[升级]]></category>
		<category><![CDATA[登陆]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=219</guid>
		<description><![CDATA[今天中午登陆VNC， 得知综合信息平台的Windows 2000 Server因为进行了Windows Update需要重启， 想着正好中午没人在用，重启一下， 结果用于检测的PING在常规时间后有回馈了，但是WEB和VNC无法访问。 ... ]]></description>
			<content:encoded><![CDATA[<p>今天中午登陆VNC，<br />
得知综合信息平台的Windows 2000 Server因为进行了Windows Update需要重启，<br />
想着正好中午没人在用，重启一下，<br />
结果用于检测的PING在常规时间后有回馈了，但是WEB和VNC无法访问。</p>
<p>电话联系同事解决，<br />
物理登陆的结果是：有蓝底背景色，但是登陆窗口没有出现。<br />
后来尝试安全模式，可以进入的。<br />
联想到最后的操作是打补丁，也是开始卸载补丁。</p>
<p>最后经过资料查询和比较，<br />
发现<strong>KB954211</strong>补丁和<strong>卡巴斯基6.0网络版客户端</strong>有冲突，<br />
卸载就好了，从此禁用WU，垃圾！</p>
<p>居然补丁不经过兼容性测试就发布出来了，那是服务器诶！服务器知道不！<br />
很重要的！你们的OS卖那么贵还这么不负责任，害死人的！还全职商业开发，还闭源呢！</p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2008-12/win2k-can-not-log-in-after-windows-update.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决Linux VNC Viewer无法连接Win</title>
		<link>http://mr21.in/2008-11/vnc-connect-to-windows-with-linux.html</link>
		<comments>http://mr21.in/2008-11/vnc-connect-to-windows-with-linux.html#comments</comments>
		<pubDate>Fri, 28 Nov 2008 19:03:39 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[软言软语]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RFB]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VNC]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=216</guid>
		<description><![CDATA[新近安装了Ubuntu 8.10，并且升级各种更新包到最新。 由于工作需要， 需要访问布置了RealVNC的一堆Windows服务器进行日常维护管理， 其中，服务器安装了RealVNC Enterprise Edition v4.3.2, 客户端为Ubuntu 8... ]]></description>
			<content:encoded><![CDATA[<p>新近安装了Ubuntu 8.10，并且升级各种更新包到最新。</p>
<p>由于工作需要，<br />
需要访问布置了<a href="http://www.realvnc.com">RealVNC</a>的一堆Windows服务器进行日常维护管理，<br />
其中，服务器安装了<a href="http://www.realvnc.com/products/enterprise/index.html">RealVNC Enterprise Edition v4.3.2</a>, 客户端为<a href="http://www.ubuntulinux.com">Ubuntu</a> 8.10，</p>
<p>关于安装的VNC viewer，<br />
可以说<strong>新立得</strong>里面有的，我全部都安装测试了，没有一个能用！</p>
<p>不论是直接执行还是通过“终端伺服器用户端”调用，<br />
统统报告“<strong>No match security type</strong>”（没有匹配的安全类型），<br />
头大了，<br />
虽然可以通过RDP连接到终端桌面，但那是虚拟桌面，且服务器只布置了VNC，</p>
<p>经过翻阅新立得的程序说明和各类资料，<br />
发现主要是协议问题，<strong>RFB</strong>的版本过低，新立得里的Viewer最高只能支持<strong>RFB 3.8</strong>，<br />
但是RealVNC Enterprise Edition v4.3.2使用的是<strong>RFB 4.0</strong>，<br />
问题知道了，但是哪里去找支持RFB 4.0的Viewer呢？又折腾了半天~</p>
<p>最终，在RealVNC网站找到<strong>二进制(bin)</strong>的客户端，<br />
有各个OS的Viewer，包括Solaris, Windows, Linux etc, 就是不提供Source，</p>
<p>不过，好在问题解决了，<br />
下载了对应的4.3.2的Viewer，并同时测试了最新的4.4.2的Viewer，<br />
都支持RFB 4.0，OK，问题解决。</p>
<p>后来发现，<br />
新立得里面提供的几个Viewer似乎是RealVNC释出的免费版本（Free edition）使用的源码，<br />
而官方提供的最高版本为：VNC Free Edition 4.1。</p>
<p>结论：以后遇到高版本RFB的VNC Server，试试RealVNC最新的Viewer吧~</p>
<p>下载： http://www.realvnc.com/cgi-bin/download.cgi （填写表单后就出来了）</p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2008-11/vnc-connect-to-windows-with-linux.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决Win2003 安装SP2 拒绝访问</title>
		<link>http://mr21.in/2008-11/win2k3-sp2-refuse.html</link>
		<comments>http://mr21.in/2008-11/win2k3-sp2-refuse.html#comments</comments>
		<pubDate>Wed, 26 Nov 2008 13:55:06 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[软言软语]]></category>
		<category><![CDATA[2003]]></category>
		<category><![CDATA[sp2]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[拒绝访问]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=213</guid>
		<description><![CDATA[关闭任何防护类软件，例如杀毒软件、防火墙、安全卫士等等。 我的例子是， 开着瑞星全套监控，装一半报错：拒绝访问... ]]></description>
			<content:encoded><![CDATA[<p>关闭任何防护类软件，例如杀毒软件、防火墙、安全卫士等等。</p>
<p>我的例子是，<br />
开着瑞星全套监控，装一半报错：<strong>拒绝访问</strong>。</p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2008-11/win2k3-sp2-refuse.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>解决 Win2003 SP1 无法安装</title>
		<link>http://mr21.in/2008-11/%e8%a7%a3%e5%86%b3-win2003-sp1-%e6%97%a0%e6%b3%95%e5%ae%89%e8%a3%85.html</link>
		<comments>http://mr21.in/2008-11/%e8%a7%a3%e5%86%b3-win2003-sp1-%e6%97%a0%e6%b3%95%e5%ae%89%e8%a3%85.html#comments</comments>
		<pubDate>Wed, 26 Nov 2008 13:07:35 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[软言软语]]></category>
		<category><![CDATA[2003]]></category>
		<category><![CDATA[sp1]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[安装]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=212</guid>
		<description><![CDATA[将以下注册表信息存成任意*.reg文件，将其导入到注册表中即可实现Windows 2003 SP1的升级了。 Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion] &#8220;ProductId&#8221;=&#8221;69... ]]></description>
			<content:encoded><![CDATA[<p>将以下注册表信息存成任意*.reg文件，将其导入到注册表中即可实现Windows 2003 SP1的升级了。</p>
<blockquote><p>Windows Registry Editor Version 5.00</p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]<br />
&#8220;ProductId&#8221;=&#8221;69713-640-9722366-45198&#8243;</p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]<br />
&#8220;CurrentBuild&#8221;=&#8221;1.511.1 () (Obsolete data &#8211; do not use)&#8221;<br />
&#8220;InstallDate&#8221;=dword:3f6c976d<br />
&#8220;ProductName&#8221;=&#8221;Microsoft Windows Server 2003&#8243;<br />
&#8220;RegDone&#8221;=&#8221;"<br />
&#8220;SoftwareType&#8221;=&#8221;SYSTEM&#8221;<br />
&#8220;CurrentVersion&#8221;=&#8221;5.2&#8243;<br />
&#8220;CurrentBuildNumber&#8221;=&#8221;3790&#8243;<br />
&#8220;BuildLab&#8221;=&#8221;3790.srv03_rtm.030324-2048&#8243;<br />
&#8220;CurrentType&#8221;=&#8221;Uniprocessor Free&#8221;<br />
&#8220;ProductId&#8221;=&#8221;69713-640-9722366-45198&#8243;<br />
&#8220;DigitalProductId&#8221;=hex:a4,00,00,00,03,00,00,00,36,39,37,31,33,2d,36,34,30,2d,\<br />
39,37,32,32,33,36,36,2d,34,35,31,39,38,00,5a,00,00,00,41,32,32,2d,30,30,30,\<br />
30,31,00,00,00,00,00,00,00,00,e5,3f,e9,6a,2c,ed,25,35,12,ec,11,c9,8d,01,00,\<br />
00,00,00,00,37,03,6d,3f,44,22,06,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\<br />
00,00,00,00,00,00,00,00,00,00,00,31,32,32,32,30,00,00,00,00,00,00,00,dc,0f,\<br />
00,00,bf,4a,94,6c,80,00,00,00,15,18,00,00,00,00,00,00,00,00,00,00,00,00,00,\<br />
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,34,79,ca,d7<br />
&#8220;LicenseInfo&#8221;=hex:71,84,c7,56,a0,d6,10,6e,70,b4,9f,e9,10,1a,1e,7a,01,a4,41,09,\<br />
25,20,0e,80,83,80,1f,31,27,86,64,1f,31,dc,22,af,f7,7d,aa,e4,2a,b9,e5,e3,6c,\<br />
e2,01,69,85,70,91,be,a7,9f,95,e5</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2008-11/%e8%a7%a3%e5%86%b3-win2003-sp1-%e6%97%a0%e6%b3%95%e5%ae%89%e8%a3%85.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP &amp; Apache for Win</title>
		<link>http://mr21.in/2005-09/php-apache-for-win.html</link>
		<comments>http://mr21.in/2005-09/php-apache-for-win.html#comments</comments>
		<pubDate>Thu, 29 Sep 2005 10:36:13 +0000</pubDate>
		<dc:creator>Mr. 21</dc:creator>
				<category><![CDATA[软言软语]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://mr21.in/?p=147</guid>
		<description><![CDATA[文章源自对Boiling Soul的回复。 在Windows平台配置PHP+Apache，常见的问题之一就是[color=aaaaaa]Unable to load dynamic library (.dll)[/color] 而一般的做法是把 DLL 复制到 %systemroot%\system32 里面， 不过，这样的缺... ]]></description>
			<content:encoded><![CDATA[<p>文章源自<a href="http://www.techat.org/weblog/?p=135">对Boiling Soul的回复</a>。</p>
<p>在Windows平台配置PHP+Apache，常见的问题之一就是[color=aaaaaa]Unable to load dynamic library (.dll)[/color]</p>
<p>而一般的做法是把 DLL 复制到 %systemroot%\system32 里面，<br />
不过，这样的缺点显而易见：</p>
<ol>
<li>如果需要大量的额外模块，那么会增加SYSTEM32的体积；</li>
<li>如果系统出现问题，备份是麻烦的事情；</li>
<li>如果需要对支持的模块进行整理/升级&#8230;</li>
</ol>
<p>而我的方案是，把[color=aaaaaa]DLL模块文件放置到%Apache%\bin目录内[/color]，<br />
因为WINDOWS的寻找顺序会[color=aaaaaa]先从程序目录[/color]开始，所以DLL文件可以放在%Apache%\bin目录内。</p>
<p>需要什么模块，就把模块文件复制过去就行。<br />
不过，缺点是把SYSTEM32的负担转移到了%Apache%\bin下，但是相对与SYSTEM32的文件数量来说，这么做是值得的。</p>
<p>另外附加一个我自己使用的关于PHP的诀窍。是关于[color=aaaaaa]同时在IIS内支持PHP4/5[/color]的办法。（之前询问过Prim@Hosting的销售代表，据说他们也没试过……）</p>
<p>手工配置PHP的时候，一般会建议把php.ini放置在%systemroot%内，不过这样一来就只能在WINDOWS内唯一支持PHP4或PHP5，<br />
这样对程序开发者而言，同时[color=aaaaaa]测试对PHP4/5的兼容[/color]则会非常麻烦。</p>
<p>我做法是：[color=aaaaaa]把php.ini留在原PHP安装目录[/color]，例如\php4\php.ini和\php5\php.ini，<br />
在一个IIS上配置PHP4/PHP5，IIS的目录下的文件解释引擎因为支持单独设置，<br />
所以可以在一个站点里面，建两目录，4/5，然后就可以分别设置PHP4/PHP5为4/5目录（两个目录也可以设置为虚拟目录指向同一目录）的PHP解释引擎。（因为PHP.ini在各自的目录里面，不会冲突的）<br />
这样就可以在同一个IIS内测试程序对PHP4/5的兼容性。</p>
<p>相关：<br />
Apache   http://www.apache.org<br />
PHP   http://www.php.net</p>
]]></content:encoded>
			<wfw:commentRss>http://mr21.in/2005-09/php-apache-for-win.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
