http://blog.sina.com.cn/xiaoliruizi[订阅]
个人资料
锐子新闻模板
新浪新闻:
网易新闻:
体育新闻:
汽车新闻:
IT新闻:
健康新闻:
旅游新闻:
评论
读取中...
音乐播放器
分类
    内容读取中…
图片幻灯
访客
读取中...
电视机
flashclock
好友
读取中...
博文

今天休息有点时间开始玩下DNS服务器,恩尽量以简单开头让GG们容易上手先^^

首先配置DNS服务器具体原理可以google一大堆出来,这里主要说明两个基本的原理:

1,转换程序控制文件

2,转换程序配置文件

转换程序控制文件###################################################################

在linux中文件/etc/host.conf是用来控制本地转换程序设置的文件.也就是说该文件告诉linux系统转换程序呀使用哪哪些服务器以及按照什么顺序进行查询.注意:该文件的字段可以使用空格或者制符表来分隔.

[root@ibmtest home]# cat /etc/host.conf
order hosts,bind

multi off

nospoof on

alert on

trim ibm.com
[root@ibmtest home]#
恩先cat一下这个文件,看里面有什么东东.............

order选项:使用它来告诉服务器按照哪顺序尝试查询不同的名字解析机制.

hosts----->试图通过查找本地/etc/hosts文件来解析名字.

说明:当前所有IBM Linux Cluster Test使用的都是这个顺序,也就是说首先检查linux本地的hosts文件里面对应的nodes节点,如果找不到,再去其他后面上服务器上

目前一般linux用户都是在 root权限下安装realplayer,然后在非root用户下使用,
[root@localhost home]# ./RealPlayer11GOLD.bin
但是我们会遇到一个问题就是 在非root打开的时候遇到权限不够的问题,所以这里有一个技巧教你怎么避开类似的问题哈哈今天是在 星巴客 喝咖啡本来想看下电影,所以总结并分享下^^
1,首先了解下sudoers文件
[root@localhost home]# vi /etc/sudoers
在 root    ALL=(ALL)       ALL下面添加一行,这就是给对应的帐户添加sudo权限,格式类似如下;
## Allow root to run any commands anywhere
root    ALL=(ALL)       ALL
steven  ALL=(ALL)       ALL
保存编辑,这个时候你就可以realplay了,不过注意你在使用的时候要多加一个sudo命令$sudo  realplay即可:)
2,下面来了解下sudoers文件的 一些操作对你 很有 用处,特别是OS ADMIN。

sudo是linux下常用的允许普通用户使用超级用户权限的工具,允许系统管理员让普通用户执行一些或

名称
     ssh-keygen - 生成、管理和转换认证密钥


