当前位置: 首页 > 2010年6月发布的所有日志
  • finding netcard driver type in linux

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

    阅读全文
    作者:u2 | 分类:linux | 标签:
  • write a own tools of WorldTime with pytz

    require : python2.6 pytz #!/usr/bin/env python# -*- coding: gbk -*-from datetime import datetime, timedeltafrom time import gmtime, strftimefrom pytz import timezoneimport pytz, time,os #def convert_datetime(unix_timestamp=1143408000, tz=1, long_fmt=1): def convert_datetime(dt=’2007-01-01 ...

    阅读全文
    作者:u2 | 分类:python | 标签:
    write a own tools of WorldTime with pytz已关闭评论
  • notice Hostnames should not contain an ‘_’

    notice Hostnames should not contain an ‘_’: such as vm_test01.2hei.net Please have a look at RFC952 (http://tools.ietf.org/html/rfc952) Hostnames should not contain an ‘_’! ASSUMPTIONS:    1. A “name” (Net, Host, Gateway, or Domain name) is a text ...

    阅读全文
    作者:u2 | 分类:OpenSource | 标签:
    notice Hostnames should not contain an ‘_’已关闭评论
  • 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: < ...

    阅读全文
    作者:u2 | 分类:linux | 标签:,
    replacing_hard_disks_in_a_raid1_array已关闭评论