CentOS7查看和关闭防火墙

CentOS 7.0默认使用的是firewall作为防火墙

查看防火墙状态

firewall-cmd --state

停止firewall

systemctl stop firewalld.service

禁止firewall开机启动

systemctl disable firewalld.service 

 

关闭selinux 
进入到/etc/selinux/config文件

vi /etc/selinux/config

 

将SELINUX=enforcing改为SELINUX=disabled

配制免密登录的命令

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

 

posted @ 2019-04-24 10:58  jeremy1888  阅读(138)  评论(0编辑  收藏  举报