centos 7 禁用 selinux 禁用防火牆

1、禁用selinux

/sbin/setenforce 0
sed -i 's\SELINUX=enforcing\SELINUX=disabled\' /etc/selinux/config

2、禁用防火牆

systemctl stop firewalld.service 
systemctl disable firewalld.service
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章