Setup after system installation is complete
1) Shut down the firewall/etc/init.d/iptables stop
Set boot not load Chkconfig iptables off
View the status of the firewall iptables-l
2) Turn off SELinux:
View the status of SELinux Getenforce
Set temporary allow Setenforce 0
Permanently set sed-i '/^selinux/s/enforceing/disabled/g '/etc/selinux/config
Requires reboot to take effect
System Service Control
Format
Service Name control type
/etc/init.d/Service Name control type
control type
Start (start): Run the established system service program to implement the service function
Stop (STOP): Terminates the specified system service program and shuts down related functions
Restart (restart): Perform the above two services first stop at start
Reload (Heavy): Do not exit the service program, only refresh the configuration, same as restart
Status (View status): View the relevant allowed status or information for the specified service
Switching the Run level
View System RunLevel: RunLevel (the first letter N table does not switch the RunLevel)
Toggle RunLevel: Init 0-6
0: Shutdown state, the host will be turned off when this level is used.
1: Single user mode, no password authentication is required to log into the system, more for system maintenance.
2: Multi-user mode for character interface (network access is not supported).
3: The full multi-user mode of the character interface, most server hosts run at this level.
4: Not assigned to use.
5: Graphical interface of multi-user mode, provides a graphical desktop operating environment.
6: Reboot, the host will be started when using this level
Optimized boot auto-load service
NTSYSV tools (Interactive interface)
Chkconfig Tools
(--level management of the operating level of the specified service
--help # #查看单个服务开机启动设置命令的帮助
--list # #查看服务的开机启动情况
--del # #删除服务)
Linux System Management Service control