上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: 四表五链四表:filter , nat, manager, raw五链: 五个HOOK点的链接,pre_rout, foward, post_rout, in ,out iptables 命令查看命令,默认显示的是filter表的配置,如果要显示其他表的情况,使用-t参数,插入删除的操作亦然。 各个 阅读全文
posted @ 2018-06-24 22:39 linengier 阅读(779) 评论(0) 推荐(0) 编辑
摘要: 开启端口firewall-cmd --zone=public --add-port=80/tcp --permanent出现success表明添加成功 命令含义:--zone #作用域--add-port=80/tcp #添加端口,格式为:端口/通讯协议--permanent #永久生效,没有此参数 阅读全文
posted @ 2018-06-24 22:37 linengier 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 你是否曾有过这种感觉:当你回顾自己度过的一周时感到消沉,因为你未能完成自身所期望的那么多工作。当你在打造一个成功的职业生涯或你自己的事业时,时间或许是你最宝贵的财富,如何支配你的时间直接决定了你的收入。你无法购买你自有之外的时间,而时钟却永不停息地滴答作响。 几年前,我发现了一个能让我把效率提高近三 阅读全文
posted @ 2018-06-23 17:50 linengier 阅读(198) 评论(0) 推荐(0) 编辑
摘要: /proc/sys/net/ipv4/icmp_timeexceed_rate这个在traceroute时导致著名的“Solaris middle star”。这个文件控制发送ICMP Time Exceeded消息的比率。 /proc/sys/net/ipv4/igmp_max_membershi 阅读全文
posted @ 2018-06-20 20:31 linengier 阅读(1096) 评论(0) 推荐(0) 编辑
摘要: 相关函数:open, ftruncate 表头文件:#include <unistd.h> 定义函数:int truncate(const char *path, off_t length); truncate("/aaa",500); 函数说明:truncate()会将参数path指定的文件大小改 阅读全文
posted @ 2018-06-19 19:22 linengier 阅读(1557) 评论(0) 推荐(0) 编辑
摘要: 3.if else 4.字符串包含 第一种方法:in string = 'helloworld' if 'world' in string: print 'Exist' else: print 'Not exist' 第二种方法:find string = 'helloworld' if strin 阅读全文
posted @ 2018-06-09 21:45 linengier 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 安装 原理 基本命令 实践 脚本 1.安装 以centos 7为例子安装 yum install -q -y iptables-services配置 iptables [-t table] command [match] [target]eg: ```iptables -A INPUT -p tcp 阅读全文
posted @ 2018-05-31 20:40 linengier 阅读(711) 评论(0) 推荐(0) 编辑
摘要: iptables -L显示 ACCEPT udp -- anywhere anywhere udp dpt:bootpsACCEPT tcp -- anywhere anywhere tcp dpt:bootpsACCEPT tcp -- anywhere anywhere tcp dpt:cbt 阅读全文
posted @ 2018-05-31 18:53 linengier 阅读(3390) 评论(0) 推荐(1) 编辑
摘要: 总下载时间 监测一个页面总的消耗时间,即从开始监测到监测结束的时间。 总下载时间 监测一个页面总的消耗时间,即从开始监测到监测结束的时间。 基础页面下载时间 基础页面即WEB服务器返回的纯文本HTML文件。 基础页面下载时间 基础页面即WEB服务器返回的纯文本HTML文件。 网络层时间 监测一个页面 阅读全文
posted @ 2018-05-07 15:18 linengier 阅读(1159) 评论(0) 推荐(0) 编辑
摘要: 1.本地化失败导致程序不能启动 locale::facet::_S_create_c_locale name not valid 解决:在命令行输入 > export LC_ALL="C", 去除本地设置 阅读全文
posted @ 2018-04-25 09:18 linengier 阅读(126) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页