- 博客(137)
- 收藏
- 关注
转载 oracle virtualbox修改虚拟机的default machine folder
oracle virtualbox修改虚拟机的default machine folder:cd /root/.VirtualBox/cp VirtualBox.xml VirtualBox.xml_bakvi Vi...
2014-03-06 01:26:10
619
转载 linux 脚本 for 与while实际中的区别
用for 读取服务器列表,空格间隔for h in `cat a`; do ssh root@${h} 'chkconfig --level 35 ntpd on && chkconfig --list ntpd...
2013-05-17 15:18:55
207
转载 linux下nc检测端口
nc -z -v -w 2 -n 10.20.22.37 1-50000 2>/dev/null [@more@] ...
2013-05-06 23:14:43
218
转载 linux 命令sed命令指定行或匹配行插入行
sed -i "231s:.*:hello:g" file #将第231行的所有字符替换为hellosed -i '$d' file #将文件file的最后一行删除sed -i "/# hardware ethernet/a${...
2013-01-02 23:44:30
969
转载 linux+virtualbox下虚拟机访问真实网络
用过host做网关,用iptables做IP隐藏iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o bond0 -j MASQUERADELink URL: http://wa...
2013-01-02 23:44:30
163
转载 linux下nc扫描tcp,udp端口
nc扫描端口udpnc -z -v -n 10.1.1.100 9990-10000 2>/dev/null tcpnc -z -v -u -n 10.1.1.100 120-125 2>/dev/null Link...
2013-01-02 23:44:30
244
转载 rhel5下查看fc的wwn
systool -c fc_host -vport name 或者node name 就是该hba卡的 wwnsystool -c fc_host -v | grep port_namesystool -c fc_transpo...
2013-01-02 23:44:30
146
转载 linux_ulimit_open filer
vi /etc/security/limits.conf* - nofile 40000USERNAME soft nofile 50000USERNAME hard nofile 60000vi /etc/ssh/sshd_c...
2013-01-02 23:44:30
135
转载 rhel5.6_openfiler_oracle10gRAC_udev
挂在openfiler的iscsi硬盘/etc/init.d/iscsi start/etc/init.d/iscsid startip='192.168.65.80'; ip='10.10.10.80'; iscsiadm -...
2013-01-02 23:44:30
102
转载 linux_openfiler_udev配置
挂载openfilerip='192.168.65.80'; iscsiadm -m node -p $ip -T `iscsiadm --mode discovery --type sendtargets --portal $...
2013-01-02 23:44:30
129
转载 linux_vsftpd登录后执行ls不显示文件列表
vsftpd服务器端登录后,执行ls不能看到文件列表,原因selinux启动以下命令用以不重启服务器 关闭selinuxsestatus -vfind /etc/sysconfig/* -name 'selinux' | xar...
2013-01-02 23:44:30
1797
转载 linux_vmware_openfiler_静默方式安装_ora10201_rac执行root.sh脚本报错libpthread.so.0不能打开处理...
在执行oracle 10g rac (10201)的第二个节点上执行root.sh脚本是会出现报错$ORA_CRS_HOME/jdk/jre/bin/java: error while loading shared librar...
2013-01-02 23:44:30
131
转载 linux_命令行批量修改密码
批量修改密码做好root口令的信任#!/bin/bashcat pa_user | while read a;do echo $a | awk -F: '{print $1,$2,$3}'| while read host us...
2013-01-02 23:44:30
159
转载 hp iLO命令行增加用户
rpm -ivh hp-ilo-8.2.5-22.rhel5.x86_64.rpmrpm -ivh hponcfg-1.9.0-3.noarch.rpmrpm -ivh hp-health-8.2.5-50.rhel5.x86_...
2011-05-31 22:00:53
543
转载 linux_批量安装配置文件_dhcpd_tftp_nfs
rz /etc/dhcpd.conf ## DHCP Server Configuration file.# see /usr/share/doc/dhcp*/dhcpd.conf.sample #ddns-update-...
2011-05-23 09:44:06
152
转载 linux/unix下用tcpdump抓包
tcpdump -p -n -vvv -ttt -s 0 -X dst host xxx.xxx.xxx.xxx and port 8001 and tcp -p 关闭混杂模式-n不解析主机-s 不限制包的大小 -X 显示包中1...
2011-04-15 15:57:01
191
转载 linux perl 查看文件状态
perl -le '@a=stat(qq(./b))for (0..12){print $a[$i],"n";}'8,最后访问时间9,最后修改时间10,最后修改时间perl -le 'use POSIX;;@a=stat(qq(...
2011-02-25 04:10:17
160
转载 linux solaris aix上取系统前N天日期(必须安装perl)
a=`perl -le 'use POSIX;;print (strftime("%Y-%m-%d_%H-%M-%S",localtime(time()-2*86400)));'`;echo $a[@more@] ...
2011-01-24 01:52:52
171
转载 linux/unix 扫描端口
time nc -nzv 127.0.0.1 1-65535 2>/dev/nulltime nmap -p 1-65535 127.0.0.1看看哪个速度快[@more@] ...
2011-01-19 12:35:17
153
转载 linux_测试系统能用内核支持最大文件数
n="1048477";while [ : ] ; do if ulimit -Hn $n >/dev/null 2>&1 ; then echo "${n} :`ulimit -H...
2010-12-31 15:39:36
124
转载 linux_ora10g_rac_listener.ora+tnsnames.ora
windows + VMWARE +oracle 10G rac +asm1.安装vmware: 创建共享磁盘:scsi1:1 rac.vmx中增加 disk.locking="FALSE" scsi1:sharedBu...
2010-12-18 00:49:33
187
转载 windows_vmware_rhel 5u4_oracle10g_rac_手工注册到rac
windows + VMWARE +oracle 10G rac +asm1.安装vmware:创建共享磁盘:scsi1:1rac.vmx中增加disk.locking="FALSE"scsi1:sharedBus="VIRTU...
2010-12-18 00:44:27
98
转载 linux_oracle10g_rac_asm_命令行配置rac记录
windows + VMWARE +oracle 10G rac +asm1.安装vmware: 创建共享磁盘:scsi1:1 rac.vmx中增加 disk.locking="FALSE" scsi1:sharedBu...
2010-12-17 01:22:26
140
转载 rhel5.4+oracle_10g+asm 手工配置
lvcreate -L 8G -nLogVol06 VolGroup00lvcreate -L 8G -nLogVol07 VolGroup00lvcreate -L 8G -nLogVol08 VolGroup00lvcrea...
2010-11-25 10:36:06
77
转载 oracle中的全局环境变量配置
oracle中增加全局环境变量配置在oracle的.profile或者.bash_profile中增加SQLPATH=$ORACLE_HOMEexport SQLPATH保存退出后编辑$ORACLE_HOME/login.sql...
2010-07-13 10:58:53
584
转载 linux awk 打印指定月文件的字节数
打印指定月文件的字节数ls -ltr | awk '$6=="Oct" {sum += +$5 } END { print sum}'[@more@] ...
2010-06-17 19:27:23
249
转载 oracle 9i 打开autotrace on
@?/rdbms/admin/utlxplan create public synonym plan_table for plan_table; grant all on plan_table to public; @?/sql...
2010-05-13 12:09:46
81
转载 linux sed命令:显示关键字到文件末尾的内容
cat file_name | sed -n '/key world/,$p' 显示关键字到文件末尾的内容[@more@]l ...
2010-04-19 14:11:03
952
转载 unix为防止终端长时间没有动作,挂死的办法
unix为防止终端长时间没有动作挂死,可以在另一个终端向前一个发write 如下:while : ;do printf "`date `nnn" ; printf "`date` nnnnn"|write oracle pts/...
2010-04-17 02:36:36
72
转载 linux下统计多个java进程的文件句柄到一个变量
a="$(for pid in $(ps -ef | grep -v grep | grep java | grep weblogic | awk '{print $2}'); do fs="$($(which lsof) -p...
2010-04-06 02:22:03
77
转载 solaris 中取几天前的日期
# TZ=${TZ}+64 == 3 day ago# TZ=${TZ}+40 == 2 day ago# TZ=${TZ}+16 == 1 day agoyDATE="`TZ=${TZ}+40 date +%b %d`"ech...
2010-04-05 21:31:48
151
转载 linux_shell awk中传递变量
#!/bin/shcd ./076/for id in 01016 01017 01015 01014 01010 01007 01012 01005 01009do echo "$id" find ./...
2010-02-25 19:11:13
79
转载 linux 下postfix安装
wget http://ftp.unicamp.br/pub/postfix/official/postfix-2.6.3.tar.gztar zxvf postfix-2.6.3.tar.gzcd postfix-2.6.3/...
2009-12-30 12:36:45
241
转载 rsync配置认证方式
rsync配置认证方式/etc/rsyncd.conf uid = wst40gid = wst40max connections = 50pid file = /var/run/rsyncd.pidlock file = /v...
2009-11-23 17:41:19
398
转载 linux_扫描应用程序端口,发现不能wget页面,就发送邮件通知
#!/bin/shhosts="10.46.64.49 10.46.64.50"ports="6001 6003 6005 6007"#apps="/ /fmccehalladmin/ /fjheart/ /mzonehr/ /...
2009-11-13 18:49:46
150
转载 oracle_sql_取当前时间18到7天前的18点之间的数据
select user_mobile, count(*) from t_query_log where application ='wap' andquery_time >= to_date(to_char(trunc(s...
2009-11-13 18:47:22
862
转载 linux 下的 tcpdump 抓包命令
tcpdump -ni eth0 -s0 -tttt -vvvv host (xxx.xxx.xxx.xxx or yyy.yyy.yyy) and dst port 80[@more@] ...
2009-11-09 18:43:06
85
转载 Oracle 9i 打开autotrace on 查看执行计划
reference:http://blog.chinaunix.net/u/11765/showart_471903.html===================1.创建表,通过utlxplan脚本 SQL> @?/rd...
2009-10-17 00:45:51
140
转载 linux date 昨天 _取前一个小时
linux date 昨天date -d '-2 day' +%Y%m%d-%H%M%S取前一个小时date -d '-1 hour' +%Y%m%d-%H%M%S[@more@]linux date 昨天date -d '-2...
2009-08-14 15:22:14
1570
转载 linux_apache+php+dotproject
注意:php-5.3.0.tar.gz抛弃的很多的函数,所以不适合安装dotproject2.1.2 只能使用php-5.3.0.tar.gz以前的版本[@more@]注意:php-5.3.0.tar.gz抛弃的很多的函数,所以...
2009-08-01 02:26:26
336
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人