码迷,mamicode.com
首页 >  
搜索关键字:firewall-cmd    ( 421个结果
CentOS 7 firewalld详解,添加删除策略
CentOS7中firewall防火墙详解和配置,.xml服务配置详解 修改防火墙配置文件之前,需要对之前防火墙做好备份 重启防火墙后,需要确认防火墙状态和防火墙规则是否加载,若重启失败或规则加载失败,则所有请求都会被防火墙。 1.firewall-cmd --state #查看firewall的状 ...
分类:其他好文   时间:2019-11-07 13:30:17    阅读次数:379
centos7安装gitlab
关闭selinuxsed-i"s/SELINUX=enforcing/SELINUX=disabled/g"/etc/selinux/configsetenforce0关闭防火墙systemctldisablefirewalld.servicesystemctlstopfirewalld.service或者设置防火墙允许80端口访问firewall-cmd--zone=public--add-po
分类:其他好文   时间:2019-11-05 23:15:27    阅读次数:125
firewalld 端口转发
查看一个masquerade状态,查询命令如下: firewall-cmd --query-masquerade 假如查到结果为no那么就启动它(加--permanent是永久) firewall-cmd --add-masquerade --permanent 现在准备工作好了,假如我们要把当前D ...
分类:其他好文   时间:2019-11-01 09:39:20    阅读次数:88
linux 基础知识 之基础系统管理3
一.firewalld 1.区域:检查站 [root@node6 ~]# firewall-cmd --get-zones trusted: 进入该区域的数据包全部放行 block:进入该区域的数据包全部拒绝 drop:进入该区域的数据包全部丢弃 其他区域:除明确允许的,全部拒绝 活跃区域 [roo ...
分类:系统相关   时间:2019-10-30 16:42:06    阅读次数:100
Apache常见配置
一、yum安装与配置 1.1安装: [root@apache ~]# yum install http\* -y [root@apache ~]# echo "test01" >>/var/www/html/index.html [root@apache ~]# firewall-cmd --per ...
分类:Web程序   时间:2019-10-29 23:41:32    阅读次数:152
ssh修改端口
安装防火墙 sudo yum -y install firewald sudo systemctl start firewald.service sudo firewall-cmd --list-all 修改ssh端口 1 sudo vim /etc/ssh/sshd_config 改port 为其... ...
分类:其他好文   时间:2019-10-24 00:34:48    阅读次数:88
Docker Swanm集群配置
首先 可以用ContOS虚拟机 克隆 5个虚拟机,注意(克隆主机必须装了Docker,克隆后,克隆机都会有Docker) 配置 网络 克隆CentOS虚拟机 最后和到如下结果 打开2377端口 firewall-cmd --zone=public --add-port=2377/tcp --perm ...
分类:其他好文   时间:2019-10-14 01:09:48    阅读次数:189
centos 7 安装 nginx
```shell firewall-cmd --state wget https://github.com/nginx/nginx/archive/release-1.17.4.tar.gz tar -zxvf release-1.17.4.tar.gz cd nginx-release-1.17.... ...
分类:其他好文   时间:2019-10-13 23:38:46    阅读次数:78
linux cenos开放端口
问题:8080端口不能访问 解决方案: 第1步 查看阿里云端口是否开放 网络安全>安全组>配置规则>添加入方向 第二步 查看防火墙是否开启(只说开启了防火墙的情况) 查看防火墙状态:systemctl status firewalld 查看防火墙开放了哪些端口:firewall-cmd --list ...
分类:系统相关   时间:2019-10-06 16:33:06    阅读次数:102
RHEL8/CentOS8的基础防火墙配置-用例
systemctl firewall-cmd 改用iptables.service ...
分类:其他好文   时间:2019-10-05 20:45:28    阅读次数:168
421条   上一页 1 ... 9 10 11 12 13 ... 43 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!