linux+virtualbox下虚拟机访问真实网络
用过host做网关,用iptables做IP隐藏iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o bond0 -j MASQUERADELink URL: http://wangzhensheng.itpub.net/post/28229/529957
rhel5下查看fc的wwn
systool -c fc_host -vport name 或者node name 就是该hba卡的 wwnsystool -c fc_host -v | grep port_namesystool -c fc_transport -vportname 或者node name 是target 端的 wwncat /var/log/messages |grep iscsi|...
linux 命令sed命令指定行或匹配行插入行
sed -i "231s:.*:hello:g" file #将第231行的所有字符替换为hellosed -i '$d' file #将文件file的最后一行删除sed -i "/# hardware ethernet/a${c}" filename # 模式匹配行后匹配行下增加一行,也就是模式匹配后匹配...
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 URL: http://wangzhensheng.itpub.net/post/28229/525646
linux_ulimit_open filer
vi /etc/security/limits.conf* - nofile 40000USERNAME soft nofile 50000USERNAME hard nofile 60000vi /etc/ssh/sshd_config#UseLogin no改成UseLogin yesservice sshd restart用rootulimit -HSn 40000vi /etc/se...
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 --mode discovery --type sendtargets --portal $ip# mount iscsiadm -m node -p $ip -T...
linux_openfiler_udev配置
挂载openfilerip='192.168.65.80'; iscsiadm -m node -p $ip -T `iscsiadm --mode discovery --type sendtargets --portal $ip | awk '{print $2}'` -uiscsiadm --mode discovery --type sendtargets --portal $ipis...
linux_vsftpd登录后执行ls不显示文件列表
vsftpd服务器端登录后,执行ls不能看到文件列表,原因selinux启动以下命令用以不重启服务器 关闭selinuxsestatus -vfind /etc/sysconfig/* -name 'selinux' | xargs perl -pi -e 's|^SELINUX=enforcing|SELINUX=disa...
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 libraries: libpthread.so.0: cannot open shared object file: No such file...
linux_命令行批量修改密码
批量修改密码做好root口令的信任#!/bin/bashcat pa_user | while read a;do echo $a | awk -F: '{print $1,$2,$3}'| while read host user pass; do echo "passwd $host" ssh $host "echo $pass| passwd --stdin $us...