现在有这么一个需求,要判断iptables是否开启。咋看比较难以入手,那么可以想,怎么启动iptables,redhat下很容易联想到/etc/init.d/iptabes start 。 我们可以来看一下启动脚本: start() { # Do not start if there is no c...
分类:
其他好文 时间:
2014-11-01 13:15:24
阅读次数:
243
struts2的结果类型:
type="chain">
successAction
${name}
struts2中的结果类型有以下几种:...
分类:
其他好文 时间:
2014-11-01 01:05:11
阅读次数:
288
当一个action调用另一个action,并且要传递一个参数过去时,这是可以这样写:1 2 getNewsById.action?id=${id}&3 result类型记住要写出“redirect”,‘chain’等其他类型不知道行不行(自己懒得试了。。。。);还要记住一点是id...
分类:
其他好文 时间:
2014-10-31 23:29:48
阅读次数:
198
防火墙:With RHEL 7 / CentOS 7,firewalldwas introduced to manage iptables. IMHO, firewalld is more suited for workstations than for server environments. s...
分类:
其他好文 时间:
2014-10-31 09:59:29
阅读次数:
255
What a find! Anna Locke has just bought several links of chain some of which may be connected. They are made from zorkium, a material that was frequently used to manufacture jewelry in the last centur...
分类:
其他好文 时间:
2014-10-31 01:15:29
阅读次数:
242
1、查看本机关于IPTABLES的设置情况[root@tp ~]# iptables -L -nChain INPUT (policy ACCEPT)target prot opt source destinationChain FORWARD (policy ACCEPT)target prot ...
分类:
其他好文 时间:
2014-10-30 16:45:50
阅读次数:
157
If you’ve developed anything in the supply chain area, you’ve most probably come across InventDimJoin. InvenDimJoin is a macro and it’s mostly used to...
分类:
数据库 时间:
2014-10-30 14:57:44
阅读次数:
234
本文转自惜分飞的博客,博客原文地址:www.xifenfei.com/1109.html,支持原创,分享知识! 当一个数据块读入sga区,相应的buffer header会被放置到hash列表上,我们称其这hash chains,chain在中文的意为链条或串的意思,表达就是关连性.如果一个进程想访...
分类:
系统相关 时间:
2014-10-30 14:46:24
阅读次数:
218
#?iptables?-S
-P?INPUT?DROP
-P?FORWARD?DROP
-P?OUTPUT?ACCEPT
-A?INPUT?-i?lo?-j?ACCEPT?
-A?INPUT?-p?icmp?-j?ACCEPT?
-A?INPUT?-p?tcp?-m?tcp?--dport?20?-j?ACCEPT?
-A?INP...
分类:
其他好文 时间:
2014-10-30 11:58:57
阅读次数:
144
如果没有安装iptables可以直接用yum安装yum install -t iptables检查iptables服务的状态,service iptables status如果出现“iptables: Firewall is not running”,说明没有启动或没有规则启动iptables服务s...
分类:
其他好文 时间:
2014-10-30 09:32:35
阅读次数:
154