当前位置: 首页 > linux
  • 使Cacti流量图超过80M的解决方法

    Before:

    # /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

    阅读全文
    作者:2hei | 分类:linux | 阅读:1,729 views | 标签:,
    使Cacti流量图超过80M的解决方法已关闭评论
  • centos5.4升级网卡驱动

    机器型号:Dell R710,操作系统Centos5.4,症状:流量大时网卡不通,日志无明显迹象。 解决办法,升级网卡驱动: 升级前: [[email protected]]# 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. ...

    阅读全文
    作者:2hei | 分类:linux | 阅读:1,508 views | 标签:,
    centos5.4升级网卡驱动已关闭评论
  • Linux Keyboard shortcut keys

    CTRL + 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 | 阅读:67,055 views | 标签:
    Linux Keyboard shortcut keys已关闭评论
  • nice linux

    Just a mark: nice -n 19 nice 19 sudo nice -n -20 nice -20 ————- $man nice NICE(1)                          User Commands                         N ...

    阅读全文
    作者:2hei | 分类:linux | 阅读:1,593 views
    nice linux已关闭评论
  • reset low speed USB device using ehci_hcd

    dmesg 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 | 阅读:1,662 views
    reset low speed USB device using ehci_hcd已关闭评论
  • Linux will keep /tmp files for 10 days by default

    For 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 ...

    阅读全文
    作者:2hei | 分类:linux | 阅读:3,457 views | 标签:
    Linux will keep /tmp files for 10 days by default已关闭评论
  • Smartctl: Device Read Identity Failed

    /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 | 阅读:1,438 views
    Smartctl: Device Read Identity Failed已关闭评论
  • ATA bus error SError: { PHYRdyChg DevExch }

    ATA 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, ...

    阅读全文
    作者:2hei | 分类:linux | 阅读:3,259 views | 标签:
    ATA bus error SError: { PHYRdyChg DevExch }已关闭评论
  • linux 环境变量中配置参数 use function but not use alias

    例子:使用两个参数匹配域名,其他部分自动补齐,减少键盘输入,然后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 ...

    阅读全文
    作者:2hei | 分类:linux | 阅读:1,106 views | 标签:
    linux 环境变量中配置参数 use function but not use alias已关闭评论
  • openvpn vnc java firefox on centos5

    1. 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 ...

    阅读全文
    作者:2hei | 分类:linux, OpenSource | 阅读:1,307 views | 标签:, , ,
    openvpn vnc java firefox on centos5已关闭评论
  • bonding in linux

    ####### 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= ...

    阅读全文
    作者:2hei | 分类:linux | 阅读:1,061 views | 标签:
    bonding in linux已关闭评论
  • change linux swap size

    cat /proc/swaps
    free -m
    dd if=/dev/zero of=swapfile bs=1M count=8192
    swapoff -a
    mkswap swapfile
    swapon swapfile
    cat /etc/fstab
    /usr/swapfile swap    swap    defaults        0       0
    阅读全文
    作者:2hei | 分类:linux | 阅读:1,523 views
    change linux swap size已关闭评论
  • replacing_hard_disks_in_a_raid1_array

    cat /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: < ...

    阅读全文
    作者:2hei | 分类:linux | 阅读:971 views | 标签:,
    replacing_hard_disks_in_a_raid1_array已关闭评论
  • linux sz rz tools

    虚拟机上最小化安装centos5.3,传文件时发现非常方便的rz 和sz没有安装上,于是手工安装。 wget http://mirrors.163.com/centos/5/os/i386/CentOS/lrzsz-0.12.20-22.1.i386.rpm (一个好消息是163和sohu都有了开源镜像哦,速度飞快!) rpm ivh lrzsz-0.12.20-22.1.i386.rpm 或者直接用yum安装。 yum install lrzsz ...

    阅读全文
    作者:2hei | 分类:linux | 阅读:1,239 views
    linux sz rz tools已关闭评论
  • SHELL中的2进制、10进制、8进制、16进制之间的转换

    一、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̸ ...

    阅读全文
    作者:2hei | 分类:linux, OpenSource, shell | 阅读:3,859 views
    SHELL中的2进制、10进制、8进制、16进制之间的转换已关闭评论