Linux
zlhg
Expert in telecommunication software.
展开
-
Reinstall cygwin
$Id: cygwin_reinstall.html,v 1.2 2005/10/07 03:39:20 george Exp $ Reinstall cygwinYesterday I wanted to reinstall cygwin on my notebook. I just copied the whole cygwin directory from desktop to原创 2005-10-07 11:36:00 · 2623 阅读 · 1 评论 -
在linux下如何把一个lvm的文件系统减小
在linux下如何把一个lvm的文件系统/home减到1G。比aix下麻烦,aix下直接把文件系统缩到某个值,对应的lv自动就减少了,不像linux要先缩小文件系统,再缩小lv。 suse1:~ # df -mFilesystem 1M-blocks Used Available Use% Mounted on/dev/mapper/syste原创 2010-01-06 14:36:00 · 7664 阅读 · 0 评论 -
intel的cpu跑websphere 7居然比ibm的power pc更快
好久没有写文章了,有空也扫扫blog上的灰尘,记录一下遇到的问题。先占个坑,说说websphere 7的那些事。 先说说不同os平台上的问题。 去年5月份公司命令各个局点必须将jdk升级到6,于是拉着客户将生产系统几十个机器从was 6.0.2.11 32bit for ppc升级到was 7.0.0.3 64bit(当时比较新的pack,没有bug就不打新的pack了,千万不能没原创 2010-01-05 22:31:00 · 1519 阅读 · 0 评论 -
在shell的循环中将变量传入perl
用 单引号双引号$i双引号单引号 这样的写法从shell的循环中传入变量 具体如下: for i in `lssrc -a|grep "cics/."|grep -v grep|grep -v ABC|awk {print substr($1,6)}`;doecho ===$i===perl -p -i -e s/ABC/"$i"/g /var/cics_r原创 2010-03-09 09:54:00 · 1280 阅读 · 0 评论 -
在suse上配置ntp
在suse上配置ntp$vim /etc/ntp.conf#增加时间源server 192.168.56.1$chkconfig ntp on # 在系统重启时启动服务$service ntp start # 启动ntp$service ntp status # 查看ntp状态问题:1)为什么在故意改了一个错误的时间,ntpd没有更新时间?如果原创 2010-02-22 11:10:00 · 27506 阅读 · 0 评论 -
iptrace占用/dev/bpf0导致tcpdump报 BIOCSETIF: en1: Do not specify an existing file
iptrace占用/dev/bpf0导致tcpdump无法访问/dev/bpf0而报错。 在aix下可以用truss tcpdump看见在访问/dev/bpf0时报errno=EEXIST #define EEXIST 17 /* File exists */ 用下面2步解决问题:1)找到iptrace的pi原创 2009-03-30 17:52:00 · 4205 阅读 · 1 评论 -
sqlldr处理格式化数据
server每天都产生一大批日志需要导入test数据库user用户下。本来想在机器上用shell直接分析,但是量太大了,一天1千多万条,不方便统计汇总,用sqlldr导入比较方便。就拿来用了。sqlldr主要用了direct=true的选项,速度和不用没法比。^_^,1个文件100多万条记录就几秒钟。-- 每天code统计表create table code_stat(pid VARCHAR2(原创 2008-12-20 05:19:00 · 1173 阅读 · 0 评论 -
using for loop in ssh
for i in server1 server2;dossh $i "for j in /`find / -name data.out.20081211*/`;docount=/`grep Count /$j|wc -l|awk {print /$1}/`((row=/$count % 2 ))if (( /$row == 1 ))thenecho /$jfidone"done几点需原创 2008-12-20 05:43:00 · 833 阅读 · 0 评论 -
Config Websphere edge component
$Id: edge_setup.txt,v 1.1 2007/03/25 02:03:41 albert Exp $Config Websphere edge component Use port 80(http) to build a cluster for balanced app server w1a and w1b.cluster server ip address: 10.19.90.1原创 2007-03-25 10:02:00 · 1717 阅读 · 0 评论 -
在aix下使用raw device建oracle分配vg和lv的shell
$Id: 20070326_mk_lv.txt,v 1.2 2007/03/25 01:47:36 albert Exp $在aix下使用raw device建oracle分配vg和lv的shell#### 机器上有16个vpath,2T的容量,存储为IBM DS8000。2块光纤卡,2个通道。# 文件系统用2个vpath,数据库用剩下的14个vpath# lspv可以看到有几个vpath## 建原创 2007-03-25 09:48:00 · 6102 阅读 · 0 评论 -
Install cvs on Ubuntu6.06 LTS
cvs is on my ubuntu again. Some steps and tips are shared on this post. Problems with xinet and lo are special on 6.06. I use lvm for my cvs repository. So the first step is create a lv named l原创 2006-10-12 11:51:00 · 1020 阅读 · 0 评论 -
ubutun 6.06 LTS下用wine运行windows上的股票软件
ubutun 6.06 LTS下用wine运行windows上的股票软件一直在linux下玩,唯一不爽的就是没有linux下好用的股票软件。 用了2个都十分之怪异。 都是用wine0.9去虚拟windows2003下的股票软件,不知道是否和用代理服务器有关系,另外一台机器有2块网卡,做代理,自己的连那个机器。同花顺无法连接行情服务器,一连接就挂在那里不动了。应该是liveup原创 2006-09-21 23:23:00 · 1811 阅读 · 0 评论 -
Install Ubuntu 5.10 on external usb hdd driver on HP NX6130
Install Ubuntu 5.10 on external usb hdd driver on HP NX6130Its a success that I had installed ubuntu 5.10 on my external usb hdd driver. My external hdd driver is Samsung MP40H, 40G.原创 2006-04-02 11:41:00 · 1572 阅读 · 0 评论 -
Install Ubuntu Linux On External HDD Driver
Still failed to install Ubuntun Linux on my HP NX6310 laptop with my samsung 40G HDD. After modify menu.lst and rebuild the image, reboot my laptop, there is no response. Solution: change bo原创 2006-03-25 14:47:00 · 994 阅读 · 0 评论 -
Some commands on AIX
1 Some commands on AIX, just list here as a reminder. 2 3 I hope this will be useful for my latter work. 4 5 1. 6 $du -ks 7 $du -ks * 8 $df -k 9 $df -m1011 2.12 $ls -F1314 3.15 $su - root1原创 2005-12-11 00:36:00 · 1125 阅读 · 0 评论 -
condition variable in os161
Im learning a operating system course from Harvards cs course cs161. And I find that this url is useful for the ASST1 which is tips on implement lock and condition variable. http://www.cs.toro原创 2005-06-13 14:23:00 · 2448 阅读 · 0 评论 -
sys_fork() in os161
$Id: os161-sys_fork.html,v 1.5 2005/10/07 02:43:44 george Exp $ sys_fork() in os161Descriptionfork duplicates the currently running process. The two copies are identical, except that one (the "n原创 2005-10-06 20:00:00 · 9158 阅读 · 0 评论 -
在suse11上安装配置vsftpd,允许local的root和oracle用户ftp
在suse11上安装配置vsftpd,允许local的root和oracle用户ftp花了半个下午搞定了suse11中的vsftpd配置,在suse11下搞个ftp server怎么就这么麻烦,默认没有安装vsftpd,安装了还有一堆的地方配置,sigh。因为只是需要让local的user可以ftp,就只介绍如何配置local方式,virtual user方式用不着就不介绍了,请goo原创 2010-01-06 18:19:00 · 11030 阅读 · 0 评论