这是一个群里别人让我写的一个小脚本,当做练习发到这里,功能很简单,从一个文件里面提取域名,之后利用nslookup命令对域名进行解析,再按照固定的格式输出到一个新的文件里面(输出规格是为address=/域名/IP),脚本内容如下:#!/bin/bash
fornamein`cat/root/dns.File`;do
n..
分类:
其他好文 时间:
2014-06-10 22:35:33
阅读次数:
355
ADNSserver,ornameserver,isusedtoresolveanIPaddresstoahostnameorviceversa.YoucansetupfourdifferenttypesofDNSservers:AmasterDNSserverforyourdomain(s),whichstoresauthoritativerecordsforyourdomain.AslaveDNSserver,whichreliesonamasterDNSserverfordata.Acaching-on..
分类:
系统相关 时间:
2014-06-10 22:29:28
阅读次数:
432
昨天调试远程服务器,为了增加socket链接数,理所当然的进行了limits.conf配置,之后悲剧发生了。
利用xshell再度远程时,被强制T了。链接瞬间即断,如果幸运,会弹出 ”Connection closed by foreign host“ 提示。
开始以为是防火墙或网络行为的原因,沟....
分类:
其他好文 时间:
2014-06-10 20:29:10
阅读次数:
472
Unlike other promotional products, custom,
these bags are? U? A useful tool for advertising because the ads joke Wielen
fill the chest. If you want yo...
分类:
其他好文 时间:
2014-06-10 20:12:34
阅读次数:
298
今天在做项目时,遇到了一个问题。因为是在别人做好的基础上改东西,所以,一些东西不能按照自己的变成习惯来。就比如,我创建项目习惯刚建完就设置字符的编码集为UTF-8,而人家的项目就未必是那样了。好了,废话不多了。问题如下:一个jsp页面(里面有Java代码)的编码集为GB2312,而我修改里面东西时死活不让我保存,一保存就提示“Some characters cannot be mapped usi...
分类:
移动开发 时间:
2014-06-10 19:26:26
阅读次数:
538
题目
Follow up for "Unique Paths":
Now consider if some obstacles are added to the grids. How many unique paths would there be?
An obstacle and empty space is marked as 1 and 0 respective...
分类:
其他好文 时间:
2014-06-10 18:28:49
阅读次数:
207
题目
Validate if a given string is numeric.
Some examples:
"0" => true
" 0.1 " => true
"abc" => false
"1 a" => false
"2e10" => true
Note: It is intended for the problem statement t...
分类:
其他好文 时间:
2014-06-10 17:32:23
阅读次数:
174
Our information -Wireless
interface:wlan0Monitor mode interface: mon0Spoofed MAC –00:11:22:33:44:55? DO
NOT EVER USE THIS AS YOUR SPOOFED MAC ADDRESS ...
分类:
其他好文 时间:
2014-06-10 16:55:13
阅读次数:
300
Vmware Player添加网络连接,
选择“Host-only”:查看网卡ip=192.168.245.132:安装samba图形管理界面:#sudo apt-get install
system-config-samba启动samba图形管理界面:#sudo system-config-sam...
分类:
其他好文 时间:
2014-06-10 11:21:57
阅读次数:
257
之前没有遇到过这个问题,配了三天的项目了,惊人啊!!!各种怪问题全被我赶上了。真有种骂人的冲动。tomcat启动项目时,项目资源被加载两遍。原因:配置虚拟目录导致,项目被重新加载。
我们在Host标签下面配置了appBase="webapps",tomcat加载项目一次,在Context里...
分类:
其他好文 时间:
2014-06-10 10:31:12
阅读次数:
342