最近在服务器centos上安装了rdis数据库,默认是不开启远端访问功能,需要设置一下防火墙,在开放默认端口号 8888时提示FirewallD is not running,经过排查发现是防火墙就没打开造成的,以下步骤打开防火墙仅供参考。 方法、步骤: 1.执行firewall-cmd --zon ...
分类:
其他好文 时间:
2018-05-14 16:49:47
阅读次数:
318
centos7以上版本防火墙设置防火墙打版本1.查看已开放的端口(默认不开放任何端口)firewall-cmd--list-ports2.开启80端口firewall-cmd--zone=public(作用域)--add-port=80/tcp(端口和访问类型)--permanent(永久生效)3.重启防火墙firewall-cmd--reload4.停止防火墙systemctlstopfirew
分类:
其他好文 时间:
2018-05-08 19:42:04
阅读次数:
245
描述:item主动模式可以获取数据,被动模式不可以。zabbix server无法访问agent服务器的10050端口 解决:开启端口即可: redhat 7.x版本 firewall-cmd --add-port=10050/tcp 无需重启防火墙 ...
分类:
其他好文 时间:
2018-05-03 15:29:19
阅读次数:
845
centos7.4的防火墙很强大。先记几个命令 systemctl disable/enable firewalld.service 禁止、允许开机自启firewall-cmd --state 防火墙状态systemctl status firewalld 防火墙服务状态service firewa ...
分类:
其他好文 时间:
2018-04-30 13:37:50
阅读次数:
160
以下均为在centos7上进行的操作 防火墙上添加端口 firewall-cmd --zone=public --add-port=80/tcp --permanent 防火墙上删除端口 firewall-cmd --zone=public --remove-port=80/tcp --perman ...
Cent Os to list all firwalls firwall-cmd --list-all bsc@ubuntu:~$ firewall-cmd --list-allpublic (default, active) interfaces: eth0 sources: services: ...
分类:
系统相关 时间:
2018-04-24 17:48:32
阅读次数:
280
已经装好了centos7和mysql,系统默认装多MariaDB 两个虚拟机ip 192.168.0.103 192.168.0.106 防火墙打开端口 permanent 参数表示永久修改 firewall-cmd --zone=public --add-port=3306/tcp --perma ...
分类:
数据库 时间:
2018-04-19 11:57:45
阅读次数:
251
查看selinux的状态,关闭selinux查看防火墙规则#firewall-cmd--permanent--list-all加入防火墙规则,对外提供http,https服务#firewall-cmd--permanent--add-service=http--add-service=https加载服务#firewall-cmd--reloadyum安装LAMP环境#yum-yinstallhtt
分类:
其他好文 时间:
2018-04-18 16:01:57
阅读次数:
219
一、实验环境EXSI6.0虚拟机系统:Centos7yum源:mirror.163.com.repo二、实验步骤1、yum安装tomcatyuminstalltomcat-y2、yum安装tomcat网页访问必要服务yuminstalltomcat-webappstomcat-admin-webapps-y3、开放tomcat:8080端口,开机启动firewall-cmd--zone=publi
分类:
Web程序 时间:
2018-04-13 23:35:28
阅读次数:
248
centos 7 环境
修改两台虚拟机防火墙默认区域为trusted
[root@ser ~]# firewall-cmd --set-default-zone=trusted
[root@pc ~]# firewall-cmd --set-default-zone=trusted
NFS共享服务 linux与linux之间
普通...
分类:
其他好文 时间:
2018-04-13 16:09:47
阅读次数:
163