Tag - linux

Entries feed - Comments feed

Sunday, November 11 2007

超级无敌screen caption

caption always "%{= Bw}%-w%{= kW}%n %t%{= Bw}%+w%{= BW}%? @%u%?%? [%h]%?%-= - %LD %d %LM - %c"add it to your ~/.screenrc 转自 http://zhllg.spaces.live.com/Blog/cns!956A48A2D7ED7265!1729.entry

Sunday, September 2 2007

取得昨天的日期

1.bash $TZ="UTC+16" date 2.php $yesterday=date('ymd',date('U')-3600*24); 3.perl perl -e 'print scalar localtime(time-3600*24)' Perl中取得日期格式的几种方法: perl -e 'use POSIX; print strftime("%Y-%m-%d %H:%M:%S", localtime)' perl -e 'use HTTP::Date;print HTTP::Date::time2iso(time);' perl -e  […]

Continue reading

Tuesday, May 29 2007

Gentoo Installation

prepare disk & make filesystemmount /dev/sdaX /mnt/gentooextract stage3 & portage treetar -xjpvf stage3-xxx.tar.bz2 -C /mnt/gentootar -xjvf portage-xxx.tar.bz2 -C /mnt/gentoo/usr copy DNS info cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf mount -t proc none /mnt/gentoo/proc mount -o  […]

Continue reading

Tuesday, April 10 2007

LVS 搭建 DR+TUN

LVS是一个关于服务器负载均衡的开源项目 下面是我的实施步骤: 没有采用NAT,应为不方便效率也比较低,我采用DR+TUN的方式,因为有台HP的机器(hppa)在另外一个网段,所以它用TUN,其他都是DR 所有机器就一块网卡eth0,括号是IP地址,VIP是10.60.65.222 1. DIRECTOR-Master db3 (10.60.65.105) C2.4G/128M/Gentoo/2.6.19-gentoo-r5 2. DIRECTOR-Slave druggo (10.60.65.68) AMD2500+/256M/Gentoo/2.6.20-gentoo-r4 3. RS1  […]

Continue reading

Saturday, April 7 2007

Gentoo 中文安装手册

基本翻译完了,推荐! 从这里开始阅读 哈哈,里面有我翻译的。希望早日提交到官方文档上去。

- page 11 of 17 -