Mac OS X v10.6 Snow Leopard includes a 64-bit kernel. On hardware that supports the 64-bit kernel, you can choose whether to start up (boot) your Mac using the new 64-bit kernel or the earlier 32-bit kernel.
app
Mac OS X Server 10.6, Mac OS X 10.6, Mac Pro (Mid 2010)ide
You can use either of these methods:this
Method 1: Startup key combination (for current startup only)
code
Your Mac will revert to the default kernel the next time you reboot it.
orm
Method 2: On-disk setting (persistent)
server
To select the 64-bit kernel for the current startup disk, use the following command in Terminal:
sudo systemsetup -setkernelbootarchitecture x86_64
To select the 32-bit kernel for the current startup disk, use the following command in Terminal:
sudo systemsetup -setkernelbootarchitecture i386
Note: This setting is stored in the /Library/Preferences/SystemConfiguration/com.apple.Boot.plist file and will take effect every time you start up from this disk. If you start up from a different disk, the setting on that disk, or the hardware default, will take effect.get
Note: Learn how to determine whether your Mac can use the 64-bit kernel and which kernel it uses by default.string
打開 /Library/Preferences/SystemConfiguration/com.apple.Boot.plist 把 <key>Kernel Flags</key> <string></string> 替換成 <key>Kernel Flags</key> <string>arch=x86_64</string> 切換 32位 or 64位內核 – Mac OS X 10.6 Mac OS X頗有意思,安裝的時候已經同時裝了32位內核和64位內核,但對於非server版的10.6來講,默認啓動的是32位內核。Apple官方給出瞭如何快速切換內核的方法[1]: 1. 臨時切換內核: 該方法只生效一次,下次啓動又恢復成默認內核(方法2能夠修改默認啓動內核): 啓動時: 1) 按住 '3' 和 '2',則本次啓動進入32位內核; 2) 按住 '6' 和 '4' ,則本次啓動進入64位內核。 2. 設置默認啓動內核: To select the 64-bit kernel for the current startup disk, use the following command in Terminal: sudo systemsetup -setkernelbootarchitecture x86_64 To select the 32-bit kernel for the current startup disk, use the following command in Terminal: sudo systemsetup -setkernelbootarchitecture i386 Note: This setting is stored in the /Library/Preferences/SystemConfiguration/com.apple.Boot.plist file and will take effect every time you start up from this disk. If you start up from a different disk, the setting on that disk, or the hardware default, will take effect.