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.
阅读(939) | 评论(0) | 转发(0) |