Monday, March 16, 2015

Disable Selinux,stop firewall,change hostname , network connection on CentOS 7

To disable firewalld, run the following command as root:
systemctl disable firewalld

To stop firewalld, run the following command as root:
systemctl stop firewalld

To check the status of firewalld, run the following command as root:
systemctl status firewalld

Disable selinux in file  /etc/selinux/config
reboot the machine


We can run the getenforce command to check the current SELinux mode
getenforce or sestatus

correct hostname and its IP mapping in file
vim /etc/hosts

No comments:

Post a Comment