Chinaunix首页 | 论坛 | 博客
  • 博客访问: 72917
  • 博文数量: 26
  • 博客积分: 1010
  • 博客等级: 少尉
  • 技术积分: 230
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-07 17:45
文章分类

全部博文(26)

文章存档

2015年(1)

2011年(1)

2007年(1)

2006年(23)

我的朋友

分类: LINUX

2006-11-23 11:57:18

Repairing Problems
If you find you’ve introduced a terrible problem, the solution is simply to switch to another run
level. Run levels 3 through 5 are clones of 2 (or they were before you edited run level 2), so you
can simply make one of those the default. Then, after rebooting into it, run SysV Runlevel
Control again to experiment and reintroduce some excluded services into run level 2. Then you
can switch back to run level 2 afterwards.
     The default run level is set in the /etc/inittab file. You can load this into the nano
command-line text editor, like so:
sudo nano /etc/inittab
     Then look for the line that reads id:2:initdefault: and replace it with id:3:initdefault:
(to switch to run level 3; to revert to run level 2, replace 3 with 2). Press Ctrl+X to exit nano and
answer Y to the option of saving the buffer, which will save the file.

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