软讯网络 > 操作系统 > Linux > 修复启动问题
【标 题】:修复启动问题
【关键字】:
【来 源】:http://www.cublog.cn/u/18669/showart.php?id=205086
修复启动问题
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.
【相关文章】
没有相关文章