`
shuaigg.babysky
  • 浏览: 552545 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论
文章列表
uid = nobody gid = nobody use chroot = no max connections = 4 pid file = /var/run/rsyncd.pid lock file = /var/run/rsync.lock log file = /var/log/rsyncd.log [rsynctest] path = /data1/rsynctest/ ignore errors read only = false list = false auth users = baby secrets file = /etc/r ...
sudo dd if=/dev/zero of=/mnt/512Mb.swap bs=1M count=512 sudo mkswap /mnt/512Mb.swap sudo swapon /mnt/512Mb.swap gedit /etc/fstab /mnt/512Mb.swap  none  swap  sw  0 0  
编译安装glibc下载glibcwget  http://ftp.gnu.org/gnu/glibc/glibc-2.3.2.tar.gz下载glibc-linuxthreadswget http://ftp.gnu.org/gnu/glibc/glibc-linuxthreads-2.3.2.tar.gz解压tar -zxvf glibc-2.3.2.tar.gzcd glibc-2.3.2tar -zxvf ../glibc-linuxthreads-2.3.2.tar.gzcd .../glibc-2.3.2/configure --prefix=/usr --disable-profil ...
file /sbin/init 或者 file /bin/ls/sbin/init: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped 如果显示 64-bit 则为64位; file /sbin/init/sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamic ...
http://hideto.iteye.com/blog/106466   http://beingchou.iteye.com/blog/552054   http://geeklu.com/2010/07/cometd-jetty-continuations/    
var continuation = require('../continuation'); var http = require("http"); var fs = require('fs'); var url = require('url'); var ps = require("path"); //var request = require("request"); function main_entry() { var $baseurl = "http://directwebremoting.org ...
ScheduledThreadPoolExecutor     我们先来学习一下JDK1.5 API中关于这个类的详细介绍:     "可另行安排在给定的延迟后运行命令,或者定期执行命令。需要多个辅助线程时,或者要求 ThreadPoolExecutor 具有额外的灵活性或功能时,此类要优于 Timer。     一旦启用已延迟的任务就执行它,但是有关何时启用,启用后何时执行则没有任何实时保证。按照提交的先进先出 (FIFO) 顺序来启用那些被安排在同一执行时间的任务。     虽然此类继承自 ThreadPoolExecutor,但是几个继承的调整方法对此 ...
去这里下载 http://www.gnu.org/software/wget/   wget-1.14.tar.gz     挂载u盘   拷贝到linux   然后安装   tar -xzvf wget-1.14.tar.gz   cd wget-1.14   ./configure --prefix=/usr   make   make install   前提是需要GCC
fdisk -l     mkdir /mnt/usbdisk   mount /dev/sdb6 /mnt/usbdisk   cd /mnt/usbdisk    
/etc/sysconfig/network-scripts/ifcfg-eth0   添加 check_link_down() { return 1; }   添加ONBOOT="yes"//开机自动激活网卡   添加BOOTPROTO=dhcp 表示接受使用dhcp设置。   service network restart   重启网卡     设置静态IP地址 1,先搜索了一下,得到以下解释IP P地址Netmark 子网掩码Gateway 默认网关HostName 主机名称DomainNa ...
IE User-Agent是如何生成的 http://tieba.baidu.com/f?kz=192127084     以Win XP/IE6为例,根据我的理解我来简介一下IE user-agent的生成,不对之处请指正。首先,IE的缺省标示为:User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)该标示共有4个部分,它们对应的注册表项分别为:Mozilla/4.0 -- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Interne ...
1, 判断字符串是否是这样组成的,第一个必须是字母,后面可以是字母、数字、下划线,总长度为5-20 var reg = /^[a-zA-Z][a-zA-Z_0-9]{4,19}$/; reg.test("a1a__a1a__a1a__a1a__"); 2,截取字符串abcdefg的efg var str = "abcdefg"; if (/efg/.test(str)) { var efg = str.substr(str.indexOf("efg"), 3); alert(efg);
RewriteRule ^((.*/js/)?.*\.js)$ combinejs.php?path=$1&pre=$2&type=js [NC,L,QSA] RewriteCond %{REQUEST_URI} !\.js$ RewriteCond %{REQUEST_URI} !combinejs\.php$ RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ http://js.wcdn.cn/$1 [NC,L,QSA,R]   ...
http://www.paehl.com/open_source/?CURL_7.28.0   http://www.paehl.com/open_source/?CURL_7.28.0   curl 是一般linux发行版中都带有的小工具,利用这个工具可以很方便的下载文件,我一般使用这个工具来查看某个页面相应的HTTP头信息,在Windows系统中我们也一样可以使用这个工具,如果不需要支持https的话,那直接下载一个可执行文件即可,下载页面是:http://curl.haxx.se/download.html,这个页面最底部有一个Windows下的下载链接,请选择不带SSL的版本,  ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; char ...
Global site tag (gtag.js) - Google Analytics