I. Modifying host names
1. Zero modification
[Email protected] network-scripts]# hostname jw07
And then you can see that our hostname has been modified.
2. Permanently modify the host name
[Email protected]/]# Hostnamectl set-hostname Liutao
Restart CentOS to see the changes
Two. How to turn off the CentOS firewall
1. Zero-off
[Email protected] ~]# Systemctl stop Firewalld.service
We can view the firewall status to see if the shutdown was successful
[Email protected] ~]# Firewall-cmd--state
Not running
2. Permanently closed
[Email protected] ~]# systemctl disable Firewalld.service
This command to understand that the boot does not start the firewall, then the boot is not started is it a permanent shutdown?
Third, close SELinux
1. Zero-off
[Email protected] ~]# Setenforce 0
2. Permanently close (Modify config file)
[Email protected] ~]# Vi/etc/selinux/config
The last reboot can
You can view the status to see if it is turned off
[Root@liutao ~]# Sestatus
SELinux Status: disabled
Linux initialization Configuration---hostname, shutdown firewall, turn off SELinux