Getting started with Linux: Running Level Analysis

Source: Internet
Author: User
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;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.