CentOS7 set the boot directly into the command line interface

Source: Internet
Author: User

Internet query Centsos set boot directly into the command line interface of the method are said to modify the/etc/inittab file, the file ": Id:5:initdefault:" Instead of ": Id:3:initdefault:", The default runlevel will be changed from 5 to 3, but the/etc/inittab page under CentOS7 is shown below:
 # Inittab is no longer used when  using systemd.## ADDING CONFIGURATION Has NO EFFECT on  YOUR system.## ctrl-alt-delete is handled by/etc/systemd/system/ Ctrl-alt-del . target  # # SYSTEMD uses ' targets ' instead of runlevels. by Default, There is the main targets:  # # Multi-user.target:analogous to RunLevel 3 # graphical.target:analogous to RunLevel 5## to set  a default target, run  :  # # # Ln-sf/lib/systemd/system/<target name>.target/etc/ Systemd/system/default. target  # 
Note that the Inittab file has not been used, now CentOS7 use SYSTEMD as the new init system, and the SYSTEMD system uses "target" instead of "RunLevel", by default there are two main target: Multi-user.target: equivalent to runlevel 3[command line interface],graphical.target: equivalent to RunLevel 5[graphical interface] Set the default target to use the command: ln-sf/lib/systemd/ System/<target Name>.target/etc/systemd/system/default.target I'm here to turn CentOS7 on by default into the command line interface, run the command:
# Ln-sf/lib/systemd/system/multi-user.target/etc/systemd/system/default.target

CentOS7 set the boot directly into the command line interface

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.