语法
     ssh-keygen [-q] [-b bits] -t type [-N new_passphrase] [-C comment] [-f output_keyfile]
     ssh-keygen -p [-P old_passphrase] [-N new_passphrase] [-f keyfile]
     ssh-keygen -i [-f input_keyfile]
     ssh-keygen -e [-f input_keyfile]
     ssh-keygen -y [-f

1. Sed简介
sed 是一种在线编辑器,它一次处理一行内容。处理时,把当前处理的行存储在临时缓冲区中,称为“模式空间”(pattern space),接着用sed命令处理缓冲区中的内容,处理完成后,把缓冲区的内容送往屏幕。接着处理下一行,这样不断重复,直到文件末尾。文件内容并没有改变,除非你使用重定向存储输出。Sed主要用来自动编辑一个或多个文件;简化对文件的反复操作;编写转换程序等。以下介绍的是Gnu版本的Sed 3.02。
2. 定址
可以通过定址来定位你所希望编辑的行,该地址用数字构成,用逗号分隔的两个行数表示以这两行为起止的行的范围(包括行数表示的那两行)。如1,3表示1,2,3行,美元符号($)表示最后一行。范围可以通过数据,正则表达式或者二者结合的方式确定。

3. Sed命令
调用sed命令有两种形式:
#sed [options] 'command' file(s)
#sed [options] -f scriptfile file(s)
a\
在当前行后面加入一行文本。
b lable
分支到脚本中带有标记的地方,如果分支不存在则分支到脚本的末尾。
c\
用新的文本改变本行的文本。
d
从模板块(Pattern space)位置删除行。

Bridge 这种方式最简单,直接将虚拟网卡桥接到一个物理网卡上面,和linux下一个网卡 绑定两个不同地址类似,实际上是将网卡设置为混杂模式,从而达到侦听多个IP的能力。 
 

在此种模式下,虚拟机内部的网卡(例如linux下的eth0)直接连到了物理网卡所在的网络上,可以想象为虚拟机和host机处于对等的地位,在网络关系上是平等的,没有谁在谁后面的问题。
 
使用这种方式很简单,前提是你可以得到1个以上的地址。对于想进行种种网络实验的朋友 不太适合,因为你无法对虚拟机的网络进行控制,它直接出去了。

Ipmi-sel is used to view and delete System Event Log (SEL) entries. Although output may vary dependent on individual SEL events, most entries will display the SEL record id, date of event, time of event, sensor group, sensor name, and the sensor event occurrence.

Options

-D, --driver-

type=IPMIDRIVER

Specify the driver type to use instead of doing an auto selection. The currently available outofband drivers are LAN and LAN_2_0, which perform IPMI 1.5 and IPMI 2.0 respectively. The currently available inband drivers are KCS, SSIF, and OPENIPMI.
--no-probing
Do not probe IPMI devices for default settings.
--driver-address=DRIVER-ADDRESS
Specify the in-band driver address to be used instead of the probed value.
--driver-device=DEVICE
环境:
1、Vmware Server 1.0.6
2、服务器端为RHEL 5.1,IP为192.168.1.100,同时也提供DHCP,NFS,TFTP服务,提供centos5.0给客户端机器安装

一、配置DHCP服务
1、安装dhcp
# rpm -ivh dhcp-3.0.5-3.el5.i386.rpm
2、修改dhcpd.conf
# vi /etc/dhcpd.conf   //修改或添加内容为以下:
ddns-update-style interim;
ignore client-updates;
allow booting;
allow bootp;
 
class 'pxeclients'{
    match if substring(option vendor-class-identifier,0,9) = 'PXEClient';
    filename 'centos5/pxelinux.0';
    next-server 192.168.1.100;
    }
subnet 192.168.1.0 netmask 255.255.255.0 {
    option routers 192.168.1.1;
    option subnet-mask 255.255.255.0;
    # option nis-domain 'www.redhat.com';
    # option domain-name 'www.redhat.com';
  &n

安装11.1.0.6 for LinuxX86-64的时候,出现了一个有意思的问题。

在服务器本机安装时,显示的检查没有通过:

Checking Temp space: must be greater than 80 MB. Actual 25410 MB Passed
Checking swap space: must be greater than 150 MB. Actual 2047 MB Passed
Checking monitor: must be configured to display at least 256 colors Failed <<<<
>>> Could not execute auto check for display colors using command /usr/X11R6/bin/xdpyinfo. Check if the DISPLAY variable is set.

Some requirement checks failed. You must fulfill these requirements before

 

I am still on night shift these two weeks for supporting IBM iDataplex order, our customer is Morgan Stanley from USA ,how to say ---a really big fish!
So I have a little  time for playing Oracle during my duty at mid-night ,well that's an amazing objective even
not very easy to handle it .
what should you do ? Firstly .Try to open XMMS and add some soft music may be a good idea . Clear consideration is the most important sometimes .For me ,the only guy still work in office is enough .

paste it later ............
How to use cpio file!(2008-09-27 19:41)

cpio 可以从 cpio 或 tar 格式的归档包中存入和读取文件, 归档包是一种包含其他文件和有关信息的文件。 有关信息包括:文件名, 属主, 时标(timestamp), 和访问权限。 归档包可以是磁盘上的其他文件, 也可以是磁带或管道。

cpio命令详细用法

cpio - 存取归档包中的文件
语法 Syntax
cpio -o [ -aBLuvV ] [ -C bufsize ] [ -c | -H format ][ -K volumesize ] [ [ -O file [, file ... ] ] [ -M message ] ] [ -Pifd,ofd ]
cpio -i [ -6AbBcdfkmnqrsStTuvV ] [-C bufsize ] [ [ -I file [, file ... ] ]
[ -M message ] ] [ -Pifd,ofd ] [ pattern ... ]
cpio -p [ -adlLmruvV ] [ -Pifd,ofd ] directory


cpio 有三种操作模式:
在copy-out模式中, cpio 把文件复制到归档包中。它从标准输入获得文件名列表 (一行一个), 把归档包写到标准输出。生成文件名列表的典型方法是使用find 命令; 你可能要在 find 后面用上 -depth选项, 减少因为进入没有访问权限的目录而引起的麻烦。


在copy-in模式中, cpio 从归档包里读取文件, 或者列出归档包里的内容。它从标准输入读入归档包。任何不是选项的命令