For beginners, after installing the operating system it is best to turn off the firewall and selinux, today I will simply take you configure the look
- systemd various cell types
sysvinit run level - Several common control types
start (start): run the specified system service procedures, services
stop (stop): terminates the specified system service program, disable the corresponding function
restart (restart): first exit and re-run the specified system services
reload (reload): Do not quit the service program, just refresh the configuration, and then restart some services with the same operating
status (see status): Displays the operating status of the system and related information services -
Check target system
because my character is switchable graphics, it is 53 to switch to using init 3
[root @ centos ~] #init 0 // Close the current system
[root @ centos ~] #init 6 // restart the current system
or
[root @ centos ~] #systemctl poweroff // Close the current system
[root @ centos ~] #systemctl reboot // current system reboot - Use systemctl tool
systemctl control options Service Name - Common options are as follows:
enable: boot automatically
disable: boot automatically shut down
is-enable: Check boot status
[root @ centos ~] #systemctl enable service names
[root @ centos ~] #systemctl disable the service name
[root @ centos ~ ] #systemctl is-enable the service name