Sumary: since there is no/etc/initab file in Fedora, we cannot set its runleveltarget here, But Linux provides us with a powerful tool named systemd, we can use system to link the default startup level, so let's get started! I. Implementation Code (1) Delete the target link and create a new Symbolic Link (started from the command line) ln-sf/lib/systemd/system/multi-user.target
Sumary: because there is no/etc/initab file in Fedora, we cannot set its runlevel target here, But Linux provides us with a powerful tool named systemd, we can use system to link the default startup level, so let's get started!
I. Implementation Code
(1) Delete the target link and create a new Symbolic Link (starting from the command line)
ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
(2) Start from the graphic interface
Replace multi user.targetwith graphical.tar get.
Ii. Code explanation
Ln command
The ln command is a command for establishing a link between files. By default, it is hard link. We need to use symboli link ), it can create links for files in different file systems.
Options:
-S: Create a symbolic link
-F: delete an existing link with the same name.
One of the Usages: ln [target to be linked] [linked file or directory]
Example:
Ln-s xx yy
// Create a symbolic link yy for xx
Done!
For more details, please google the key words
Linux boot mode systemd upstart sysV http://www.linuxidc.com/Linux/2014-01/95555.htm
Why is systemd so quickly adopted? Http://www.linuxidc.com/Linux/2014-08/105789.htm
Systemd and sysVinit Color comparison table http://www.linuxidc.com/Linux/2014-09/106455.htm
Linux Kernel EMD-start/stop/Restart service http://www.linuxidc.com/Linux/2014-08/105975.htm in RHEL/CentOS 7
So useful! Run the systemd command to manage the Linux system! Http://www.linuxidc.com/Linux/2014-09/106490.htm
Linux init system initialization, Part 1: Systemd http://www.linuxidc.com/Linux/2014-12/110383.htm
For more information about Fedora, see Fedora topics page http://www.linuxidc.com/topicnews.aspx? Tid = 5
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-01/111985.htm