原因:没有开启防火墙 #提示没有开启防火墙服务,–permanent #永久生效,没有此参数重启后失效 [root@uJZ ~]# firewall-cmd --permanent --zone=/tcp FirewallD is not running #启动防火墙服务 [root@uJZ ~]# systemctl start firewalld #开放7788端口,需运行firewall-cmd --reload生效 [root@uJZ ~]# firewall-cmd --permane…
转载自:http://www.z4zr.com/page/1006.html CentOS7用firewall命令“替代”了iptables.在这里我们需要区分“iptables服务”和“iptables命令”.虽然firewalld是替代提供的防火墙管理iptables服务,但是它仍然使用iptables对内核命令动态通信包过滤.所以它只是iptables服务代替,而不是iptables命令. 如果想使用iptables服务,执行如下命令```systemctl stop firewallds…
1.firewalld的基本使用 启动: systemctl start firewalld 查看状态: systemctl status firewalld 停止: systemctl disable firewalld 禁用: systemctl stop firewalld 2.systemctl是CentOS7的服务管理工具中主要的工具,它融合之前service和chkconfig的功能于一体. 启动一个服务:systemctl start firewalld.service 关闭一个服…
1.设置selinux端口 [root@hn ~]# semanage port -l|grep ssh -bash: semanage: 未找到命令 [root@hn ~]# whereis semanage semanage: 缺少semanage,需要安装net-tools (这个包同时还包含了ifconfig,否则只能用ip addr看了~) [root@hn ~]# yum install net-tools [root@hn ~]# semanage port -l|grep ssh…
最近在阿里云服务器centos上安装了mysql数据库,默认是不开启远端访问功能,需要设置一下防火墙,在开放默认端口号 3306时提示FirewallD is not running,经过排查发现是防火墙就没打开造成的,出于安装考虑还是把防火墙开上吧,以下步骤仅供参考啦. 工具/原料   阿里云服务器centos 方法/步骤     执行firewall-cmd --permanent --zone=public --add-port=3306/tcp,提示FirewallD is not ru…
1.firewalld简介 firewalld是centos7的一大特点,主要有两个优点:一是支持动态更新,不需要重启服务:二就是加入了防火墙的“zone”概念. firewalld有图形界面和工具界面,firewalld的字符界面管理工具是 firewall-cmd,firewalld默认配置文件有两个:一个是系统配置/usr/lib/firewalld/ ,另一个是用户配置地址/etc/firewalld/  2.安装firewalld 使用root登入,然后执行# yum install…
最近在服务器centos上安装了rdis数据库,默认是不开启远端访问功能,需要设置一下防火墙,在开放默认端口号 8888时提示FirewallD is not running,经过排查发现是防火墙就没打开造成的,以下步骤打开防火墙仅供参考. 方法.步骤: 1.执行firewall-cmd --zone=public  --add-port=8080/tcp  --permanent 出现如图:    意思是:FielWald没有运行 2.通过systemctl status firewalld查…
CentOS7使用firewalld打开关闭防火墙与端口       1.firewalld的基本使用 启动: systemctl start firewalld 关闭: systemctl stop firewalld 查看状态: systemctl status firewalld  开机禁用  : systemctl disable firewalld 开机启用  : systemctl enable firewalld     2.systemctl是CentOS7的服务管理工具中主要的…
转载自莫小安的博客:https://www.cnblogs.com/moxiaoan/p/5683743.html 如何查看和使用selinux https://blog.csdn.net/edide/article/details/52389946 一键关闭SELinux和firewalld #!/bin/bash # echo "此段代码是判断和永久关闭SELinux" sleep 2 sefile=/etc/selinux/config if [ "`getenforc…
一.软件环境 [root@Geeklp201 ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) 二.安装firewalld 1.firewalld提供了支持网络/防火墙区域(zone)定义网络链接以及接口安全等级的动态防火墙管理工具.它支持 IPv4, IPv6 防火墙设置以及以太网桥接,并且拥有运行时配置和永久配置选项.它也支持允许服务或者应用程序直接添加防火墙规则的接口.firewall daemon 动态管理防…