CentOS7查看和關閉防火牆

CentOS 7.0默認使用的是firewall作爲防火牆

查看防火牆狀態

firewall-cmd --state
1
停止firewall

systemctl stop firewalld.service
1
禁止firewall開機啓動

systemctl disable firewalld.service
1
轉自:CentOS 6和CentOS 7防火牆的關閉

關閉selinux
進入到/etc/selinux/config文件

vi /etc/selinux/config
1
將SELINUX=enforcing改爲SELINUX=disabled

配製免密登錄的命令

ssh-keygen -t rsa
ssh-copy-id root@master

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