<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[Jerry's Blog]]></title> 
<description><![CDATA[好好学习，天天向上]]></description>
<link>http://maoa.cn/</link>
<language>zh-cn</language>
<generator>www.emlog.net</generator>
<item>
	<title>VMware ESXi 中的 CentOS 硬盘扩容</title>
	<link>http://maoa.cn/?post=421</link>
	<description><![CDATA[<div><div>1. 在 vSphere Client 上直接扩大虚拟机的硬盘空间或者挂载一块新硬盘。</div>
<div><br />
</div>
<div>2. 查看当前硬盘空间情况：</div>
<div><br />
</div>
<div>[root@ucslab admin]# df -h</div>
<div>文件系统 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 容量 &nbsp;已用 &nbsp;可用 已用%% 挂载点</div>
<div>/dev/mapper/vg_ucslab-lv_root</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;50G &nbsp;8.8G &nbsp; 38G &nbsp;19% /</div>
<div>tmpfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 7.8G &nbsp; 88K &nbsp;7.8G &nbsp; 1% /dev/shm</div>
<div>/dev/sda1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 485M &nbsp; 30M &nbsp;430M &nbsp; 7% /boot</div>
<div>/dev/mapper/vg_ucslab-lv_home</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;26G &nbsp;616M &nbsp; 24G &nbsp; 3% /home</div>
<div><br />
</div>
<div>3. 创建新分区并调整分区类型：</div>
<div><br />
</div>
<div>[root@ucslab admin]# fdisk /dev/sda</div>
<div><br />
</div>
<div>WARNING: DOS-compatible mode is deprecated. It's strongly recommended to</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;switch off the mode (command 'c') and change display units to</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sectors (command 'u').</div>
<div><br />
</div>
<div>Command (m for help): p (显示当前分区情况)</div>
<div><br />
</div>
<div>Disk /dev/sda: 536.9 GB, 536870912000 bytes</div>
<div>255 heads, 63 sectors/track, 65270 cylinders</div>
<div>Units = cylinders of 16065 * 512 = 8225280 bytes</div>
<div>Sector size (logical/physical): 512 bytes / 512 bytes</div>
<div>I/O size (minimum/optimal): 512 bytes / 512 bytes</div>
<div>Disk identifier: 0x000e362d</div>
<div><br />
</div>
<div>&nbsp; &nbsp;Device Boot &nbsp; &nbsp; &nbsp;Start &nbsp; &nbsp; &nbsp; &nbsp; End &nbsp; &nbsp; &nbsp;Blocks &nbsp; Id &nbsp;System</div>
<div>/dev/sda1 &nbsp; * &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;64 &nbsp; &nbsp; &nbsp;512000 &nbsp; 83 &nbsp;Linux</div>
<div>Partition 1 does not end on cylinder boundary.</div>
<div>/dev/sda2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;64 &nbsp; &nbsp; &nbsp; 10444 &nbsp; &nbsp;83373056 &nbsp; 8e &nbsp;Linux LVM</div>
<div><br />
</div>
<div>Command (m for help): n (创建新的主分区)</div>
<div>Command action</div>
<div>&nbsp; &nbsp;e &nbsp; extended</div>
<div>&nbsp; &nbsp;p &nbsp; primary partition (1-4)</div>
<div>p</div>
<div>Partition number (1-4): 3</div>
<div>First cylinder (10444-65270, default 10444):</div>
<div>Using default value 10444</div>
<div>Last cylinder, +cylinders or +size{K,M,G} (10444-65270, default 65270):</div>
<div>Using default value 65270</div>
<div><br />
</div>
<div>Command (m for help): p (显示当前分区情况)</div>
<div><br />
</div>
<div>Disk /dev/sda: 536.9 GB, 536870912000 bytes</div>
<div>255 heads, 63 sectors/track, 65270 cylinders</div>
<div>Units = cylinders of 16065 * 512 = 8225280 bytes</div>
<div>Sector size (logical/physical): 512 bytes / 512 bytes</div>
<div>I/O size (minimum/optimal): 512 bytes / 512 bytes</div>
<div>Disk identifier: 0x000e362d</div>
<div><br />
</div>
<div>&nbsp; &nbsp;Device Boot &nbsp; &nbsp; &nbsp;Start &nbsp; &nbsp; &nbsp; &nbsp; End &nbsp; &nbsp; &nbsp;Blocks &nbsp; Id &nbsp;System</div>
<div>/dev/sda1 &nbsp; * &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;64 &nbsp; &nbsp; &nbsp;512000 &nbsp; 83 &nbsp;Linux</div>
<div>Partition 1 does not end on cylinder boundary.</div>
<div>/dev/sda2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;64 &nbsp; &nbsp; &nbsp; 10444 &nbsp; &nbsp;83373056 &nbsp; 8e &nbsp;Linux LVM</div>
<div>/dev/sda3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10444 &nbsp; &nbsp; &nbsp; 65270 &nbsp; 440395195 &nbsp; 83 &nbsp;Linux</div>
<div><br />
</div>
<div>Command (m for help): t &nbsp;(修改分区类型为 Linux LVM, 8e)</div>
<div>Partition number (1-4): 3</div>
<div>Hex code (type L to list codes): 8e</div>
<div>Changed system type of partition 3 to 8e (Linux LVM)</div>
<div><br />
</div>
<div>Command (m for help): w</div>
<div>The partition table has been altered!</div>
<div><br />
</div>
<div>Calling ioctl() to re-read partition table.</div>
<div><br />
</div>
<div>WARNING: Re-reading the partition table failed with error 16: 设备或资源忙.</div>
<div>The kernel still uses the old table. The new table will be used at</div>
<div>the next reboot or after you run partprobe(8) or kpartx(8)</div>
<div>Syncing disks.</div>
<div><br />
</div>
<div>建议重启，或使用partprobe刷新硬盘情况。</div>
<div><br />
</div>
<div>4. 查看修改后的分区情况：</div>
<div><br />
</div>
<div>[root@ucslab admin]# fdisk -l</div>
<div><br />
</div>
<div>Disk /dev/sda: 536.9 GB, 536870912000 bytes</div>
<div>255 heads, 63 sectors/track, 65270 cylinders</div>
<div>Units = cylinders of 16065 * 512 = 8225280 bytes</div>
<div>Sector size (logical/physical): 512 bytes / 512 bytes</div>
<div>I/O size (minimum/optimal): 512 bytes / 512 bytes</div>
<div>Disk identifier: 0x000e362d</div>
<div><br />
</div>
<div>&nbsp; &nbsp;Device Boot &nbsp; &nbsp; &nbsp;Start &nbsp; &nbsp; &nbsp; &nbsp; End &nbsp; &nbsp; &nbsp;Blocks &nbsp; Id &nbsp;System</div>
<div>/dev/sda1 &nbsp; * &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;64 &nbsp; &nbsp; &nbsp;512000 &nbsp; 83 &nbsp;Linux</div>
<div>Partition 1 does not end on cylinder boundary.</div>
<div>/dev/sda2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;64 &nbsp; &nbsp; &nbsp; 10444 &nbsp; &nbsp;83373056 &nbsp; 8e &nbsp;Linux LVM</div>
<div>/dev/sda3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10444 &nbsp; &nbsp; &nbsp; 65270 &nbsp; 440395195 &nbsp; 8e &nbsp;Linux LVM</div>
<div><br />
</div>
<div>Disk /dev/dm-0: 53.7 GB, 53687091200 bytes</div>
<div>255 heads, 63 sectors/track, 6527 cylinders</div>
<div>Units = cylinders of 16065 * 512 = 8225280 bytes</div>
<div>Sector size (logical/physical): 512 bytes / 512 bytes</div>
<div>I/O size (minimum/optimal): 512 bytes / 512 bytes</div>
<div>Disk identifier: 0x00000000</div>
<div><br />
</div>
<div>Disk /dev/dm-0 doesn't contain a valid partition table</div>
<div><br />
</div>
<div>Disk /dev/dm-1: 4227 MB, 4227858432 bytes</div>
<div>255 heads, 63 sectors/track, 514 cylinders</div>
<div>Units = cylinders of 16065 * 512 = 8225280 bytes</div>
<div>Sector size (logical/physical): 512 bytes / 512 bytes</div>
<div>I/O size (minimum/optimal): 512 bytes / 512 bytes</div>
<div>Disk identifier: 0x00000000</div>
<div><br />
</div>
<div>Disk /dev/dm-1 doesn't contain a valid partition table</div>
<div><br />
</div>
<div>Disk /dev/dm-2: 27.5 GB, 27455913984 bytes</div>
<div>255 heads, 63 sectors/track, 3337 cylinders</div>
<div>Units = cylinders of 16065 * 512 = 8225280 bytes</div>
<div>Sector size (logical/physical): 512 bytes / 512 bytes</div>
<div>I/O size (minimum/optimal): 512 bytes / 512 bytes</div>
<div>Disk identifier: 0x00000000</div>
<div><br />
</div>
<div>Disk /dev/dm-2 doesn't contain a valid partition table</div>
<div><br />
</div>
<div>5. 初始化物理卷：</div>
<div><br />
</div>
<div>[root@ucslab admin]# pvcreate /dev/sda3</div>
<div>&nbsp; Physical volume "/dev/sda3" successfully created</div>
<div><br />
</div>
<div>6. 添加到卷组：</div>
<div><br />
</div>
<div>[root@ucslab admin]# lvm</div>
<div>lvm&gt; vgdisplay</div>
<div>&nbsp; --- Volume group ---</div>
<div>&nbsp; VG Name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vg_ucslab (卷组名称)</div>
<div>&nbsp; System ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
<div>&nbsp; Format &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lvm2</div>
<div>&nbsp; Metadata Areas &nbsp; &nbsp; &nbsp; &nbsp;1</div>
<div>&nbsp; Metadata Sequence No &nbsp;4</div>
<div>&nbsp; VG Access &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; read/write</div>
<div>&nbsp; VG Status &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resizable</div>
<div>&nbsp; MAX LV &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0</div>
<div>&nbsp; Cur LV &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3</div>
<div>&nbsp; Open LV &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3</div>
<div>&nbsp; Max PV &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0</div>
<div>&nbsp; Cur PV &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1</div>
<div>&nbsp; Act PV &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1</div>
<div>&nbsp; VG Size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 79.51 GiB</div>
<div>&nbsp; PE Size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4.00 MiB</div>
<div>&nbsp; Total PE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;20354</div>
<div>&nbsp; Alloc PE / Size &nbsp; &nbsp; &nbsp; 20354 / 79.51 GiB</div>
<div>&nbsp; Free &nbsp;PE / Size &nbsp; &nbsp; &nbsp; 0 / 0 &nbsp;</div>
<div>&nbsp; VG UUID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1xZKPs-dWqe-Y8Ca-x885-Czo7-wCA8-gMd5u2</div>
<div>&nbsp;&nbsp;</div>
<div>lvm&gt; vgextend /dev/vg_ucslab /dev/sda3</div>
<div>&nbsp; Volume group "vg_ucslab" successfully extended</div>
<div><br />
</div>
<div>lvm&gt; vgdisplay</div>
<div>&nbsp; --- Volume group ---</div>
<div>&nbsp; VG Name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; vg_ucslab</div>
<div>&nbsp; System ID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div>
<div>&nbsp; Format &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;lvm2</div>
<div>&nbsp; Metadata Areas &nbsp; &nbsp; &nbsp; &nbsp;2</div>
<div>&nbsp; Metadata Sequence No &nbsp;5</div>
<div>&nbsp; VG Access &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; read/write</div>
<div>&nbsp; VG Status &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; resizable</div>
<div>&nbsp; MAX LV &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0</div>
<div>&nbsp; Cur LV &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3</div>
<div>&nbsp; Open LV &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 3</div>
<div>&nbsp; Max PV &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0</div>
<div>&nbsp; Cur PV &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2</div>
<div>&nbsp; Act PV &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2</div>
<div>&nbsp; VG Size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 499.50 GiB</div>
<div>&nbsp; PE Size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4.00 MiB</div>
<div>&nbsp; Total PE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;127872</div>
<div>&nbsp; Alloc PE / Size &nbsp; &nbsp; &nbsp; 20354 / 79.51 GiB</div>
<div>&nbsp; Free &nbsp;PE / Size &nbsp; &nbsp; &nbsp; 107518 / 419.99 GiB</div>
<div>&nbsp; VG UUID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1xZKPs-dWqe-Y8Ca-x885-Czo7-wCA8-gMd5u2</div>
<div>&nbsp;&nbsp;</div>
<div>7. 显示逻辑卷情况，并扩展逻辑卷大小，每个逻辑卷扩展200G：</div>
<div><br />
</div>
<div>lvm&gt; lvdisplay</div>
<div>&nbsp; --- Logical volume ---</div>
<div>&nbsp; LV Name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/dev/vg_ucslab/lv_root</div>
<div>&nbsp; VG Name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;vg_ucslab</div>
<div>&nbsp; LV UUID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ekSWAJ-Yv5j-E9br-nmyF-jNtV-PXGb-LpxdDt</div>
<div>&nbsp; LV Write Access &nbsp; &nbsp; &nbsp; &nbsp;read/write</div>
<div>&nbsp; LV Status &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;available</div>
<div>&nbsp; # open &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1</div>
<div>&nbsp; LV Size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;50.00 GiB</div>
<div>&nbsp; Current LE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 12800</div>
<div>&nbsp; Segments &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1</div>
<div>&nbsp; Allocation &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inherit</div>
<div>&nbsp; Read ahead sectors &nbsp; &nbsp; auto</div>
<div>&nbsp; - currently set to &nbsp; &nbsp; 256</div>
<div>&nbsp; Block device &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 253:0</div>
<div>&nbsp;&nbsp;</div>
<div>&nbsp; --- Logical volume ---</div>
<div>&nbsp; LV Name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/dev/vg_ucslab/lv_home</div>
<div>&nbsp; VG Name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;vg_ucslab</div>
<div>&nbsp; LV UUID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cNeSMR-eddd-noQx-nMpq-pf1i-g3Qu-DEEt2M</div>
<div>&nbsp; LV Write Access &nbsp; &nbsp; &nbsp; &nbsp;read/write</div>
<div>&nbsp; LV Status &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;available</div>
<div>&nbsp; # open &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1</div>
<div>&nbsp; LV Size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;25.57 GiB</div>
<div>&nbsp; Current LE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 6546</div>
<div>&nbsp; Segments &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1</div>
<div>&nbsp; Allocation &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inherit</div>
<div>&nbsp; Read ahead sectors &nbsp; &nbsp; auto</div>
<div>&nbsp; - currently set to &nbsp; &nbsp; 256</div>
<div>&nbsp; Block device &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 253:2</div>
<div>&nbsp;&nbsp;</div>
<div>&nbsp; --- Logical volume ---</div>
<div>&nbsp; LV Name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/dev/vg_ucslab/lv_swap</div>
<div>&nbsp; VG Name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;vg_ucslab</div>
<div>&nbsp; LV UUID &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DxN0XW-2g7D-ffle-zYme-yH4O-Ntbv-llAxPY</div>
<div>&nbsp; LV Write Access &nbsp; &nbsp; &nbsp; &nbsp;read/write</div>
<div>&nbsp; LV Status &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;available</div>
<div>&nbsp; # open &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1</div>
<div>&nbsp; LV Size &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;3.94 GiB</div>
<div>&nbsp; Current LE &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1008</div>
<div>&nbsp; Segments &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1</div>
<div>&nbsp; Allocation &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inherit</div>
<div>&nbsp; Read ahead sectors &nbsp; &nbsp; auto</div>
<div>&nbsp; - currently set to &nbsp; &nbsp; 256</div>
<div>&nbsp; Block device &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 253:1</div>
<div><br />
</div>
<div>lvm&gt; lvextend -L +200G /dev/vg_ucslab/lv_root</div>
<div>&nbsp; Extending logical volume lv_root to 250.00 GiB</div>
<div>&nbsp; Logical volume lv_root successfully resized</div>
<div>lvm&gt; lvextend -L +200G /dev/vg_ucslab/lv_home</div>
<div>&nbsp; Extending logical volume lv_home to 225.57 GiB</div>
<div>&nbsp; Logical volume lv_home successfully resized</div>
<div>lvm&gt; quit</div>
<div>&nbsp; Exiting.</div>
<div><br />
</div>
<div>8. 修改文件系统实现扩容：&nbsp;</div>
<div><br />
</div>
<div>[root@ucslab admin]# resize2fs -p /dev/vg_ucslab/lv_root</div>
<div>resize2fs 1.41.12 (17-May-2010)</div>
<div>Filesystem at /dev/vg_ucslab/lv_root is mounted on /; on-line resizing required</div>
<div>old desc_blocks = 4, new_desc_blocks = 16</div>
<div>Performing an on-line resize of /dev/vg_ucslab/lv_root to 65536000 (4k) blocks.</div>
<div>The filesystem on /dev/vg_ucslab/lv_root is now 65536000 blocks long.</div>
<div><br />
</div>
<div>[root@ucslab admin]# resize2fs -p /dev/vg_ucslab/lv_home</div>
<div>resize2fs 1.41.12 (17-May-2010)</div>
<div>Filesystem at /dev/vg_ucslab/lv_home is mounted on /home; on-line resizing required</div>
<div>old desc_blocks = 2, new_desc_blocks = 15</div>
<div>Performing an on-line resize of /dev/vg_ucslab/lv_home to 59131904 (4k) blocks.</div>
<div>The filesystem on /dev/vg_ucslab/lv_home is now 59131904 blocks long.</div>
<div><br />
</div>
<div>另外，可以使用e2fsck -f 命令验证。</div>
<div><br />
</div>
<div>9. 扩容完成：</div>
<div><br />
</div>
<div>[admin@ucslab ~]$ df -h</div>
<div>文件系统 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 容量 &nbsp;已用 &nbsp;可用 已用%% 挂载点</div>
<div>/dev/mapper/vg_ucslab-lv_root</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 247G &nbsp;8.8G &nbsp;225G &nbsp; 4% /</div>
<div>tmpfs &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 7.8G &nbsp; 88K &nbsp;7.8G &nbsp; 1% /dev/shm</div>
<div>/dev/sda1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 485M &nbsp; 30M &nbsp;430M &nbsp; 7% /boot</div>
<div>/dev/mapper/vg_ucslab-lv_home</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 223G &nbsp;632M &nbsp;211G &nbsp; 1% /home</div>
<div><br />
</div>
</div><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://maoa.cn/?post=9">vSphere Client 切换语言</a></p></div>]]></description>
	<pubDate>Tue, 14 Feb 2012 08:56:02 +0000</pubDate>
	<author>Jerry</author>
	<guid>http://maoa.cn/?post=421</guid>

</item>
<item>
	<title>100个最古老的.com域名</title>
	<link>http://maoa.cn/?post=420</link>
	<description><![CDATA[<table class="domainlists ke-zeroborder" border="0" cellspacing="0" cellpadding="0" bgcolor="white">
<tbody>
<tr valign="top" align="left">
<td align="right">Rank <br />
</td>
<td align="right">Create date</td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td>Domain name</td>
</tr>
<tr>
<td align="right">1. </td>
<td align="right">15 Mar 1985</td>
<td></td>
<td><a href="http://www.iwhois.com/symbolics.com">Symbolics.com</a></td>
</tr>
<tr>
<td align="right">2. </td>
<td align="right">24 Apr 1985</td>
<td></td>
<td><a href="http://www.iwhois.com/bbn.com">BBN.com</a></td>
</tr>
<tr>
<td align="right">3. </td>
<td align="right">24 May 1985</td>
<td></td>
<td><a href="http://www.iwhois.com/think.com">Think.com</a></td>
</tr>
<tr>
<td align="right">4. </td>
<td align="right">11 Jul 1985</td>
<td></td>
<td><a href="http://www.iwhois.com/mcc.com">MCC.com</a></td>
</tr>
<tr>
<td align="right">5. </td>
<td align="right">30 Sep 1985</td>
<td></td>
<td><a href="http://www.iwhois.com/dec.com">DEC.com</a></td>
</tr>
<tr>
<td align="right">6. </td>
<td align="right">07 Nov 1985</td>
<td></td>
<td><a href="http://www.iwhois.com/northrop.com">Northrop.com</a></td>
</tr>
<tr>
<td align="right">7. </td>
<td align="right">09 Jan 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/xerox.com">Xerox.com</a></td>
</tr>
<tr>
<td align="right">8. </td>
<td align="right">17 Jan 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/sri.com">SRI.com</a></td>
</tr>
<tr>
<td align="right">9. </td>
<td align="right">03 Mar 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/hp.com">HP.com</a></td>
</tr>
<tr>
<td align="right">10. </td>
<td align="right">05 Mar 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/bellcore.com">Bellcore.com</a></td>
</tr>
<tr>
<td align="right">11. </td>
<td align="right">19 Mar 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/ibm.com">IBM.com</a></td>
</tr>
<tr>
<td align="right">11. </td>
<td align="right">19 Mar 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/sun.com">Sun.com</a></td>
</tr>
<tr>
<td align="right">13. </td>
<td align="right">25 Mar 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/intel.com">Intel.com</a></td>
</tr>
<tr>
<td align="right">13. </td>
<td align="right">25 Mar 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/ti.com">TI.com</a></td>
</tr>
<tr>
<td align="right">15. </td>
<td align="right">25 Apr 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/att.com">ATT.com</a></td>
</tr>
<tr>
<td align="right">16. </td>
<td align="right">08 May 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/gmr.com">GMR.com</a></td>
</tr>
<tr>
<td align="right">16. </td>
<td align="right">08 May 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/tek.com">TEK.com</a></td>
</tr>
<tr>
<td align="right">18. </td>
<td align="right">10 Jul 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/fmc.com">FMC.com</a></td>
</tr>
<tr>
<td align="right">18. </td>
<td align="right">10 Jul 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/ub.com">UB.com</a></td>
</tr>
<tr>
<td align="right">20. </td>
<td align="right">05 Aug 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/bell-atl.com">Bell-ATL.com</a></td>
</tr>
<tr>
<td align="right">20. </td>
<td align="right">05 Aug 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/ge.com">GE.com</a></td>
</tr>
<tr>
<td align="right">20. </td>
<td align="right">05 Aug 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/grebyn.com">Grebyn.com</a></td>
</tr>
<tr>
<td align="right">20. </td>
<td align="right">05 Aug 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/isc.com">ISC.com</a></td>
</tr>
<tr>
<td align="right">20. </td>
<td align="right">05 Aug 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/nsc.com">NSC.com</a></td>
</tr>
<tr>
<td align="right">20. </td>
<td align="right">05 Aug 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/stargate.com">Stargate.com</a></td>
</tr>
<tr>
<td align="right">26. </td>
<td align="right">02 Sep 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/boeing.com">Boeing.com</a></td>
</tr>
<tr>
<td align="right">27. </td>
<td align="right">18 Sep 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/itcorp.com">ITCorp.com</a></td>
</tr>
<tr>
<td align="right">28. </td>
<td align="right">29 Sep 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/siemens.com">Siemens.com</a></td>
</tr>
<tr>
<td align="right">29. </td>
<td align="right">18 Oct 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/pyramid.com">Pyramid.com</a></td>
</tr>
<tr>
<td align="right">30. </td>
<td align="right">27 Oct 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/alphacdc.com">AlphaCDC.com</a></td>
</tr>
<tr>
<td align="right">30. </td>
<td align="right">27 Oct 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/bdm.com">BDM.com</a></td>
</tr>
<tr>
<td align="right">30. </td>
<td align="right">27 Oct 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/fluke.com">Fluke.com</a></td>
</tr>
<tr>
<td align="right">30. </td>
<td align="right">27 Oct 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/inmet.com">Inmet.com</a></td>
</tr>
<tr>
<td align="right">30. </td>
<td align="right">27 Oct 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/kesmai.com">Kesmai.com</a></td>
</tr>
<tr>
<td align="right">30. </td>
<td align="right">27 Oct 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/mentor.com">Mentor.com</a></td>
</tr>
<tr>
<td align="right">30. </td>
<td align="right">27 Oct 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/nec.com">NEC.com</a></td>
</tr>
<tr>
<td align="right">30. </td>
<td align="right">27 Oct 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/ray.com">Ray.com</a></td>
</tr>
<tr>
<td align="right">30. </td>
<td align="right">27 Oct 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/rosemount.com">Rosemount.com</a></td>
</tr>
<tr>
<td align="right">30. </td>
<td align="right">27 Oct 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/vortex.com">Vortex.com</a></td>
</tr>
<tr>
<td align="right">40. </td>
<td align="right">05 Nov 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/alcoa.com">Alcoa.com</a></td>
</tr>
<tr>
<td align="right">40. </td>
<td align="right">05 Nov 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/gte.com">GTE.com</a></td>
</tr>
<tr>
<td align="right">42. </td>
<td align="right">17 Nov 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/adobe.com">Adobe.com</a></td>
</tr>
<tr>
<td align="right">42. </td>
<td align="right">17 Nov 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/amd.com">AMD.com</a></td>
</tr>
<tr>
<td align="right">42. </td>
<td align="right">17 Nov 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/das.com">DAS.com</a></td>
</tr>
<tr>
<td align="right">42. </td>
<td align="right">17 Nov 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/data%20io.com">Data IO.com</a></td>
</tr>
<tr>
<td align="right">42. </td>
<td align="right">17 Nov 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/octopus.com">Octopus.com</a></td>
</tr>
<tr>
<td align="right">42. </td>
<td align="right">17 Nov 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/portal.com">Portal.com</a></td>
</tr>
<tr>
<td align="right">42. </td>
<td align="right">17 Nov 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/teltone.com">Teltone.com</a></td>
</tr>
<tr>
<td align="right">42. </td>
<td align="right">11 Dec 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/3com.com">3Com.com</a></td>
</tr>
<tr>
<td align="right">50. </td>
<td align="right">11 Dec 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/amdahl.com">Amdahl.com</a></td>
</tr>
<tr>
<td align="right">50. </td>
<td align="right">11 Dec 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/ccur.com">CCUR.com</a></td>
</tr>
<tr>
<td align="right">50. </td>
<td align="right">11 Dec 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/ci.com">CI.com</a></td>
</tr>
<tr>
<td align="right">50. </td>
<td align="right">11 Dec 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/convergent.com">Convergent.com</a></td>
</tr>
<tr>
<td align="right">50. </td>
<td align="right">11 Dec 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/dg.com">DG.com</a></td>
</tr>
<tr>
<td align="right">50. </td>
<td align="right">11 Dec 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/peregrine.com">Peregrine.com</a></td>
</tr>
<tr>
<td align="right">50. </td>
<td align="right">11 Dec 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/quad.com">Quad.com</a></td>
</tr>
<tr>
<td align="right">50. </td>
<td align="right">11 Dec 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/sq.com">SQ.com</a></td>
</tr>
<tr>
<td align="right">50. </td>
<td align="right">11 Dec 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/tandy.com">Tandy.com</a></td>
</tr>
<tr>
<td align="right">50. </td>
<td align="right">11 Dec 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/tti.com">TTI.com</a></td>
</tr>
<tr>
<td align="right">50. </td>
<td align="right">11 Dec 1986</td>
<td></td>
<td><a href="http://www.iwhois.com/unisys.com">Unisys.com</a></td>
</tr>
<tr>
<td align="right">61. </td>
<td align="right">19 Jan 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/cgi.com">CGI.com</a></td>
</tr>
<tr>
<td align="right">61. </td>
<td align="right">19 Jan 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/cts.com">CTS.com</a></td>
</tr>
<tr>
<td align="right">61. </td>
<td align="right">19 Jan 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/spdcc.com">SPDCC.com</a></td>
</tr>
<tr>
<td align="right">64. </td>
<td align="right">19 Feb 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/apple.com">Apple.com</a></td>
</tr>
<tr>
<td align="right">65. </td>
<td align="right">04 Mar 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/nma.com">NMA.com</a></td>
</tr>
<tr>
<td align="right">65. </td>
<td align="right">04 Mar 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/prime.com">Prime.com</a></td>
</tr>
<tr>
<td align="right">67. </td>
<td align="right">04 Apr 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/philips.com">Philips.com</a></td>
</tr>
<tr>
<td align="right">68. </td>
<td align="right">23 Apr 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/datacube.com">Datacube.com</a></td>
</tr>
<tr>
<td align="right">68. </td>
<td align="right">23 Apr 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/kai.com">Kai.com</a></td>
</tr>
<tr>
<td align="right">68. </td>
<td align="right">23 Apr 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/tic.com">TIC.com</a></td>
</tr>
<tr>
<td align="right">68. </td>
<td align="right">23 Apr 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/vine.com">Vine.com</a></td>
</tr>
<tr>
<td align="right">72. </td>
<td align="right">30 Apr 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/ncr.com">NCR.com</a></td>
</tr>
<tr>
<td align="right">73. </td>
<td align="right">14 May 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/cisco.com">Cisco.com</a></td>
</tr>
<tr>
<td align="right">73. </td>
<td align="right">14 May 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/rdl.com">RDL.com</a></td>
</tr>
<tr>
<td align="right">75. </td>
<td align="right">20 May 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/slb.com">SLB.com</a></td>
</tr>
<tr>
<td align="right">76. </td>
<td align="right">27 May 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/parcplace.com">ParcPlace.com</a></td>
</tr>
<tr></td>
</tr>
<tr>
<td align="right">76. </td>
<td align="right">27 May 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/utc.com">UTC.com</a></td>
</tr>
<tr>
<td align="right">78. </td>
<td align="right">26 Jun 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/ide.com">IDE.com</a></td>
</tr>
<tr>
<td align="right">79. </td>
<td align="right">09 Jul 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/trw.com">TRW.com</a></td>
</tr>
<tr>
<td align="right">80. </td>
<td align="right">13 Jul 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/unipress.com">Unipress.com</a></td>
</tr>
<tr>
<td align="right">81. </td>
<td align="right">27 Jul 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/dupont.com">Dupont.com</a></td>
</tr>
<tr>
<td align="right">81. </td>
<td align="right">27 Jul 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/lockheed.com">Lockheed.com</a></td>
</tr>
<tr>
<td align="right">83. </td>
<td align="right">28 Jul 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/rosetta.com">Rosetta.com</a></td>
</tr>
<tr>
<td align="right">84. </td>
<td align="right">18 Aug 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/toad.com">Toad.com</a></td>
</tr>
<tr>
<td align="right">85. </td>
<td align="right">31 Aug 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/quick.com">Quick.com</a></td>
</tr>
<tr>
<td align="right">86. </td>
<td align="right">03 Sep 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/allied.com">Allied.com</a></td>
</tr>
<tr>
<td align="right">86. </td>
<td align="right">03 Sep 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/dsc.com">DSC.com</a></td>
</tr>
<tr>
<td align="right">86. </td>
<td align="right">03 Sep 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/sco.com">SCO.com</a></td>
</tr>
<tr>
<td align="right">89. </td>
<td align="right">22 Sep 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/gene.com">Gene.com</a></td>
</tr>
<tr>
<td align="right">89. </td>
<td align="right">22 Sep 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/kccs.com">KCCS.com</a></td>
</tr>
<tr>
<td align="right">89. </td>
<td align="right">22 Sep 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/spectra.com">Spectra.com</a></td>
</tr>
<tr>
<td align="right">89. </td>
<td align="right">22 Sep 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/wlk.com">WLK.com</a></td>
</tr>
<tr>
<td align="right">93. </td>
<td align="right">30 Sep 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/mentat.com">Mentat.com</a></td>
</tr>
<tr>
<td align="right">94. </td>
<td align="right">14 Oct 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/wyse.com">WYSE.com</a></td>
</tr>
<tr>
<td align="right">95. </td>
<td align="right">02 Nov 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/cfg.com">CFG.com</a></td>
</tr>
<tr>
<td align="right">96. </td>
<td align="right">09 Nov 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/marble.com">Marble.com</a></td>
</tr>
<tr>
<td align="right">97. </td>
<td align="right">16 Nov 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/cayman.com">Cayman.com</a></td>
</tr>
<tr>
<td align="right">97. </td>
<td align="right">16 Nov 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/entity.com">Entity.com</a></td>
</tr>
<tr>
<td align="right">99. </td>
<td align="right">24 Nov 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/ksr.com">KSR.com</a></td>
</tr>
<tr>
<td align="right">100. </td>
<td align="right">30 Nov 1987</td>
<td></td>
<td><a href="http://www.iwhois.com/nynexst.com">NynexST.com</a></td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<p>来源：<a href="http://www.iwhois.com/oldest/">http://www.iwhois.com/oldest/</a></p>]]></description>
	<pubDate>Sun, 29 Jan 2012 09:01:29 +0000</pubDate>
	<author>Jerry</author>
	<guid>http://maoa.cn/?post=420</guid>

</item>
<item>
	<title>突发奇想</title>
	<link>http://maoa.cn/?post=418</link>
	<description><![CDATA[<p>有很多话没说<br />
有很多事没做<br />
有很多时候你走后 我不知所措</p>
<p>有很多时间沉默<br />
有很多日子要过<br />
有很多时候你走后 我寂寞太多</p>
<p>突然有点突发奇想<br />
你是不是也和我一样<br />
对着同一片夜空和假想你在身旁</p>
<p>突然有点胡思乱想<br />
你我的故事结局会怎样<br />
是不是有一天我停住了<br />
你就会 飞向远方</p>
<p>是不是有一天我停住了<br />
你就会 留在身旁</p>
<p>&nbsp;</p>
<p><embed src="http://www.xiami.com/widget/0_84300/singlePlayer.swf" type="application/x-shockwave-flash" width="257" height="33" wmode="transparent" /></p>]]></description>
	<pubDate>Sun, 20 Nov 2011 09:41:34 +0000</pubDate>
	<author>Jerry</author>
	<guid>http://maoa.cn/?post=418</guid>

</item>
<item>
	<title>Mac OS 安装 Homebrew 和 MongoDB</title>
	<link>http://maoa.cn/?post=417</link>
	<description><![CDATA[<p><b>Homebrew</b></p>
<p>Homebrew 是一个简单方便的能够在 Apple Mac OS X 下安装 Unix 工具的程序。</p>
<p>安装方式比较简单，只需要在终端下直接输入：</p>
<p>jerry-mac:~ jerry$ /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"</p>
<p>但是，由于权限的问题，可能会提示问题：</p>
<p><p>-e:66: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040766</p>
<p>-e:77: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040766</p>
</p>
<p>调整目录的读写权限：</p>
<p><p>$ sudo chmod o-w /usr/local/bin</p>
<p>$ sudo chmod o-w /usr/local</p>
<p>重新尝试，</p>
<p><p>jerry-mac:~ jerry$ /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"</p>
<p>==&gt; This script will install:</p>
<p>/usr/local/bin/brew</p>
<p>/usr/local/Library/Formula/...</p>
<p>/usr/local/Library/Homebrew/...</p>
<p>==&gt; The following directories will be made group writable:</p>
<p>/usr/local/.</p>
<p>/usr/local/bin</p>
<p>==&gt; The following directories will have their group set to admin:</p>
<p>/usr/local/.</p>
<p>/usr/local/bin</p>
<p>Press enter to continue</p>
<p>==&gt; /usr/bin/sudo /bin/chmod g+rwx /usr/local/. /usr/local/bin</p>
<p>==&gt; /usr/bin/sudo /usr/bin/chgrp admin /usr/local/. /usr/local/bin</p>
<p>==&gt; Downloading and Installing Homebrew...</p>
<p>==&gt; Installation successful!</p>
<p>Now type: brew help</p>
<p>安装成功。</p>
<p>更新软件库清单：</p>
<p>jerry-mac:~ jerry$ brew update</p>
<p>Initialized empty Git repository in /usr/local/.git/</p>
<p>remote: Counting objects: 48129, done.</p>
<p>remote: Compressing objects: 100% (21482/21482), done.</p>
<p>remote: Total 48129 (delta 30258), reused 41855 (delta 25975)</p>
<p>Receiving objects: 100% (48129/48129), 6.72 MiB | 170 KiB/s, done.</p>
<p>Resolving deltas: 100% (30258/30258), done.</p>
<p>From https://github.com/mxcl/homebrew</p>
<p>&nbsp;* [new branch] &nbsp; &nbsp; &nbsp;gh-pages &nbsp; -&gt; origin/gh-pages</p>
<p>&nbsp;* [new branch] &nbsp; &nbsp; &nbsp;master &nbsp; &nbsp; -&gt; origin/master</p>
<p>HEAD is now at cbcaa4d gpac: make lowercasing binaries an option</p>
<p>Already up-to-date.</p>
<p><b>MongoDB</b></p>
<p><p>创建数据目录，更改权限：</p>
<p>jerry-mac:~ jerry$ sudo mkdir -p /data/db/</p>
<p>jerry-mac:~ jerry$ sudo chmod -R 777 /data/db/</p>
</p>
</p>
</p>
<p><p>方式1：通过 Homebrew 安装</p>
<p>$ brew install mongodb</p>
<p>方式2：解压缩安装包</p>
<p>下载地址：<a href="http://www.mongodb.org/downloads" target="_blank">http://www.mongodb.org/downloads</a></p>
<p>解压缩安装包，启动 MongoDB Server</p>
<p><p>$ ./mongodb-xxxxxxx/bin/mongod</p>
<p>测试下连接：</p>
<p><p>jerry-mac:bin jerry$ ./mongo</p>
<p>MongoDB shell version: 2.0.1</p>
<p>connecting to: test</p>
<p>&gt; db.foo.save({a:1})</p>
<p>&gt; db.foo.find()</p>
<p>{ "_id" : ObjectId("4ec48e59b4ce9fde1a0edea3"), "a" : 1 }</p>
</p>
</p>
</p><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://maoa.cn/?post=21">XPS M1210 安装 Mac OS X 10.6.5</a></p><p><a href="http://maoa.cn/?post=414">关于 Mac 右键菜单</a></p><p><a href="http://maoa.cn/?post=411">Mac OS 查看隐藏文件</a></p><p><a href="http://maoa.cn/?post=413">Magic Mouse 改变滚动方向</a></p></div>]]></description>
	<pubDate>Thu, 17 Nov 2011 06:12:59 +0000</pubDate>
	<author>Jerry</author>
	<guid>http://maoa.cn/?post=417</guid>

</item>
<item>
	<title>MySQL 各种问题</title>
	<link>http://maoa.cn/?post=416</link>
	<description><![CDATA[<p>今天在 Mac OS 下碰到了 MySQL 的各种问题，因为在 Mac 下用 MySQL 的时间不多，所以不太好确定是哪一层面的原因，费了不少周折，最后算是都解决了。</p>
<p><b>MySQL Workbench 无法使用</b></p>
<p>之前是用的 XAMPP 的 MySQL 组件，以前的使用相对比较简单，只是把数据库导入进去之后就在 Web 上直接用了，没有发现这个组件存在的问题，今天用 MySQL Workbench 访问这个库，发现报各种错误，主要的意思是/var/folders/下的某个诡异的目录没有读写权限，更改了目录读写权限后也是错误依旧。本来猜测是 Workbench 自己的原因，后来下载的新的版本也还是不能行。查看 MySQL 数据文件夹下的 err 文件，发现这个 MySQL 服务组件居然报了n多乌七八糟的错误，看来这个服务端已经不能要了。重新下载了个官方的 MySQL for Mac 版本，mysql-5.5.17-osx10.6-x86.dmg，装上去把库也挂上去，Workbench 居然好了。</p>
<p>由此看来，当 Workbench 出问题的时候，先不要着急骂 Workbench，看看自己的库是不是已经危了。</p>
<p><b>MySQL 访问权限</b></p>
<p>MySQL 比较白痴，127.0.0.1 和 localhost 不知道是一码事，在权限表里面是分开的。在修改密码的时候，一开始只改了1行，把localhost 改成了 %，登陆进去也好好的，但就是看不到库，比较让人崩溃。后来把两行都重新设置了才正常。另外，如果加外面的访问 % 的时候，最好单加一行，别把原来的删掉，不然也会容易错乱。</p>
<p>如果新创建用户，并且开通访问权限，其实写 localhost 和 % 这两个就成了。</p>
<p></p>
<p>GRANT ALL PRIVILEGES ON *.* TO 'user'@'localhost' IDENTIFIED BY 'password' WITH GRANT OPTION;</p>
<p>GRANT ALL PRIVILEGES ON *.* TO 'user'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;</p>
<p>FLUSH PRIVILEGES;</p>
<p></p>
<p><b>MySQL JDBC 连接</b></p>
<p>JDBC 访问 MySQL 的连接方式有点奇怪，用 127.0.0.1 可以正常访问，但是 localhost 会被拒绝。粗略看了下原因，如果是 localhost，在连接的时候会用本地的 IP 地址直接访问，如果这个IP 地址不在 MySQL 的访问权限表里，就会被拒绝掉。这个问题在 PHP 下面就没有发生，深层次的原因有空的时候好好分析分析。</p>
<p><b>MySQL 编码</b></p>
<p>MySQL 的编码总是非常恶心，用默认的配置启动，在程序里插入中文，提示：error 1336 (HYOOO):Incorrect string values:...</p>
<p>首先，考虑是服务器编码的问题，在my.cnf 的[mysqld]里面添加了：</p>
<p>character_set_server = utf8</p>
<p>在 MySQL 里确认字符集已均改为 utf8：</p>
<p></p>
<p>mysql&gt; SHOW VARIABLES LIKE 'character%';</p>
<p>+--------------------------+-----------------------------------------------------+</p>
<p>| Variable_name &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| Value &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |</p>
<p>+--------------------------+-----------------------------------------------------+</p>
<p>| character_set_client &nbsp; &nbsp; | utf8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|</p>
<p>| character_set_connection | utf8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|</p>
<p>| character_set_database &nbsp; | utf8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|</p>
<p>| character_set_filesystem | binary &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|</p>
<p>| character_set_results &nbsp; &nbsp;| utf8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|</p>
<p>| character_set_server &nbsp; &nbsp; | utf8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|</p>
<p>| character_set_system &nbsp; &nbsp; | utf8 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|</p>
<p>| character_sets_dir &nbsp; &nbsp; &nbsp; | /usr/local/mysql-5.5.17-osx10.6-x86/share/charsets/ |</p>
<p>+--------------------------+-----------------------------------------------------+</p>
<p>但是，中文数据依然无法插入，错误依旧，考虑库和表的字符集的问题，更改库字符集：</p>
<p>ALTER DATABASE db_name DEFAULT CHARACTER SET utf8;</p>
<p>依旧不行，更改原表的字符集：</p>
<p>ALTER TABLE temp_table DEFAULT CHARACTER SET utf8;</p>
<p>依旧还是不行，再继续把表默认的字符集和所有字符列（CHAR,VARCHAR,TEXT）改为新的字符集：</p>
<p><span class="Apple-style-span">ALTER TABLE&nbsp;</span>temp_table<span class="Apple-style-span">&nbsp;CONVERT TO CHARACTER SET utf8;</span></p>
<p>确认查看各个列的字符集：</p>
<p></p>
<p>mysql&gt; show full columns from temp_table;</p>
<p>+--------+--------------+-----------------+------+-----+---------+-------+---------------------------------+---------+</p>
<p>| Field &nbsp;| Type &nbsp; &nbsp; &nbsp; &nbsp; | Collation &nbsp; &nbsp; &nbsp; | Null | Key | Default | Extra | Privileges &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| Comment |</p>
<p>+--------+--------------+-----------------+------+-----+---------+-------+---------------------------------+---------+</p>
<p>| No &nbsp; &nbsp; | varchar(100) | utf8_general_ci | YES &nbsp;| &nbsp; &nbsp; | NULL &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; | select,insert,update,references | &nbsp; &nbsp; &nbsp; &nbsp; |</p>
<p>| Name &nbsp; | varchar(100) | utf8_general_ci | YES &nbsp;| &nbsp; &nbsp; | NULL &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; | select,insert,update,references | &nbsp; &nbsp; &nbsp; &nbsp; |</p>
<p>| Price &nbsp;| varchar(100) | utf8_general_ci | YES &nbsp;| &nbsp; &nbsp; | NULL &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; | select,insert,update,references | &nbsp; &nbsp; &nbsp; &nbsp; |</p>
<p>| Count &nbsp;| varchar(100) | utf8_general_ci | YES &nbsp;| &nbsp; &nbsp; | NULL &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; | select,insert,update,references | &nbsp; &nbsp; &nbsp; &nbsp; |</p>
<p>| Date &nbsp; | varchar(100) | utf8_general_ci | YES &nbsp;| &nbsp; &nbsp; | NULL &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; | select,insert,update,references | &nbsp; &nbsp; &nbsp; &nbsp; |</p>
<p>| Source | varchar(100) | utf8_general_ci | YES &nbsp;| &nbsp; &nbsp; | NULL &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; | select,insert,update,references | &nbsp; &nbsp; &nbsp; &nbsp; |</p>
<p>| Export | varchar(100) | utf8_general_ci | YES &nbsp;| &nbsp; &nbsp; | NULL &nbsp; &nbsp;| &nbsp; &nbsp; &nbsp; | select,insert,update,references | &nbsp; &nbsp; &nbsp; &nbsp; |</p>
<p>+--------+--------------+-----------------+------+-----+---------+-------+---------------------------------+---------+</p>
<p>7 rows in set (0.01 sec)</p>
<p></p>
<p>终于正常！</p>
<p>另外加一句，如果MySQL 服务端设置好之后，JDBC 或者 PHP 连接 MySQL 中文还是有问题，那多半是 Conn 的字符集问题，最好在查询开始前加一句：SET NAMES 'utf8'; 这句相当于：&nbsp;</p>
<p>SET character_set_client = utf8;&nbsp;</p>
<p>SET character_set_results = utf8;&nbsp;</p>
<p>SET character_set_connection = utf8;&nbsp;</p>
<p></p><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://maoa.cn/?post=390">MySQL 参数配置</a></p><p><a href="http://maoa.cn/?post=394">MySQL 用户管理</a></p><p><a href="http://maoa.cn/?post=395">MySQL 常用查询</a></p></div>]]></description>
	<pubDate>Mon, 14 Nov 2011 09:21:26 +0000</pubDate>
	<author>Jerry</author>
	<guid>http://maoa.cn/?post=416</guid>

</item>
<item>
	<title>如果有如果</title>
	<link>http://maoa.cn/?post=419</link>
	<description><![CDATA[<div>这世界 如果有如果</div>
<div>如果一切重头&nbsp;</div>
<div>如果你再说你爱我</div>
<div>习惯了 熟悉的温柔</div>
<div>turn around turn around turn around</div>
<div>怎么还是 一个我</div>
<div><br />
</div>
<div>雨滴滴答答的坠落&nbsp;</div>
<div>还有什么说不出口</div>
<div>泪不停不停的滑落&nbsp;</div>
<div>习惯没有你的角落</div>
<div><br />
</div>
<div>I want to sing a song for you</div>
<div>sing for myself</div>
<div>没有你的天空 没有云朵</div>
<div>you are my everything&nbsp;</div>
<div>and I really love you</div>
<div>在泪干了以后 想听你说 爱我</div>
<div><br />
</div>
<div>想太多 如果有如果</div>
<div>如果永远爱我&nbsp;</div>
<div>如果最后能到最后</div>
<div>一个人 该习惯什麽</div>
<div>turn around turn around turn around</div>
<div>习惯晚安自己说</div>
<div><br />
</div>
<div>雨滴滴答答的坠落&nbsp;</div>
<div>还有什么说不出口</div>
<div>泪不停不停的滑落&nbsp;</div>
<div>习惯没有你的角落</div>
<div><br />
</div>
<div>I want to sing a song for you</div>
<div>sing for myself</div>
<div>没有你的天空 没有云朵</div>
<div>you are my everything&nbsp;</div>
<div>and I really love you</div>
<div>在泪干了以后 却还记得</div>
<div><br />
</div>
<div>还记得青苹的酸甜 &nbsp;</div>
<div>酸到心里没有感觉</div>
<div>梦太美 回忆太心碎&nbsp;</div>
<div>再多给我 一点点的勇气</div>
<div><br />
</div>
<div>I want to sing a song for you</div>
<div>sing for myself</div>
<div>没有你的天空 没有云朵</div>
<div>you are my everything&nbsp;</div>
<div>and I really love you</div>
<div>在泪干了以后 想听你说 love you</div>
<div><br />
</div>
<div>这世界 如果有如果</div>
<div>如果一切重头</div>
<div>如果你还在</div>
<div>请 说你爱我</div>
<div><br />
</div>
<p><a href="http://www.xiami.com/song/1770197159" target="_blank">http://www.xiami.com/song/1770197159</a></p>
<p>&nbsp;</p>
<embed src="http://www.xiami.com/widget/0_1770197159/singlePlayer.swf" type="application/x-shockwave-flash" width="257" height="33" wmode="transparent" />]]></description>
	<pubDate>Mon, 24 Oct 2011 14:00:00 +0000</pubDate>
	<author>Jerry</author>
	<guid>http://maoa.cn/?post=419</guid>

</item>
<item>
	<title>解决 cannot modify header information - headers already sent by (......)</title>
	<link>http://maoa.cn/?post=415</link>
	<description><![CDATA[<p>PHP 页面提示 cannot modify header information - headers already sent by (......)</p>
<p>在页面顶部的php标签中加入ob_start();</p>
<p>
在返回的信息下面加入ob_end_flush();</p>
<p>错误信息成功屏蔽。</p>
<p>&nbsp;</p>
<p> 另外也可以尝试 php.ini 设置把 output_buffering 设为 on，另外注意去掉 UTF-8 中的 BOM。</p><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://maoa.cn/?post=398">PHP 时区设置</a></p></div>]]></description>
	<pubDate>Mon, 10 Oct 2011 09:31:40 +0000</pubDate>
	<author>Jerry</author>
	<guid>http://maoa.cn/?post=415</guid>

</item>
<item>
	<title>关于 Mac 右键菜单</title>
	<link>http://maoa.cn/?post=414</link>
	<description><![CDATA[<p>Mac OS X Lion 的 Launch Service 用于关联应用程序和文件并维护最近打开的项目列表。</p>
<p>在文件关联和右键菜单方面，每当系统安装一个新的应用程序，都会调用 Launch Service 的 API 注册关联的文件类型。有两种情况，一种是通过 pkg 安装包安装的，通常这些应用程序会通过脚本主动向 Launch Service 注册；而第二种常见的拖拽式 .app 应用程序，则是由 Finder 和系统通过对应用程序的的一些判断后代理注册的。应用程序通过 Launch Service 注册以后，就和特定的支持文档产生了关联。</p>
<p>Launch Service 隶属于 Application Service Framework (包含一堆的应用程序接口，开发者可以通过这些接口，调用系统服务)，用于使一个运行中的程序，能够打开另一个程序，文档，URL的接口。它可以打开另一个程序；在另一个程序中打开文档或URL；找到对于一个文档或URL最适用的程序；为一个应用程序注册它可以关联的文档类型和URL；获得一个文件，URL等正确的显示方式，比如如何显示此类文件的图标以及信息等；维护和更新最近试用过的最近试用程序和文档的列表。</p>
<p>从原理上看，Launch Service 维护着一个文件到应用程序之间的多对多对应关系，这个关系是存在一个数据库中。这个数据库被称作L aunch Service Database。对于 Mac OS X 下的每一个文件都有描述信息（包括我们从 GetInfo 中看到的一些）。Launch Service 感兴趣的，就是这个文件的文件类型码，创建者签名，文件扩展名，显示名称（用在 Finder 或 Dock 中显示），文件通用类型描述（比如，是应用程序，还是文件夹，或是替身，或是文件或视频）。除了这些，还有一些额外的 (Meta Data 用于快速描述文件信息) 标志位。比如，是否是可执行程序，是否是容器（文件夹，包，卷，dmg），是否是隐藏文件等等。而应用程序方面，Launch Service 会从应用程序的 info.plist 中获取诸如应用程序名称，图标，应用程序可打开的文件或URL类型，运行环境，是否有UI，对应权限等信息。Launch Service 就会根据这些信息，建立数据库，这就是右键点击文件时，看到的可打开此文件的应用程序列表。当然，如果一个文件根本没有任何匹配，右键菜单为空。Launch Service 会跳出窗口，让用户自行选择应用程序。用户选择后，Launch Service 就会将这个对应关系保存在数据库中。</p>
<p>Launch Service 对于一个文件关联多种应用程序的时候，也是有优先级排序规则的，从右键菜单就可以看出，Launch Service 会有一个默认选择的应用程序。它的排序规则是：<br />
1. 用户手动指定的应用程序拥有最高优先级。<br />
2. 如果没有指定，那么 Launch Service 会查看此文件扩展名，然后找到数据库中所有跟此扩展名相关的应用程序。<br />
3. 如果没有扩展名，或者第二步中找到多于一个的应用程序，LS 会查找该文件是否含有文件类型码，再按照此类型码在数据库中查找所有相关应用程序。<br />
4. 如果通过2,3步还是找到了多于一个的应用程序，那么，首先查找哪些应用程序注册的创建者签名和文件的创建者签名匹配，然后再查找哪些应用程序是否是 Mac OS X 本地应用程序（Native Program，指的是不用 Classic 模拟环境，X11 模拟环境，Java，Python 等等），再查找应用程序是否是存在于系统启动卷上，再查找哪些应用程序在本地卷上，如果到这里还是剩下多于一个的应用程序，就只能比版本号了。如果还是比不出来，那么 LS 就会随便排序了。</p>
<p>通常，我们在 Mac 下会遇到重复菜单项的问题，或者某些已经卸载的程序的菜单项遗留。从原因上来看，有三种可能：<br />
1. 除了 LS 感兴趣的项目外，还有好多其他的项目也要被存储在数据库中。每当 LS 要注册一个新应用程序时，它会先看这个应用程序中有没有一个 “inUpdate” 的描述，如果此描述值为 1 （就是Yes），那么LS会查找数据库进行匹配。匹配到后会用这个新应用程序的信息来更新这个旧的信息。如果“inUpdate”为0，那么 LS 会直接注册这个应用程序并关联文件。这可能是潜在的重复项出现原因。<br />
2. 有些装在 VM 或者 PD 的应用程序，在 VM 或 PD 卸载后也会残留到 LS 数据库中。<br />
3. 应用程序描述的一些更新变化，使得 LS 认为这是一个全新的应用程序而直接注册。这三个方面都有可能造成重复菜单项的出现，而且很难完全避免。</p>
<p>如果需要清理菜单重复项和无效的关联，可以在终端运行下面命令，在本地、系统和用户空间上，重建LS数据库：<br />
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user</p>
<p>lsregister 命令参数如下：<br />
-kill：重置全局LS数据库(最先执行)<br />
-lint：打印详细应用程序文件关联注册中的错误信息<br />
-convert：将老数据库中的信息注册到新的LS数据库<br />
-load：加载LS插件<br />
-lazy n：指定一个注册等待时间<br />
-r：递归的查找文件夹内容以做关联之用（不包括pkg类型文件和隐藏文件夹下的内容）<br />
-R：递归的查找文件夹内容以做关联之用（包括pkg类型文件和隐藏文件夹下的内容）<br />
-f：强制更新所有对应注册信息<br />
-v：输出lsregister运行详细信息<br />
-dump：在注册完成后显示数据库内容<br />
-h：显示此帮助</p><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://maoa.cn/?post=21">XPS M1210 安装 Mac OS X 10.6.5</a></p><p><a href="http://maoa.cn/?post=417">Mac OS 安装 Homebrew 和 MongoDB</a></p><p><a href="http://maoa.cn/?post=411">Mac OS 查看隐藏文件</a></p><p><a href="http://maoa.cn/?post=413">Magic Mouse 改变滚动方向</a></p></div>]]></description>
	<pubDate>Sun, 02 Oct 2011 16:23:40 +0000</pubDate>
	<author>Jerry</author>
	<guid>http://maoa.cn/?post=414</guid>

</item>
<item>
	<title>Magic Mouse 改变滚动方向</title>
	<link>http://maoa.cn/?post=413</link>
	<description><![CDATA[<p>默认的滚动方向很蛋疼，恢复成初始的方向只需要把自然滚动的勾去掉就可以了。</p>
<p>&nbsp;</p>
<p><a target="_blank" href="/content/uploadfile/201109/970bb146980072e48610f2fb13ea600a20110930091454.png" id="ematt:1"><img src="/content/uploadfile/201109/thum-970bb146980072e48610f2fb13ea600a20110930091454.png" alt="点击查看原图" border="0" /></a></p><div id="related_log" style="font-size:12px"><p><b>相关日志：</b></p><p><a href="http://maoa.cn/?post=21">XPS M1210 安装 Mac OS X 10.6.5</a></p><p><a href="http://maoa.cn/?post=414">关于 Mac 右键菜单</a></p><p><a href="http://maoa.cn/?post=417">Mac OS 安装 Homebrew 和 MongoDB</a></p><p><a href="http://maoa.cn/?post=411">Mac OS 查看隐藏文件</a></p></div>]]></description>
	<pubDate>Fri, 30 Sep 2011 09:12:58 +0000</pubDate>
	<author>Jerry</author>
	<guid>http://maoa.cn/?post=413</guid>

</item>
<item>
	<title>使用 ScribeFire 发布博客</title>
	<link>http://maoa.cn/?post=412</link>
	<description><![CDATA[<p>这是一篇用 ScribeFire 发布的文章，这款插件支持 Firefox 和 Safari，支持在浏览器的状态下直接发布博客文章。</p>
<p>不过似乎不支持我博客程序的分类和图片上传。</p>
<p>放弃。</p>]]></description>
	<pubDate>Thu, 29 Sep 2011 02:25:26 +0000</pubDate>
	<author>Jerry</author>
	<guid>http://maoa.cn/?post=412</guid>

</item></channel>
</rss>
