New acquaintance with Linux, simple configuration
For beginners, it is best to turn off the firewall and selinux after the operating system is installed. Today, I will briefly show you how to configure it.
Various unit types of systemd
Sysvinit run level
Several common types of control
Start (startup): run the specified system service program to realize the service function
Stop (stop): terminates the specified system service program and shuts down the corresponding function
Restart (restart): exit first, and then rerun the specified system service program
Reload (overload): does not quit the service program, but just refreshes the configuration, which is the same as restart in some services
Status (View status): view the running status and related information of the specified system service
View the target of the system
Because I am a graphic character switch, I can switch between init 3 and 5 3.
[root@centos ~] # init 0 / / shut down the current system
[root@centos ~] # init 6 / / restart the current system
Or
[root@centos ~] # systemctl poweroff / / shut down the current system
[root@centos ~] # systemctl reboot / / restart the current system
Use the systemctl tool
Systemctl control options common options for service names are as follows:
Enable: power on and start automatically
Disable: power on and shut down automatically
Is-enable: check boot status
[root@centos ~] # systemctl enable service name
[root@centos ~] # systemctl disable service name
[root@centos ~] # systemctl is-enable service name