iptables和netfilter的关系: netfilter在内核空间的代码根据table中的rules,完成对packet的分析和处置。但是这些table中的具体的防火墙rules,还是必须由系统管理员亲自编写。内核中的netfilter只是提供了一个机制,它并不知道该怎样利用这个机制,写出合 ...
分类:
Web程序 时间:
2018-06-23 01:42:53
阅读次数:
325
然后: set password for'root'@'localhost'=password('root'); 好了,密码初始化完成。 关闭防火墙: systemctl stop firewalld.service ...
分类:
数据库 时间:
2018-06-23 00:00:30
阅读次数:
239
systemctl是CentOS7的服务管理工具中主要的工具,它融合之前service和chkconfig的功能于一体。 启动一个服务:systemctl start firewalld.service关闭一个服务:systemctl stop firewalld.service重启一个服务:sys ...
分类:
其他好文 时间:
2018-06-22 10:16:12
阅读次数:
135
有时候,在虚拟机上面开了服务,在外面访问不到,本机一切都正常,这时就应该想到防火墙。 关闭防火墙: 首先,我们要知道要关闭的可能还不少,有iptables,firewalld,selinux,下面一个个来关闭; a1、查看状态:systemctl status firewalld a2、关闭: sy ...
分类:
其他好文 时间:
2018-06-20 00:49:38
阅读次数:
183
1、环境概述及组件版本 1.1 节点 1.2 组件 2、系统初始化及证书创建 2.1 系统初始化 关闭selinux,firewalld(三台服务器均操作) 2.1.1 修改hosts 2.1.2 安装基础软件包 2.1.3 内核参数设置 ...
分类:
其他好文 时间:
2018-06-19 13:34:54
阅读次数:
171
任务 centos-6 centos-7 使某服务自动启动 chkconfig --level 3 httpd on systemctl enable httpd.service 使某服务不自动启动 chkconfig --level 3 httpd off systemctl disable ht ...
分类:
其他好文 时间:
2018-06-18 16:01:28
阅读次数:
224
一、基本环境配置 1.1、安装常用软件 1.2、Install yum repo 1.3、close firewalld 1.4、安装常用软件 二、安装nginx 官网地址:http://nginx.org/en/download.html 2.1、yum方式安装: 2.2、配置nginx #配置n ...
分类:
系统相关 时间:
2018-06-18 10:33:29
阅读次数:
201
1、关闭防火墙 临时关闭防火墙 systemctl stop firewalld 永久防火墙开机自关闭 systemctl disable firewalld 临时打开防火墙 systemctl start firewalld 防火墙开机启动 systemctl enable firewalld 查 ...
分类:
其他好文 时间:
2018-06-17 19:53:16
阅读次数:
1408
防火墙 CentOS7 之前的防火墙是不一样的,比如你要添加3306端口: 但这个在CentOS 7 就不好使,查看文档才知道CentOS 7 使用了增强版firewall 当然如果不太习惯使用命令,我们可以直接改配置文件 进入etc/firewalld/zone中,修改public.xml 上述配 ...
分类:
数据库 时间:
2018-06-14 20:44:33
阅读次数:
209
CentOS6关闭防火墙使用以下命令, 这是因为CentOS7版本后防火墙默认使用firewalld,因此在CentOS7中关闭防火墙使用以下命令, 当然,如果安装了iptables-service,也可以使用下面的命令, ...
分类:
其他好文 时间:
2018-06-14 15:12:40
阅读次数:
164