Linux入门:运行级别解析
一、查看当前运行级别
Ubuntu中,runlevel命令 可以查看当前运行级别;CentOS中,who -r 命令查看当前运行级别;
二、设置开机运行级别
1.Ubuntu
方法1:在/etc/init/rc-sysinit.conf中设置
# Default runlevel, this may be overriden on the kernel command-line# or by faking an old /etc/inittab entryenv DEFAULT_RUNLEVEL=2
方法2:在/etc/inittab中设置