-
mark:现在douban.com 豆瓣挂了
Dec092013
-
Code review 工具gerrit之体验
Sep172013
-
nginx lua as http client
Sep172013
-
使Cacti流量图超过80M的解决方法
Apr032013Before:
阅读全文
# /usr/local/rrdtool/bin/rrdtool info /var/www/html/rra/71/2995.rrd
ds[traffic_in].min = 0.0000000000e+00
ds[traffic_in].max = 1.0000000000e+07
ds[traffic_out].min = 0.0000000000e+00
ds[traffic_out].max = 1.0000000000e+07
使Cacti流量图超过80M的解决方法已关闭评论
-
centos5.4升级网卡驱动
Jan042013机器型号:Dell R710,操作系统Centos5.4,症状:流量大时网卡不通,日志无明显迹象。 解决办法,升级网卡驱动: 升级前: [root@2hei.net]# ethtool -i eth0 driver: bnx2 version: 1.9.3 firmware-version: 5.2.3 NCSI 2.0.11 bus-info: 0000:01:00.0 步骤如下: wget http://ftp.us.dell.com/network/Bcom_LAN_16.4. ...
阅读全文centos5.4升级网卡驱动已关闭评论
-
dmidecode ipmitool mcelog
Dec012011
-
Linux Keyboard shortcut keys
Oct212011CTRL + C Cancels the currently running command.CTRL + D Logs out of the current session.CTRL + Z Cancels current operation, moves back a directory or takes the current operation and moves it to the background. CTRL + A Move ...
阅读全文作者:2hei | 分类:linux | 阅读:75,197 views | 标签:shortcut keysLinux Keyboard shortcut keys已关闭评论
-
nice linux
Sep152011
-
reset low speed USB device using ehci_hcd
Sep062011dmesg has such logs: usb 1-5.1: reset low speed USB device using ehci_hcd and address 4 usb 1-5.1: reset low speed USB device using ehci_hcd and address 4 usb 1-5.1: reset low speed USB device using ehci_hcd and address 4 usb 1-5.1: reset low speed USB device using ehci_hcd and address 4 usb 1-5 ...
阅读全文作者:2hei | 分类:linux | 阅读:6,688 viewsreset low speed USB device using ehci_hcd已关闭评论
-
Linux will keep /tmp files for 10 days by default
Aug032011For files in /tmp directory, linux has cron at /etc/cron.daily to deal with:[2hei.net cron.daily]$ cat tmpwatch flags=-umc/usr/sbin/tmpwatch “$flags” -x /tmp/.X11-unix -x /tmp/.XIM-unix \ -x /tmp/.font-unix -x /tmp/.ICE-unix -x /tmp/.Test-unix 240 /tmp/usr/sbin/tmpw ...
阅读全文Linux will keep /tmp files for 10 days by default已关闭评论
-
Smartctl: Device Read Identity Failed
Jul062011/usr/sbin/smartctl –all /dev/sda -d ata smartctl version 5.38 [x86_64-redhat-linux-gnu] Copyright (C) 2002-8 Bruce AllenHome page is http://smartmontools.sourceforge.net/Smartctl: Device Read Identity Failed (not an ATA/ATAPI device) A mandatory SMART command failed: exiting. To continue, ...
阅读全文作者:2hei | 分类:linux | 阅读:4,435 viewsSmartctl: Device Read Identity Failed已关闭评论
-
ATA bus error SError: { PHYRdyChg DevExch }
Jun202011ATA bus error in /var/log/messages: SCSI device sdb: 490350672 512-byte hdwr sectors (251060 MB) sdb: Write Protect is off sdb: Mode Sense: 00 3a 00 00 SCSI device sdb: drive cache: write back ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x4010000 action 0xe frozen ata1.00: irq_stat 0x00400040, ...
阅读全文ATA bus error SError: { PHYRdyChg DevExch }已关闭评论
-
linux 环境变量中配置参数 use function but not use alias
Jun202011例子:使用两个参数匹配域名,其他部分自动补齐,减少键盘输入,然后ssh登陆到目的主机。 cat .bashrc # .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # update the PATH export PATH=${PATH}:/usr/sbin:/sbin sss() { ssh $1.$2.2hei.net } use: $sss t ...
阅读全文linux 环境变量中配置参数 use function but not use alias已关闭评论
-
openvpn vnc java firefox on centos5
Jun1020111. yum install openvpnwget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpmyum install epel-release-5-4.noarch.rpmyum intall openvpn vnp configs: 2hei.net.ovpn add:–script-security 2up “/etc/openvpn/update-resolv-conf up”down “/etc/openvpn/upd ...
阅读全文openvpn vnc java firefox on centos5已关闭评论
-
bonding in linux
Feb182011####### bond0 #######dond0 use dhcp$cat ifcfg-bond0DEVICE=bond0BOOTPROTO=dhcpONBOOT=yes $cat ifcfg-eth0DEVICE=eth0ONBOOT=yesBOOTPROTO=noneUSERCTL=noMASTER=bond0SLAVE=yes DEVICE=eth1ONBOOT=yesBOOTPROTO=noneUSERCTL=noMASTER=bond0SLAVE=yes ####### bond1 #######$cat ifcfg-bond1DEVICE=bond1BOOTPROTO= ...
阅读全文bonding in linux已关闭评论
-
change linux swap size
Sep252010
-
finding netcard driver type in linux
Jun292010we have two ways: 1. finding netcard driver by sysloggrep -i ‘driver’ /var/log/messagesordmesg | grep -i driver 2.lsmod #try to find netcard type. [root@2hei.net]# modinfo e1000filename: /lib/modules/2.6.9-34.ELsmp/kernel/drivers/net/e1000/e1 ...
阅读全文
-
replacing_hard_disks_in_a_raid1_array
Jun092010cat /proc/mdstat Personalities : [raid1] read_ahead 1024 sectors md1 : active raid1 sda3[0] sdb3[1] 522048 blocks [2/2] [U_] md0 : active raid1 sda2[0] sdb2[1] 4192896 blocks [2/2] [U_] md2 : active raid1 sda1[0] sdb1[1] 128384 blocks [2/2] [U_] unused devices: < ...
阅读全文replacing_hard_disks_in_a_raid1_array已关闭评论
-
linux sz rz tools
May302010
-
SHELL中的2进制、10进制、8进制、16进制之间的转换
May042010一、16进制转换成10进制printf %d 0xF15或者echo $((16#F))15 二、10进制转换成16进制printf %x 15f或者echo “obase=16;15″|bcF 三、10进制转换成8进制printf %o 911 四、8进制转换成10进制echo $((8#11))9 五、同理二进制转换成10进制echo $((2#111))7 六、10进制转换成二进制echo “obase=2;15̸ ...
阅读全文SHELL中的2进制、10进制、8进制、16进制之间的转换已关闭评论