iptables 分为四表五链 四表: filter表 nat 表 mangle 表 raw 表 五链 INPUT 链 OUTPUT 链 FORWARD 链 PREROUTING(路由前) POSTROUTING(路由后) 我们最主要使用的就是filter表和nat表 filter表用来过滤流量 N ...
分类:
其他好文 时间:
2018-08-21 17:15:14
阅读次数:
218
1、首先确定linux系统有网络。 使用ipconfig查看是否有ip地址,没有的话需要先配置。 2、打开sshd服务:service sshd start 3、关闭防火墙服务:service iptables stop 最后还可以把sshd设置为开机启动,而防火墙为开机不启动,命令为: chkco ...
分类:
系统相关 时间:
2018-08-21 15:21:24
阅读次数:
211
1、首先搭建LAMP环境使用YUM安装LAMP环境,具体参数如下:..[root@910~]#yuminstallhttpdphpphp-mysqlmariadb-servermariadbsqlitephp-domphp-mbstringphp-gdphp-pdo.....关闭selinux,清空iptables,firewalld防火墙放行相关服务.....默认安装的PHP是5.4版本,需要升
分类:
其他好文 时间:
2018-08-21 01:09:53
阅读次数:
318
全栈运维体系中基础运维之一,快速入门到掌握,进阶高级版的比较有难度,不易明白,所放置进阶运维中,力求掌握基础运维知识。
分类:
其他好文 时间:
2018-08-20 22:49:38
阅读次数:
176
1:关闭SElinux及iptables(在工作场景中,如果有外部ip一般要打开iptables,高并发高流量的一般无法开启)[haha@xx-25-44-18~]$grepSELINUX=disabled/etc/sysconfig/selinuxSELINUX=disabled2:不使用root远程登录系统,而用普通用户登录系统通过sudo授权管理https://www.linuxidc.co
分类:
系统相关 时间:
2018-08-20 19:00:34
阅读次数:
207
1.查看iptables状态 service iptables status 2.开启/关闭iptables service iptables start service iptables stop 3.查看iptables是否开机启动 chkconfig iptables --list 4.设置i ...
分类:
其他好文 时间:
2018-08-20 15:39:06
阅读次数:
118
以前一直对iptables的sport、dport不清楚,所以这里记录一下。 iptables里面的dport和sport 首先先来翻译一下dport和sport的意思: dport:目的端口 sport:来源端口 初学iptables比较容易迷糊,但是我尽量用通俗的语言给你讲解。 dport 和s ...
分类:
其他好文 时间:
2018-08-20 11:30:26
阅读次数:
150
火墙firewall-cmd --state 查看火墙的状态firewall-cmd --get-active-zones 目前所处的域firewall-cmd --get-default-zone 查看默认的域firewall-cmd --get-zones 查看所有的域 fiewall-cmd ...
分类:
系统相关 时间:
2018-08-19 13:00:15
阅读次数:
199
编译安装httpd(CentOS 6) 准备工作: 1.关闭防火墙 6:service iptables stop;chkconfing iptables off 7:systemctl stop firewalld;systemctl disable firewalld 另外还有一种:清除所有规则 ...
分类:
Web程序 时间:
2018-08-18 20:37:18
阅读次数:
219
一,配置yum源 设置镜像 挂载 查看是否挂在成功 复制镜像内容到opt下面 删除不相关内容 进入/mnt/Packages 安装生成缓存文件 选择这个结尾的 更新本地yum源 yum clean all 生成缓存 搭建完成 二,ftp局域网配置 安装vsftpd iptables 设置 添加一条规 ...
分类:
其他好文 时间:
2018-08-18 19:49:23
阅读次数:
130