2013年8月23日

摘要: 其实用while do,很短的一段脚本便可以省去上述操作。比如我们的程序在/opt目录下会定期生成文件,现在我要不停的执行ls命令观察文件是否准时生成,只需在Shell下输入:while true;do ls;sleep 1;done这里的sleep 1;是指每秒循环一次;其他场景只需替换ls即可。 阅读全文

posted @ 2013-08-23 11:55 NooBkey 阅读(299) 评论(0) 推荐(0) 编辑


2013年8月20日

摘要: ip route 只是基于目的地址的路由选择 ip rule 路由策略,控制路由选择,可根据源地址,源IP等进行路由选择 路由策略由选择符合操作组成 ip rule add 添加策略 ip rule delete 删除策略 ip rule show 显示策略 使用路由策略可以更好的控制路由走向,类似于cisco下的 route map 下面一个例子显示了使用路由策略的优点: 假设有一台双线服务器 有两张网卡,有电信IP和网通IP地址,实现电信IP访问服务器时,服务器响应使用电信网关,网通IP访问服务器时,服务器响应使用网通网关。 假设电信IP为 222.73.121.100/24 网关 2.. 阅读全文

posted @ 2013-08-20 22:38 NooBkey 阅读(762) 评论(0) 推荐(0) 编辑


2013年8月19日

摘要: 导读:一、用事实说话二、关于LSOF命令的其它用法:三、参考文档:正文:lsof:Finding open files with lsof作用:查看文件被哪些进程打开一、用事实说话【实验】Linux下文件删除、句柄与空间释放问题窗口1:创建test文件,并用less命令打开它[root@monitor monitor]# echo "zhengBin is Bkeep" >> test[root@monitor monitor]# ls –sortk8-rw-r--r—1root1Dec916:02 error.txt120-rw-r--r—1root112De 阅读全文

posted @ 2013-08-19 13:12 NooBkey 阅读(2256) 评论(0) 推荐(0) 编辑


2013年7月30日

摘要: Compile, configure, and install the latest FreeTDS package:[pre] tar -zxvf freetds-0.62.4.tar.gz && cd freetds-0.62.4 && ./configure --prefix=/usr --with-tdsver=7.0 make && make install [/pre]Compile, or recompile, asterisk so that it will now add supportfor cdr_tds.[pre] mak 阅读全文

posted @ 2013-07-30 14:41 NooBkey 阅读(344) 评论(0) 推荐(0) 编辑


2013年7月11日

摘要: 官网上说使用iftop需要libpcap和libcurses这两个包。用命令查找了一下# rpm -qa | grep libpcaplibpcap-0.9.4-15.el5只找到了这个,缺少libpcap-devel-0.9.4-15.el5就继续安装了。出错了:configure: error: can't find pcap.h You're not going to get very far without libpcap.# yum –y install libpcap-devel安装iftop:# cd /opt# wget http://www.ex-parrot 阅读全文

posted @ 2013-07-11 11:48 NooBkey 阅读(417) 评论(0) 推荐(0) 编辑


2013年7月10日

摘要: 测试环境asterisk 192.168.106.170版本astrisk1.8sipp 192.168.106.141sipp版本3.3安装依赖包yum install make gcc gcc-c++ ncurses ncurses.x86_64 ncurses-devel ncurses-de... 阅读全文

posted @ 2013-07-10 11:54 NooBkey 阅读(2317) 评论(0) 推荐(0) 编辑


2013年7月8日

摘要: CIC码说明: TUP消息的路由标记: 为OPC 24位 DPC24位 CIC 12位,12位CIC 的低5为时隙号,其中后4位为SLC,高7位为系统号。 CIC配置需要注意几个问题: 1)两侧交换机的cic必须对应,否则单通。(两边交换机根据相同的cic选通了不同的中继) 2)cic得低四位一般用于链路组的选择和炼路的选择。因此ciC和链路及连路组的均衡有关系。 3)sls之类的参数实质是掩码,它们的作用是让cic得相应位在链路选择中不起作用。 CIC(电路标识码)=PCM编号(0-127)+PCM电路序号(0-31)。 PCM编号为交换机与交换机之间互联的2M数序号,可以从0编,... 阅读全文

posted @ 2013-07-08 08:37 NooBkey 阅读(1749) 评论(0) 推荐(0) 编辑


2013年6月25日

摘要: VOIP Bandwidth consumption naturally depends on the codec used.VOIP消耗的带宽一般取决于所使用的语音编码.When calculating bandwidth, one can't assume that every channel is used all the time. Normal conversation includes a lot of silence, which often means no packets are sent at all.So even if one voice call sets u 阅读全文

posted @ 2013-06-25 09:43 NooBkey 阅读(1570) 评论(0) 推荐(0) 编辑


2013年6月19日

摘要: 第一种是关于类型的关键字,主要包括host,net,port, 例如 host 210.27.48.2,指明 210.27.48.2是一台主机,net 202.0.0.0 指明 202.0.0.0是一个网络地址,port 23 指明端口号是23。如果没有指定类型,缺省的类型是host.第二种是确定传输方向的关键字,主要包括src , dst ,dst or src, dst and src ,这些关键字指明了传输的方向。举例说明,src 210.27.48.2 ,指明ip包中源地址是210.27.48.2 , dst net 202.0.0.0 指明目的网络地址是202.0.0.0 。如果没有 阅读全文

posted @ 2013-06-19 13:54 NooBkey 阅读(332) 评论(0) 推荐(0) 编辑


2013年6月17日

摘要: Linkset one:1-31 Incoming33-58 Outgoing58-63 Emergency TrafficLinkset two:1-31 Incoming33-58 Outgoing58-63 Emergency TrafficUsing the standard Dial command we cannot select on which CICs to sendout traffic, since chan_ss7 will by default use all CICs:Dial(SS7/Linkset1/number)To overcome this problem 阅读全文

posted @ 2013-06-17 10:25 NooBkey 阅读(230) 评论(0) 推荐(0) 编辑


Copyright © 2024 NooBkey
Powered by .NET 8.0 on Kubernetes