centos7 關閉防火牆;開啓SSH連接

停止firewall

臨時關閉

systemctl stop firewalld.service

永久關閉

systemctl disable firewalld.service 

關閉selinux

臨時關閉

setenforce 0

禁止開機自啓,永久關閉

進入到/etc/selinux/config 文件

vi /etc/selinux/config

設置SELINUX = disabled

最後重啓一下 reboot

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