Document directory
- 1. Ubuntu
- 2. centos
- 1. Ubuntu
- 2. centos
1. Check the current running level in Ubuntu. Run the runlevel command to view the current running level. Run the who-R command in centos to view the current running level. 2. Set the running level on Ubuntu.
Method 1: Set in/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
Method 2: Set in/etc/inittab
1. ubuntu does not have this file by default, so create this file 2. add ID: 3: initdefault: OK; 2. in centos, Set ID: 3: initdefault: in/etc/inittab. 3. Run-level parsing. 1. ubuntu0: shutdown; 1: single-user mode; 2-5: multi-user mode; 6: restart; 2. centos0: shutdown; 1: single user; 2: multi-user, no network; 3: multi-user with network, but in text mode; 4: unused system; 5: graphic interface; 6: restart;