最近自己在学习Linux。搭建一个LNMP环境。在测试时一切都好。然后重启Linux后。再次访问网站无法打开。最终原因是在防火墙中没有加入 80 端口的规则。具体方法如下:在CentOS下配置iptables防火墙,是非常必要的。来我们学习如何配置!,其它版本一下:1.打开iptables的配置文件...
分类:
系统相关 时间:
2014-10-11 22:37:46
阅读次数:
277
前提条件1、操作系统:RedHatEnterpriseLinuxServer6.42、vsftpd-2.2.2-11.el6.x86_64.rpm安装/卸载1、rpm-ivhvsftpd-2.2.2-11.el6.x86_64.rpm--force#force选项保证安装成功2、rpm-evsftpd-2.2.2-11.el6.x86_64#卸载vsftpd3、其他卸载方法:find/-namevsftpd,然后rm检索到文..
分类:
其他好文 时间:
2014-10-10 21:29:35
阅读次数:
244
经常使用CentOS的朋友,可能会遇到和我一样的问题。开启了防火墙导致80端口无法访问,刚开始学习centos的朋友可以参考下。经常使用CentOS的朋友,可能会遇到和我一样的问题。最近在Linux CentOS防火墙下安装配置 ORACLE数据库的时候,总显示因为网络端口而导致的EM安装失败,遂打...
分类:
系统相关 时间:
2014-10-10 11:11:14
阅读次数:
295
1.1 设置ip地址 执行命令 service network restart 验证 ifconfig1.2 关闭防火墙 执行命令 service iptables stop 验证 service iptables status1.3 关闭防火墙的自动运行(永久关闭) 执行命令 ...
分类:
其他好文 时间:
2014-10-09 02:57:57
阅读次数:
189
1、在/etc/init.d/目录下新建一个文件:autostart.sh#!/bin/sh#chkconfig: 2345 80 80#description: auto start web serverservice iptables startsh /usr/jboss-as-7.1.1.Fi...
分类:
系统相关 时间:
2014-10-09 01:26:37
阅读次数:
235
【第一、需求描述】员工通过办公网络的网关服务器(linux)192.168.1.250的snat访问另外一个局域网:安全中心(10.1.1.0/24),但是为了提高安全性,只允许访问安全中心的指定端口。【第二、方案实施】#cat/etc/sysconfig/iptables#只允许nat转发的指定的端口22,80
*nat
:PRE..
分类:
其他好文 时间:
2014-10-08 16:13:26
阅读次数:
283
centos7中iptables被firewalld替代启动防火墙:systemctlstartfirewalld关闭防火墙:systemctlstopfirewalld重启防火墙:systemctlrestartfirewalld一、Services使用了systemd来代替sysvinit管理,SysV即将退居二线systemctl是主要的工具,融合了service和chkconfig的功能,可以..
分类:
其他好文 时间:
2014-10-08 16:00:16
阅读次数:
264
Fwaas简介FWaaSusesiptablestoapplyfirewallpolicytoallNetworkingrouterswithinaproject.(这些iptables规则存在于router的namespace)FWaaSsupportsonefirewallpolicyandlogicalfirewallinstanceperproject.(官方介绍,本人翻译水平有限)FWaaSiscurrentlyintechnicalpreview;un..
分类:
其他好文 时间:
2014-10-08 02:00:15
阅读次数:
2396
首先要在windows上安装xftp软件,这个是傻瓜式操作就不说了安装完成之后,在centos上查看是否装了xftpd服务,
[root@centos Desktop]# rpm -qa | grep vsftpd
vsftpd-2.2.2-12.el6_5.1.x86_64
[root@centos Desktop]# chkconfig vsftpd on
[root@cento...
分类:
其他好文 时间:
2014-10-07 16:16:33
阅读次数:
170
1、安装rpm -ivh vsftpd-2.2.2-11.el6_4.1.x86_64.rpm2、启动service vsftpd start3、连接windows 命令行输入ftp www.xxxx.cn(或ip)------------------连接到www.xxxx.cn220 (vsFTP...
分类:
系统相关 时间:
2014-10-06 20:33:30
阅读次数:
170