[root@web-little-opt-146 NginxSoftware]# time curl -o /dev/null -s -w %{time_connect}:%{time_starttransfer}:%{time_total} http://image.kaluli.net/index/images/index/20100416/127141246304.gif
1.259:1.281:1.392
real 0m1.394s
user 0m0.002s
sys 0m0.003s
清单 1 给出对一个流行的新闻站点执行 curl 命令的情况。输出通常是 HTML 代码,通过 -o 参数发送到 /dev/null。-s 参数去掉所有状态信息。-w 参数让 curl 写出表 1 列出的计时器的状态信息:
阅读全文…
鞋衫各式名品专卖
其实还是建议看英文的man,对以后学习其他东西很有帮助的:)
摘要
nmap是一个网络探测和安全扫描程序,系统管理者和个人可以使用这个软件扫描大型的网络,获取那台主机正在运行以及提供什么服务等信息。nmap支持很多扫描技术,例如:UDP、TCP connect()、TCP SYN(半开扫描)、ftp代理(bounce攻击)、反向标志、ICMP、FIN、ACK扫描、圣诞树(Xmas Tree)、SYN扫描和null扫描。从扫描类型一节可以得到细节。nmap还提供了一些高级的特征,例如:通过TCP/IP协议栈特征探测操作系统类型,秘密扫描,动态延时和重传计算,并行扫描,通过并行ping扫描探测关闭的主机,诱饵扫描,避开端口过滤检测,直接RPC扫描(无须端口影射),碎片扫描,以及灵活的目标和端口设定.
阅读全文…
简单生活。简单运动
近来工作中要构建一个能够存储10T级左右别图片文件的图片存储系统,日增长6G左右的图片。面对这个系统,我又碰到了那个老问题,就是文件系统的选型。早在两年前,我就针对linux系统中几种流行的文件系统进行过考察和测试工作。当时的reiserfs 3.x 是让我非常满意的文件系统,reiserfs文件系统没有inode的局限,使用B+tree的索引形势来查找文件,效率是非常德高,特别是在小文件的存储效率上明显超出ext3很多(iozone测试佐证)。格式化效率和支持最大8T的文件系统容量上也都非常的不错,只是mount reiserfs的时候稍微显得有些缓慢。当时的reiserfs 3.x版本是对于linux 图片文件系统非常理想的选择。
阅读全文…
linux minicom 是linux 下串口调试工具,类似于windows下的超级终端。
一、安装minicom:
确认一下系统是否已经安装minicom,如果没有请自行安装。
[root@web Server]# rpm -q minicom
minicom-2.1-3
阅读全文…
echo abc|tr a-z A-Z
文件大小写转换
awk ‘{print tolower($1)}’ up.txt
awk ‘{print toupper($1)}’ up.txt
许多Linux爱好者购买新电脑时首先考虑的就是硬件配置是否与Linux系统兼容,实际上更多的人只是购买自己喜欢的外形和配置的电脑硬件,当他们回家安装Linux发行版时却发现很多硬件不能被系统识别和正确支持。情理之中,这些人可能就会到论坛和别人抱怨Linux是一个如何土的系统,“怎么连xx都不支持?”。
阅读全文…
分类: Linux, Linux tools, certmaster, func, linux shell, 系统管理 标签: certmaster, fun, func, Linux, linux shell, Linux tools, python-ctypes, python-paste, python-simplejson, smolt, 系统管理
故障现象
1、在客户端安装好func及certmaster,配好certmaster参数。
2、service funcd start,端口及进程都起来了。
3、在certmaster server 运行certmaster-ca –list死活看不到客户端的主机名。
阅读全文…
分类: Linux tools, certmaster, func, linux shell, 系统管理 标签: certmaster, fun, func, Linux, linux shell, Linux tools, python-ctypes, python-paste, python-simplejson, smolt, 系统管理
* BridgeModule — Allows for simple network bridge management
————————————————————-
功能:操作网桥
方法:
list() Returns a dictionary containing the bridges and their connected interfaces.
add_bridge(brname) Creates a new bridge named brname.
add_interface(brname, ifname) Adds interface ifname to bridge brname.
delete_bridge(brname) Deletes bridge brname.
delete_interface(brname, ifname) Removes interface ifname from bridge brname.
add_promisc_bridge(brname, ifname) Creates a new bridge brname, attaches interface ifname to it and sets the MAC address of the connected interface to FE:FF:FF:FF:FF:FF, so traffic can flow freely through the bridge. This is required for use with Xen.
up_bridge(brname) Marks bridge brname and all it’s connected interfaces as up.
down_bridge(brname) Marks bridge brname and all it’s connected interfaces as down
————————————————————-
阅读全文…
分类: Linux tools, certmaster, func, linux shell, 系统管理 标签: certmaster, func, linux shell, Linux tools, python-ctypes, python-paste, python-simplejson, smolt, 系统管理
我们经常需要编写内容重复的脚本,使用大同小异的正则表达式,解析花样百出的各种命令输出。我们为了实现操作审计,建立了命令行监控系统,但实际上只能起到事后追查责任的作用。我们想要监控所有新增系统,但完全依靠人执行的制度流程,难免会出现疏漏。
这些令系统管理员头疼不已的问题,可能已经有了终极解决方案。Red Hat 最近正式发布的 Fedora 统一网络控制器 Func(Fedora Unified Network Controller https://fedorahosted.org/func),就是为了解决这一系列统一管理监控问题,而设计开发的系统管理基础框架。
阅读全文…
分类: Linux tools, certmaster, func, linux shell, 系统管理 标签: certmaster, func, linux shell, Linux tools, python-ctypes, python-paste, python-simplejson, smolt, 系统管理
最近评论