Each time we use Linux, we will initialize the system configuration, listed below.
1. Opening of the service
Systemctl Enable Firewalld.service // set the specified service to boot systemctl disable Firewalld.service // systemctl is-enabled firewalld.service // query is set to start automatically
2. Temporarily open, close, and restart the service.
Systemctl start Filewalld.service // temporarily turn on the Firewall service systemctl stop Filewalld.service temporarily stop Firewall service systemctl restart Filewalld.service // Restart Firewall service
3. Modify the temporary and permanent host name
hostname + hostname // temporary hostnamectl set-hostname + host name // will not change after rebooting the system
Vi/etc/hostname //can also enter to modify the configuration host name
4. Network Configuration
IP address Add +IP address + subnet mask dev nic name // temporary effective nic file vi /etc/sysconfig/ network-scripts/ifcfg-NIC name // Configure permanent NIC configuration file
Configuration of 5.selinux
Vi/etc/sysconfig/selinux/Enter SELinux to modify file, add selinux=disable to deactivate SELinux function in last line
Disabled: Disable SELinux function permissive : Displays only warning messages and does not block
Enforcing : Enforces SELinux functionality to generate warning messages
Initial configuration of Linux systems (including network, hostname, shutdown FIREWALLD and SELinux)