Redhat7 modifies the default running level method -- RHEL7 uses systemd to create a symbolic link pointing to the default running level

Source: Internet
Author: User
Today installed the formal version of RHEL7, found that the familiar inittab does not modify the default running level, open inittab as follows [root@localhostinit.d] # vi/etc/inittab # tabs. # addingconfigurationherewillhavenow.tonyours

Today, the official version of RHEL7 is installed, and the default running level is not modified in the familiar inittab. Open the inittab as follows:

[Root @ localhost init. d] # vi/etc/inittab
# Inittab is no longer used when using systemd.
#
# Adding configuration here will have no effect on your system.
#
# Ctrl-Alt-Delete is handled by/etc/systemd/system/ctrl-alt-del.target
#
# Define EMD uses 'targets' instead of runlevels. By default, there are two main targets:
#
# Multi-user.target: analogous to runlevel 3
# Graphical.tar get: analogous to runlevel 5
#
# To set a default target, run:
#
# Ln-sf/lib/systemd/system/ . Target/etc/systemd/system/default.tar get

No familiar id: 5: initdefault in the middle

 

RHEL7 uses systemd to create a symbolic link pointing to the default running level.

 

The modification method is as follows:
1. delete an existing Symbolic Link
----------------------------------------------------------------------------------
Rm/etc/systemd/system/default.tar get
----------------------------------------------------------------------------------
2. The default level is 3 (text mode)
----------------------------------------------------------------------------------
Ln-sf/lib/systemd/system/multi-user.target/etc/systemd/system/default.tar get
----------------------------------------------------------------------------------
Or the default level is 5 (graphic mode)
----------------------------------------------------------------------------------
Ln-sf/lib/systemd/system/graphical.tar get/etc/systemd/system/default.tar get
----------------------------------------------------------------------------------
3. Restart
----------------------------------------------------------------------------------
Reboot
----------------------------------------------------------------------------------

Red Hat Enterprise Linux 7 Users download http://www.linuxidc.com/Linux/2014-06/102998.htm now

RHEL 6.3 installation tutorial graphic details http://www.linuxidc.com/Linux/2014-05/101845.htm

Red Hat Linux 7.0 installation illustrationHttp://www.linuxidc.com/Linux/2014-06/103190.htm

For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2014-07/104073.htm

Related Article

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.