`
wanghhao
  • 浏览: 21490 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
打开 Linux 的 inlcude/resolv.h 文件可以发现里面定义了可以追踪的 DNS server 数目: $ vi /usr/include/resolv.h /* * Global defines and variables for resolver stub. */ # define MAXNS                  3       /* max # name servers we'll track */ 所以 /etc/resolv.conf 定义了3个 name server,option rotate 选项指在这3个 dns server 之间轮回查询 ...

ssh 代理

ssh -D 8080 -f -C -q -N myuser@remote_ssh_server -D 8080 : This does the dynamic stuff and makes it behave as a SOCKS server. -f : This will fork the process into the background after you type your password. -C : Turns on compression. -q : Quiet mode. Since this is just a tunnel we can make it quiet ...
# uname -a Linux euis1 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux (查看当前操作系统内核信息) # cat /etc/issue | grep Linux Red Hat Enterprise Linux AS release 4 (Nahant Update 5) (查看当前操作系统发行版信息) # cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c       8  Intel(R) Xe ...
1. 安装jdk rpm包 2.find / -name "libnpjp2.so" 3. mkdir /opt/google/chrome/plugins 4. cd /opt/google/chrome/plugins 5. ln -s /usr/java/jdk1.7.0_02/jre/lib/i386/libnpjp2.so
1.制作一个引导u盘   将u盘以fat格式格式化,exfat和ntfs都是浮云,计算机引导的时候不认。使用iso工具将isolinux文件夹提取到u盘,将islinux文件夹内的所有文件拷到u盘根目录下。将/isolinux和/isoconfig分别改为/syslinux和/sysconfig。   下载syslinux 3.85 版本,解压缩,运行命令,cd syslinux 3.85/win32,syslinux.exe -s -m G:, G: 指u盘的盘符。 2.将centos 6的iso文件全部提取出来,配置ftp服务器可以匿名访问 3.使用u盘引导安装,在选择安装介质位置的时候,输 ...
cpanel的服务监控主要是由ChkServd 负责,默认8分钟检查一次/etc/chkserv.d/下的脚本,格式如下:#SERVICE = PORT, SEND, RESPONSE, RESTART COMMAND。 chkservd 从一个角度来讲非常顽固,如果要取消自动检测重启相当费劲,/etc/chkserv.d下的脚本如果修改或删除了,chkservd会自动把脚本还原。 chkservd 是由 tailwatchd来管理的额,tailwatchd管理如下服务:Antirelayd,Antirelayd,ChkServd,cPBandwd。 可以通过这个脚本来控制: /usr/l ...
- I usually use a spun article in spin syntax format {abc1|abc2|abc3} with at least 40% uniqueness - I add 2 anchor text links either at the bottom of the article or inside the article body, 1 link points to my money site and 1 other link points to another site - I've made sure that all these sites a ...
1. 群发链接   500+/日 BLOG留言 论坛签名 文章回复等形式   2/2/1的比例覆盖到首页,站内重要页面以及其它页面   首页覆盖的锚文本不低于5个 其他每个页面覆盖的锚文本不低于2个 关键词合理划分重点设置锚文本   15000条外链 一月内完成   相关工具:   http://www.online-utility.org/we … domain_analyzer.jsp   https://addons.mozilla.org/zh-CN/firefox/addon/5687   http://www.google.com/alerts 2. 站内链接   ...

ftp服务器搭建

1.yum -y install vsftpd 2.adduser -m -g ftp -s /sbin/nologin ftpname帐号
陈天桥简介   1973年5月,陈天桥出生于浙江新昌。   17岁时陈天桥考入复旦大学经济系,在大三的时候,陈天桥就提前一年完成学业,顺利进入上海著名企业陆家嘴集团。尽管陈天桥进入公司的第一份工作是在企业放录象 ...
public static String formatXML(Document doc)   {     StringBuffer localStringBuffer = new StringBuffer();     StringWriter localStringWriter = null;     XMLWriter localXMLWriter = null;     OutputFormat localOutputFormat = null;     try     {       localOutputFormat = OutputFormat.createPrett ...
1.在Eclipse里新建一java工程,将工程的编码设为“GBK”,运行System.out.println(Charset.defaultCharset().name()),打出的是“GBK“ 2.在Eclipse里新建一java工程,将工程的编码设为“UTF-8”,运行System.out.println(Charset.defaultCharset().name()),打出的是“UTF-8“. 结论:defaultCharset与file.encoding相关,file.encoding又与eclipse中的java代码文件的编码方式相关。
-Dlog4j.configuration=file:config/log4j.properties
    最近,业界发生了两件比较吸引眼球的事情,一个是谷歌退出中国,一个是苹果拒绝支持flash,这两件事情发生在两个公司,貌似毫无关联,实际上是为了一个原因,下一代应用。     下一代应用,就是独立于平台的web应用,独立于软硬件的web应用,据我的观察谷歌、苹果、微软都是为这个战略目标而努力。      flash在浏览器上面加了一层,相当于一个java虚拟机,可以一次编写,运行多个平台的浏览器,这自然成了谷歌,苹果的心病。苹果先发制人,在ipad上拒绝支持flash;google一方面出于与苹果手持设备(非pc设备)之间的竞争原因,支持flash。另一方面google主推html5, ...
package com.wisekernel; import java.net.InetAddress; import org.apache.catalina.Connector; import org.apache.catalina.Context; import org.apache.catalina.Engine; import org.apache.catalina.Host; import org.apache.catalina.startup.Embedded; public class MyEmbededTomcat { /** * @p ...
Global site tag (gtag.js) - Google Analytics