Chinaunix首页 | 论坛 | 博客
  • 博客访问: 297332
  • 博文数量: 69
  • 博客积分: 3093
  • 博客等级: 中校
  • 技术积分: 626
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-17 13:48
文章分类

全部博文(69)

文章存档

2011年(27)

2010年(11)

2009年(31)

分类: BSD

2011-03-14 15:56:58

切换 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.

Reference:

[1] Mac OS X v10.6: Starting up with the 32-bit or 64-bit kernel:

阅读(1029) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~