博客首页
注册
建议与交流
排行榜
加入友情链接
推荐
投诉
搜索:
帮助
wangqh_2008
超越梦想
wangqh2008.cublog.cn
管理博客
发表文章
留言
收藏夹
· AIX
· blog_address
· 软件收藏
· 视频教程,文档
· 生活
· 数据库
}
· db2
· mysql
· oracle
· postsql
· sqlserver
· FreeBSD
· HR
· 外语学习
}
· 日语
· 英语
· IBM websphere
· 通信传输与语音交换
· 网络
}
· cisco
· d-link
· 无线网络
· 常用技巧
· 常见故障
· 方案
· 华为
· linux
}
· CVS
· FTP
· http
· mantis
· pell
· shell
· 安装
· 常用网址下载
· 常用服务配置
· 常用技巧
· 学用Lotus
· 娱乐游戏
· 邮件相关
}
· exchange
· extmail
· postfix
· qmail
· sendmail
· 其他
· 音乐
· slaris
· VPN
· windows
}
· 日常维护
· Vista
· windows2003server
· windows2008server
· windows7
· xp
· 安装
· 常用服务配置
· 培训
· 企业应用
· 汽车驾驶
· 安全相关
}
· 防火墙
· 笔记本杂谈
· 备份与恢复
· 常用链接
· 常用网络地址收藏
· 存储
· 电话系统
· 方案文档下载
· 服务集群
· 负载均衡
· 租房网站
博客圈
音乐
相册
· softbrain
文章
· 生活
· 数据库
}
· DB2
· mysql
· oracle
· postsql
· sqlserver
· 常见问题解决方案
· 通信传输与语音交换
· 网络技术
}
· 3com
· cisco
· D-Link
· 网络基础知识
· 无线网络
· TP-Link
· VPN
· 北电
· 常见问题解决方案
· 华为
· mail服务器
}
· exchange
· extmail
· iredmail
· postfix邮件系统
· postfix反垃圾反病毒
· qmail邮件系统
· sendmail邮件系统
· 学习
· 娱乐
· 娱乐与游戏
· 应用服务器
}
· 论坛
· cvs服务器
· OA
· 硬件故障与检测
· VOIP
· websphere
· 企业ERP解决方案
· 企业应用
}
· dabases
· linux
· network
· windows
· 开源监控与IT管理
· 汽车驾驶
· 安全相关
}
· 网络安全
· linux安全
· windows安全
· 备份与恢复
· 操作系统
}
· AIX
· FreeBSD
· linux
· solaris
· windows VISTA
· windows2003server
· windows2008server
· windows7
· windowsxp
· 常见问题解决方案
· 存储
· 电脑装机指南
· 电话系统
· 防火墙
}
· cisco防火墙
· netcsreen
· 方案
· 负载均衡
· 集群
· 健身
· 经验与技巧
首页
关于作者
姓名:jerry 职业: 年龄: 位置:AM地 个性介绍: MSN:wangqh_2008@hotmail.com
||
<<
>>
||
我的分类
文章列表 -
以太网环路水晶头的制作方法
<h1 class="title_txt"> 以太网环路水晶头的制作方法 <cite class="fav_csdnstylebykimi"> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(saveit=window.open('http://wz.csdn.net/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'saveit','scrollbars=no,width=590,height=300,left=75,top=20,status=no,resizable=yes'));saveit.focus();" class="fav_csdnstylebykimi" title="收藏到我的网摘中,并分享给我的朋友">收藏</a> </cite> </h1> <script type="text/javascript"> document.body.oncopy = function() { if (window.clipboardData) { setTimeout(function() { var text = clipboardData.getData("text"); if (text && text.length>300) { text = text + "\r\n\n本文来自CSDN博客,转载请标明出处:" + location.href; clipboardData.setData("text", text); } }, 100); } } </script> <script type="text/javascript">function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}</script> <p>原帖: <strong><a href="http://www.tikkiweb.net/loopback" target="_blank">Make your own Ethernet Loopback connector</a></strong></p> <p>将单个水晶头制作成环路很简单, 以下是制作原理图. :)</p> <p> <img src="http://p.blog.csdn.net/images/p_blog_csdn_net/force_eagle/EntryImages/20091109/Ethernet%20Loopback%20Cable.jpg" alt="环路水晶头" height="480" width="480"></p>
查看全文
发表于:2009-11-20 ┆
阅读(100)
┆
评论(0)
Cisco3550日常管理笔记
<table class="modth" width="100%" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="modtl" width="7"><br></td> <td class="modtc" nowrap="nowrap"><div class="modhead"><span class="modtit">查看文章</span></div></td> <td class="modtc" align="right" nowrap="nowrap"><br></td> <td class="modtr" width="7"> </td> </tr></tbody></table> <div class="tit">Cisco3550日常管理笔记</div> <div class="date"><br></div> Cisco3550日常管理笔记<br> Cisco3550三层交换机配置与管理<br> <br> <br> 一、 3550日常管理命令...................................................................................... 1<br> 二、 密码恢复..................................................................................................... 1<br> 三、 VLAN配置.................................................................................................. 4<br> 四、 SPAN监听配置.......................................................................................... 12<br> 五、 DHCP服务配置......................................................................................... 13<br> 1. 在3550上配置DHCP服务......................................................................... 13<br> 2. C3550配置作为DHCP中继代理................................................................ 15<br> 六、 流量控制................................................................................................... 17<br> 七、 策略路由................................................................................................... 19<br> <br> 一、 3550日常管理命令<br> l clear arp-cache清除ARP缓存<br> l arp 192.168.100.22 000a.eb22.c1b5 arpa 绑定MAC和IP<br> l sh ip accounting output-packets显示统计信息(当然需要配置统计功能如:ip accounting-transits 3200)<br> l 通过IP追查交换机端口:CiscoWorks 2000 LMS网管软件的User tracking可以追查一个IP地址对应的端口。sh mac-address-table address 00e0.9102.afd0 显示这个MAC地址在哪个接口出来的;sh mac-address-table interface Fa0/20显示20端口上的MAC地址,如果只有一个,则可能连接一个电脑,如果有很多个条目,则可以连接一个交换机。sh cdp entry *显示邻居信息;<br> 二、 密码恢复<br> 下面步骤也适用于 Cisco 层 2 系列的交换机比如 Catalyst 2900/3500XL,2940,2950/2955和层 3 系列的比如 Catalyst 3550 的密码恢复.<br> 通过终端或带有仿真终端程序(比如 Hyper Terminal)的 PC,连接到交换机的 console 对于Catalyst 2900/3500XL 拔下交换机的电源线,然后按住交换机的 Mode 按钮,再重新插上交换机的电源线.直到端口 Port 1x 的 LED 熄灭之后释放 Mode 按钮.Catalyst 2940/2950L 拔下交换机的电源线,然后按住交换机的 Mode 按钮,再重新插上交换机的电源线.直到 STAT 的 LED 熄灭之后释放 Mode 按<br> 钮. Catalyst 2955 对于 2955 交换机,它没有外部的 Mode 按钮,因此就不能使用之前的那种方法来进行密码恢 复.在交换机启动时,对于 Windows 系列的 PC,按下 Ctrl Break 键;对于 UNIX 系列的工 作站,按下 Ctrl C.如下:<br> C2955 Boot Loader (C2955HBOOTM) Version 12.1(0.0.514), CISCO DEVELOPMENT TEST<br> VERSION<br> Compiled Fri 13Dec02 17:38 by madison<br> WSC2955T12 starting...<br> Base ethernet MAC Address: 00:0b:be:b6:ee:00<br> Xmodem file system is available.<br> Initializing Flash...<br> flashfs[0]: 19 files, 2 directories<br> flashfs[0]: 0 orphaned files, 0 orphaned directories flashfs[0]: Total bytes: 7741440<br> flashfs[0]: Bytes used: 4510720 flashfs[0]: Bytes available: 3230720 flashfs[0]: flashfs<br> fsck took 7 seconds.<br> ...done initializing flash.<br> Boot Sector Filesystem (bs:) installed, fsid: 3<br> Parameter Block Filesystem (pb:) installed, fsid: 4<br> /---接下来交换机会在 15 秒内自动启动,等出现该信息之后,按下 Ctrl Break 键或 Ctrl C<br> 键----/<br> The system has been interrupted prior to initializing the flash file system to finish<br> loading the operating system software:<br> flash_init load_helper bootswitch:<br> 接下来输入 flash_init 命令: switch: flash_init Initializing Flash...<br> flashfs[0]: 143 files, 4 directories<br> flashfs[0]: 0 orphaned files, 0 orphaned directories flashfs[0]: Total bytes: 3612672<br> flashfs[0]: Bytes used: 2729472 flashfs[0]: Bytes available: 883200 flashfs[0]: flashfs fsck<br> took 86 seconds<br> ....done Initializing Flash.<br> <br> Boot Sector Filesystem (bs:) installed, fsid: 3<br> Parameter Block Filesystem (pb:) installed, fsid: 4<br> switch:<br> 接着输入 load_helper 命令: switch: load_helper switch:<br> 再输入 dir flash:命令显示交换机的文件系统:<br> switch: dir flash: Directory of flash:/<br> 2 rwx 1803357 c3500xlc3h2smz.1205.WC7.bin<br> 4 rwx 1131 config.text<br> 5 rwx 109 info<br> 6 rwx 389 env_vars<br> <br> 7 drwx 640 html<br> 18 rwx 109 info.ver<br> 403968 bytes available (3208704 bytes used)<br> switch:<br> 把配置文件重命名:<br> switch: rename flash:config.text flash:config.old switch:<br> <br> 输入 boot 命令启动交换机:<br> switch: boot<br> Loading<br> "flash:c3500xlc3h2smz.1205.WC7.bin"...####################<br> ###########<br> ######################<br> File "flash:c3500xlc3h2smz.1205.WC7.bin" uncompressed and installed, entry po<br> <br> int: 0x3000<br> <br> executing...<br> (略)<br> <br> 不进入 setup 模式:<br> System Configuration Dialog<br> At any point you may enter a question mark '?' for help. Use ctrlc to abort configuration<br> dialog at any prompt. Default settings are in square brackets '[]'.<br> Continue with configuration dialog? [yes/no]: n<br> 进入特权模式,恢复原始的配置文件:<br> Switch#rename flash:config.old flash:config.text<br> Destination filename [config.text] Switch#<br> 把配置文件保存在内存里:<br> Switch#copy flash:config.text system:runningconfig<br> Destination filename [runningconfig]?<br> 1131 bytes copied in 0.760 secs<br> Switch# 进入全局配置模式,取消密码设置: Switch(config)#no enable secret 保存配置:<br> Switch#write memory<br> Building configuration...<br> [OK] Switch#<br> 三、 VLAN配置<br> 我们现在是一个具备三层交换功能的核心交换机接几台分支交换机(不具备三层交换能力)。我们核心交换机名称为:cmlroot;分支交换机分别为<br> :hrswitch、misswitch、salesswitch,分别通过port 1的光线模块与核心交换机相连;并且vlan名称分别为hrlan、mislan、saleslan……<br> <br> 步骤如下:<br> <br> 1、设置vtp domain(核心、分支交换机上都设置)<br> <br> 2、配置中继(核心、分支交换机上都设置)<br> <br> 3、创建vlan(在server上设置)<br> <br> 4、将交换机端口划入vlan<br> <br> 5、配置三层交换<br> <br> 6、设置vtp domain。 vtp domain 称为管理域。<br> <br> <br> <br> 1、交换vtp更新信息的所有交换机必须配置为相同的管理域。如果所有的交换机都以中继线相连,那么只要在核心交换机上设置一个管理<br> 域,网络上所有的交换机都加入该域,这样管理域里所有的交换机就能够了解彼此的vlan列表。<br> <br> cmlroot#vlan database 进入vlan配置模式<br> <br> cmlroot(vlan)#vtp domain cmlroot 设置vtp管理域名称 cmlroot<br> <br> cmlroot(vlan)#vtp server 设置交换机为服务器模式<br> <br> hrswitch#vlan database 进入vlan配置模式<br> <br> hrswitch(vlan)#vtp domain cmlroot 设置vtp管理域名称cmlroot<br> <br> hrswitch(vlan)#vtp client 设置交换机为客户端模式<br> <br> misswitch#vlan database 进入vlan配置模式<br> <br> misswitch(vlan)#vtp domain cmlroot 设置vtp管理域名称cmlroot<br> <br> misswitch(vlan)#vtp client 设置交换机为客户端模式<br> <br> salesswitch#vlan database 进入vlan配置模式<br> <br> salesswitch(vlan)#vtp domain cmlroot 设置vtp管理域名称cmlroot<br> <br> salesswitch(vlan)#vtp client 设置交换机为客户端模式<br> <br> 注意:<br> 这里设置核心交换机为server模式是指允许在该交换机上创建、修改、删除vlan及其他一些对整个vtp域的配置参数,同步本vtp域中其他交换<br> 机传递来的最新的vlan信息;client模式是指本交换机不能创建、删除、修改vlan配置,也不能在nvram中存储vlan配置,但可同步由本vtp域中<br> 其他交换机传递来的vlan信息。<br> <br> 2、配置中继为了保证管理域能够覆盖所有的分支交换机,必须配置中继。<br> <br> Cisco交换机能够支持任何介质作为中继线,为了实现中继可使用其特有的isl标签。isl(inter-switch link)是一个在交换机之间、交换<br> 机与路由器之间及交换机与服务器之间传递多个vlan信息及vlan数据流的协议,通过在交换机直接相连的端口配置isl封装,即可跨越交换机进<br> 行整个网络的vlan分配和进行配置。<br> <br> 在核心交换机端配置如下:<br> <br> cmlroot(config)#interface gigabitethernet 2/1<br> <br> cmlroot(config-if)#switchport<br> <br> cmlroot(config-if)#switchport trunk encapsulation isl 配置中继协议<br> <br> cmlroot(config-if)#switchport mode trunk<br> <br> cmlroot(config)#interface gigabitethernet 2/2<br> <br> cmlroot(config-if)#switchport<br> <br> cmlroot(config-if)#switchport trunk encapsulation isl 配置中继协议<br> <br> cmlroot(config-if)#switchport mode trunk<br> <br> cmlroot(config)#interface gigabitethernet 2/3<br> <br> cmlroot(config-if)#switchport<br> <br> cmlroot(config-if)#switchport trunk encapsulation isl 配置中继协议<br> <br> cmlroot(config-if)#switchport mode trunk<br> <br> 在分支交换机端配置如下:<br> <br> hrswitch(config)#interface gigabitethernet 0/1<br> <br> hrswitch(config-if)#switchport mode trunk<br> <br> misswitch(config)#interface gigabitethernet 0/1<br> <br> misswitch(config-if)#switchport mode trunk<br> <br> salesswitch(config)#interface gigabitethernet 0/1<br> <br> salesswitch(config-if)#switchport mode trunk<br> <br> ……<br> <br> 此时,管理域算是设置完毕了。<br> <br> 3、创建vlan<br> <br> cmlroot(vlan)#vlan 10 name hrlan 创建了一个编号为10 名字为hrlan的 vlan<br> <br> cmlroot(vlan)#vlan 11 name mislan 创建了一个编号为11 名字为mislan的 vlan<br> <br> cmlroot(vlan)#vlan 12 name saleslan 创建了一个编号为12 名字为saleslan的 vlan<br> <br> ……<br> <br> 注意,这里的vlan是在核心交换机上建立的,其实,只要是在管理域中的任何一台vtp 属性为server的交换机上建立vlan,它就会通过vtp<br> 通告整个管理域中的所有的交换机。但如果要将具体的交换机端口划入某个vlan,就必须在该端口所属的交换机上进行设置。<br> <br> 4、将交换机端口划入vlan<br> <br> 例如,要将hrswitch、misswitch、salesswitch……分支交换机的端口1划入hrlan vlan,端口2划入mislan vlan,端口3划入saleslan<br> vlan……<br> <br> hrswitch(config)#interface fastethernet 0/1 配置端口1<br> <br> hrswitch(config-if)#switchport access vlan 10 归属hrlan vlan<br> <br> hrswitch(config)#interface fastethernet 0/2 配置端口2<br> <br> hrswitch(config-if)#switchport access vlan 11 归属mislan vlan<br> <br> hrswitch(config)#interface fastethernet 0/3 配置端口3<br> <br> hrswitch(config-if)#switchport access vlan 12 归属saleslan vlan<br> <br> misswitch(config)#interface fastethernet 0/1 配置端口1<br> <br> misswitch(config-if)#switchport access vlan 10 归属hrlan vlan<br> <br> misswitch(config)#interface fastethernet 0/2 配置端口2<br> <br> misswitch(config-if)#switchport access vlan 11 归属mislan vlan<br> <br> misswitch(config)#interface fastethernet 0/3 配置端口3<br> <br> misswitch(config-if)#switchport access vlan 12 归属saleslan vlan<br> <br> salesswitch(config)#interface fastethernet 0/1 配置端口1<br> <br> salesswitch(config-if)#switchport access vlan 10 归属hrlan vlan<br> <br> salesswitch(config)#interface fastethernet 0/2 配置端口2<br> <br> salesswitch(config-if)#switchport access vlan 11 归属mislan vlan<br> <br> salesswitch(config)#interface fastethernet 0/3 配置端口3<br> <br> salesswitch(config-if)#switchport access vlan 12 归属saleslan vlan<br> <br> ……<br> <br> 5、配置三层交换<br> <br> 到这里,vlan已经基本划分完毕。但是,vlan间如何实现三层(网络层)交换呢?这时就要给各vlan分配网络(ip)地址了。给vlan分配ip地址<br> 分两种情况,其一,给vlan所有的节点分配静态ip地址;其二,给vlan所有的节点分配动态ip地址(可参考DHCP配置部分)。<br> <br> 给vlan hrlan分配的接口ip地址为192.168.101.1/24,网络地址为:192.168.101.0,<br> <br> vlan mislan 分配的接口ip地址为192.168.102.1/24,网络地址为:192.168.102.0,<br> <br> vlan saleslan分配接口ip地址为192.168.34.1/24, 网络地址为192.168.34.0<br> <br> <br> <br> 给vlan所有的节点分配静态ip地址。<br> <br> 首先在核心交换机上分别设置各vlan的接口ip地址。核心交换机将vlan做为一种接口对待,就象路由器上的一样,如下所示:<br> <br> cmlroot(config)#interface vlan 10<br> <br> cmlroot(config-if)#ip address 192.168.101.254 255.255.255.0 vlan10接口ip<br> <br> cmlroot(config)#interface vlan 11<br> <br> cmlroot(config-if)#ip address 192.168.102.253 255.255.255.0 vlan11接口ip<br> <br> cmlroot(config)#interface vlan 12<br> <br> cmlroot(config-if)#ip address 192.168.34.254 255.255.255.0 vlan12接口ip<br> <br> ……<br> <br> 再在各接入vlan的计算机上设置与所属vlan的网络地址一致的ip地址,并且把默认网关设置为该vlan的接口地址。这样,所有的vlan也可以互访了。<br> <br> 目前我们的配置如下:<br> <br> interface Vlan1<br> ip address 192.168.100.254 255.255.255.0<br> interface Vlan2<br> ip address 192.168.5.253 255.255.255.0 sec<br> ip address 192.168.5.254 255.255.255.0<br> interface Vlan3<br> ip address 192.168.101.254 255.255.255.0<br> interface Vlan5<br> ip address 192.168.34.254 255.255.255.0<br> interface Vlan6<br> ip address 192.168.102.253 255.255.255.<br> <br> 四、 SPAN监听配置<br> 1.在全局配置模式下:<br> dh(config)# monitor session 1 source interface fastethernet0/24 rx|tx|all<br> 或dh(config)# monitor session 1 source interface vlan 1 -3 rx<br> 配置要监听的端口或vlan,其中对于端口可以监听进、出或双向的数据包,而监听vlan 则只能监听进入的数据包<br> 2.在全局配置模式下:<br> Sw(config)# monitor session 1 destination interface fastethernet0/23<br> 配置监听终端要接入交换机的端口(destination port)<br> 说明:一个monitor session 即为一个监听行为,source interface可以属与不同的vlan,在同一个monitor session中可以同时监听多个port<br> 注:目前我们的3550的Fa0/24为连接防火墙的接口,Fa0/23为连接IDS主机的接口<br> 五、 DHCP服务配置<br> 1. 在3550上配置DHCP服务<br> 各VLAN保留2-10的IP地址不分配置,例如:192.168.100.0的网段,保留192.168.100.2至192.168.100.10的IP地址段不分配. VLAN 3和VLAN 4 不允许互相访问,但都可以访问服务器所在的VLAN 2,<br> 默认访问控制列表的规则是拒绝所有包.<br> /*VLAN 2可用地址池和相应参数的配置,有几个VLAN要设几个地址池*/<br> Switch(Config)Ip Dhcp Pool IP01<br> /*设置可分配的子网*/<br> Switch(Config-pool)Network 192.168.100.0 255.255.255.0<br> /*设置DNS服务器*/<br> Switch(Config-pool)Dns-server 192.168.100.16<br> /*设置该子网的网关*/<br> Switch(Config-pool)Default-router 192.168.100.254<br> /*配置VLAN 3所用的地址池和相应参数*/<br> Switch(Config)Ip Dhcp Pool IP02<br> Switch(Config-pool)Network 192.168.101.0 255.255.255.0<br> Switch(Config-pool)Dns-server 192.168.100.16<br> Switch(Config-pool)Default-router 192.168.101.254<br> /*配置VLAN 4所用的地址池和相应参数*/<br> Switch(Config)Ip Dhcp Pool IP03<br> Switch(Config-pool)Network 192.168.102.0 255.255.255.0<br> Switch(Config-pool)Dns-server 192.168.100.16<br> Switch(Config-pool)Default-router 192.168.102.253<br> 第六步:设置DHCP保留不分配的地址<br> Switch(Config)Ip Dhcp Excluded-address 192.168.100.2 192.168.100.10<br> Switch(Config)Ip Dhcp Excluded-address 192.168.101.2 192.168.101.10<br> Switch(Config)Ip Dhcp Excluded-address 192.168.102.2 192.168.102.10<br> 第七步:启用路由<br> /*路由启用后,各VLAN间主机可互相访问*/<br> Switch(Config)Ip Routing<br> 第八步:配置访问控制列表<br> Switch(Config)access-list 103 permit ip 192.168.100.0 0.0.0.255 192.168.101.0 0.0.0.255<br> Switch(Config)access-list 103 permit ip 192.168.101.0 0.0.0.255 192.168.100.0 0.0.0.255<br> Switch(Config)access-list 103 permit udp any any eq bootpc<br> Switch(Config)access-list 103 permit udp any any eq tftp<br> Switch(Config)access-list 103 permit udp any eq bootpc any<br> Switch(Config)access-list 103 permit udp any eq tftp any<br> Switch(Config)access-list 104 permit ip 192.168.100.0 0.0.0.255 192.168.102.0 0.0.0.255<br> Switch(Config)access-list 104 permit ip 192.168.102.0 0.0.0.255 192.168.100.0 0.0.0.255<br> Switch(Config)access-list 104 permit udp any eq tftp any<br> Switch(Config)access-list 104 permit udp any eq bootpc any<br> Switch(Config)access-list 104 permit udp any eq bootpc any<br> Switch(Config)access-list 104 permit udp any eq tftp any<br> 第九步:应用访问控制列表<br> /*将访问控制列表应用到VLAN 3和VLAN 4,VLAN 2不需要*/<br> Switch(Config)Int Vlan 3<br> Switch(Config-vlan)ip access-group 103 out<br> Switch(Config-vlan)Int Vlan 4<br> Switch(Config-vlan)ip access-group 104 out<br> 第十步:结束并保存配置<br> Switch(Config-vlan)End<br> Switch#Copy Run Start<br> 2. C3550配置作为DHCP中继代理<br> <br> 3550配置dhcp,如果在每个vlan上仅配置一句“IP HELPER-ADDRESS DHCP服务器地址”后,客户机不能从DHCP服务器获取IP地址。 还需要启用DHCP中断功能:service dhcp 然后Ip Dhcp Relay Information Option即可<br> <br> 网络环境:一台3550EMI交换机,划分四个vlan,vlan1 为服务器所在网络,命名为server,IP地址段为192.168.100.0,子网掩码:255.255.255.0,网 关:192.168.100.254,域服务器为windows 20003 server,同时兼作DHCP服务器,DNS服务器,IP地址为192.168.100.14,vlan2 IP地址段为192.168.101.0,子网掩码:255.255.255.0,网关:192.168.101.254命名为work01,vlan3 IP地址段为192.168.102.0,子网掩码:255.255.255.0,网关:192.168.102.253. vlan4 IP地址段为192.168.5.0,子网掩码:255.255.255.0,网关:192.168.5.253.<br> 3550上端口1-8划到VLAN 2,端口9-16划分到VLAN 3,端口17-24划分到VLAN 4.<br> <br> 配置命令及步骤如下:<br> <br> 第一步:创建VLAN:<br> Switch>Vlan Database<br> Switch(Vlan)>Vlan 1 Name server<br> Switch(Vlan)>Vlan 2 Name work01<br> Switch(vlan)>Vlan 3 Name work02<br> Switch(vlan)>Vlan 4 Name work03<br> <br> <br> 第二步:启用DHCP中继代理:<br> /*关键一步,若缺少以下两条命令,在VLAN中使用“IP HELPER-ADDRESS DHCP服务器地址”指定DHCP服务器,客户机仍然不能获得IP地址*/<br> Switch>Enable<br> Switch#c onfig t<br> Switch(Config)Service Dhcp<br> Switch(Config)Ip Dhcp Relay Information Option<br> <br> 第三步:设置VLAN IP地址:<br> Switch(Config)>Int Vlan 1<br> Switch(Config-vlan)Ip Address 192.168.100.254 255.255.255.0<br> Switch(Config-vlan)No Shut<br> Switch(Config-vlan)Exit<br> 其它相同<br> /*注意:由于此时没有将端口分配置到VLAN2,3,4,所以各VLAN会DOWN掉,待将端口分配到各VLAN后,VLAN会起来*/<br> <br> 第四步:设置端口全局参数<br> Switch(Config)Interface Range Fa 0/1 - 24<br> Switch(Config-if-range)Switchport Mode Access<br> Switch(Config-if-range)Spanning-tree Portfast<br> <br> 第五步:将端口添加到VLAN2,3,4中<br> /*将端口1-8添加到VLAN 2*/<br> Switch(Config)Interface Range Fa 0/1 - 8<br> Switch(Config-if-range)Switchport Access Vlan 2<br> <br> /*将端口9-16添加到VLAN 3*/<br> Switch(Config)Interface Range Fa 0/9 - 16<br> Switch(Config-if-range)Switchport Access Vlan 3<br> <br> /*将端口17-24添加到VLAN 4*/<br> Switch(Config)Interface Range Fa 0/17 - 24<br> Switch(Config-if-range)Switchport Access Vlan 4<br> Switch(Config-if-range)Exit<br> <br> /*经过这一步后,各VLAN会起来*/<br> <br> 第六步:在VLAN3和4中设定DHCP服务器地址<br> /*VLAN 1中不须指定DHCP服务器地址*/<br> Switch(Config)Int Vlan 3<br> Switch(Config-vlan)Ip Helper-address 192.168.100.10<br> Switch(Config)Int Vlan 4<br> Switch(Config-vlan)Ip Helper-address 192.168.100.10<br> <br> 第七步:启用路由<br> /*路由启用后,各VLAN间主机可互相访问,若需进一步控制访问权限,则需应用到访问控制列表*/<br> Switch(Config)Ip Routing<br> <br> 第八步:结束并保存配置<br> Switch(Config-vlan)End<br> Switch#Copy Run Start<br> <br> 六、 流量控制<br> class-map match-all VOIP<br> match access-group 115<br> class-map match-any APP<br> match access-group 116<br> class-map match-any SHARE<br> match access-group 117<br> !<br> !<br> policy-map qos<br> class VOIP<br> set ip precedence 5<br> class APP<br> set ip precedence 3<br> class SHARE<br> police 2048000 1600000 exceed-action drop<br> class class-default<br> set ip precedence 0<br> 并在接口上应用:<br> interface FastEthernet0/48<br> description To Cisco Router 2610xm<br> no switchport<br> ip address 10.0.0.1 255.255.255.252<br> ip route-cache policy<br> duplex full<br> speed 10<br> service-policy input qos<br> 访问控制列表如下:<br> access-list 115 permit ip host 192.168.4.250 host 192.168.100.178<br> access-list 116 permit ip any host 192.168.100.9<br> access-list 116 permit ip any host 192.168.100.103<br> access-list 116 permit ip any host 192.168.100.104<br> access-list 116 permit ip any host 192.168.100.30<br> access-list 117 permit tcp any any eq 445<br> access-list 117 permit tcp any any eq 139<br> <br> 七、 策略路由<br> 对于192.168.101.0/24的网络,走ADSL上网<br> access-list 1 permit 192.168.101.0 0.0.0.255<br> route-map ADSL permit 10<br> match ip address 1<br> set ip default next-hop 192.168.100.249(ADSL路由器)
查看全文
发表于:2009-09-11 ┆
阅读(108)
┆
评论(0)
详细CSICO VTP协议配置及实验(图)
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CADMINI%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><o:smarttagtype namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="chsdate" downloadurl=""></o:smarttagtype><!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:PunctuationKerning/> <w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing> <w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery> <w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery> <w:ValidateAgainstSchemas/> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:Compatibility> <w:SpaceForUL/> <w:BalanceSingleByteDoubleByteWidth/> <w:DoNotLeaveBackslashAlone/> <w:ULTrailSpace/> <w:DoNotExpandShiftReturn/> <w:AdjustLineHeightInTable/> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> <w:DontGrowAutofit/> <w:UseFELayout/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" LatentStyleCount="156"> </w:LatentStyles> </xml><![endif]--><!--[if !mso]><object classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui></object> <style> st1\:*{behavior:url(#ieooui) } </style> <![endif]--><style> <!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"\@宋体"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; mso-pagination:none; font-size:10.5pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:宋体; mso-font-kerning:1.0pt;} /* Page Definitions */ @page {mso-page-border-surround-header:no; mso-page-border-surround-footer:no;} @page Section1 {size:595.3pt 841.9pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:42.55pt; mso-footer-margin:49.6pt; mso-paper-source:0; layout-grid:15.6pt;} div.Section1 {page:Section1;} --> </style><!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:普通表格; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;} </style> <![endif]--> <p class="MsoNormal"><span lang="EN-US"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: 宋体;">丫丫网络</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: 宋体;">本博客地址:</span><span lang="EN-US">http://hi.baidu.com/52hack<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: 宋体;">详细</span><span lang="EN-US">CSICO VTP</span><span style="font-family: 宋体;">协议配置及实验</span><span lang="EN-US">(</span><span style="font-family: 宋体;">图</span><span lang="EN-US">)<o:p></o:p></span></p> <p class="MsoNormal"><st1:chsdate year="2009" month="08" day="02" islunardate="False" isrocdate="False" w:st="on"><span lang="EN-US">2009</span><span style="font-family: 宋体;">年</span><span lang="EN-US">08</span><span style="font-family: 宋体;">月</span><span lang="EN-US">02</span><span style="font-family: 宋体;">日</span></st1:chsdate> <span style="font-family: 宋体;">星期日</span> <span style="font-family: 宋体;">上午</span><span lang="EN-US"> 01:16<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: 宋体;">详细</span><span lang="EN-US">CSICO VTP</span><span style="font-family: 宋体;">协议配置及实验</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: 宋体;">实验名称</span><span lang="EN-US"> VTP</span><span style="font-family: 宋体;">配置</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: 宋体;">实验目的</span><span lang="EN-US">: </span><span style="font-family: 宋体;">使其整个内部网络能够互相学习</span><span lang="EN-US">VTP</span><span style="font-family: 宋体;">协议实验要求:</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">1. </span><span style="font-family: 宋体;">保证</span><span lang="EN-US">4</span><span style="font-family: 宋体;">台交换机能够学习到</span><span lang="EN-US">VTP</span><span style="font-family: 宋体;">协议</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">2. </span><span style="font-family: 宋体;">将</span><span lang="EN-US">SW3</span><span style="font-family: 宋体;">交换机设置为透明模式且能够让其他交换机学习到</span><span lang="EN-US">VTP</span><span style="font-family: 宋体;">协议</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">3. </span><span style="font-family: 宋体;">将</span><span lang="EN-US">SW3</span><span style="font-family: 宋体;">设置与其他交换属于不同的域并且其他交换机能够学习</span><span lang="EN-US">VTP</span><span style="font-family: 宋体;">协议;</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: 宋体;">实验拓扑</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p><p align="left">实验拓扑</p> <img src="http://www.anqn.com/pic/3/a2009-7-30-734474.jpg" border="0"> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: 宋体;">实验步骤</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">S1</span><span style="font-family: 宋体;">配置:</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">Router>enable </span><span style="font-family: 宋体;">进入特权模式</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">Router#config terminal<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">Enter configuration commands, one per line. End with CNTL/Z.<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">Router(config)#hostname s1 </span><span style="font-family: 宋体;">命名为</span><span lang="EN-US">S1<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s1(config)#exit </span><span style="font-family: 宋体;">退出</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s1#vlan database </span><span style="font-family: 宋体;">进入配置</span><span lang="EN-US">VLAN</span><span style="font-family: 宋体;">模式</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s1(vlan)#vtp domain zixu vtp</span><span style="font-family: 宋体;">域名为</span><span lang="EN-US">zixu<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s1(vlan)#vtp server vtp</span><span style="font-family: 宋体;">模式为</span><span lang="EN-US">server<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s1(vlan)#vtp password zixu </span><span style="font-family: 宋体;">密码为</span><span lang="EN-US">zixu<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s1(vlan)#vtp v2-mode vtp</span><span style="font-family: 宋体;">版本号为</span><span lang="EN-US">2<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s1(vlan)#vtp pruning </span><span style="font-family: 宋体;">配置修建</span><span lang="EN-US">s1(vlan)#exit<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s1#config terminal </span><span style="font-family: 宋体;">全局模式</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s1(config)#interface f0/0 </span><span style="font-family: 宋体;">进入指定的端口号</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s1(config-if)#switchport mode trunk </span><span style="font-family: 宋体;">将</span><span lang="EN-US">0/0</span><span style="font-family: 宋体;">配置中继链路(</span><span lang="EN-US">trunk</span><span style="font-family: 宋体;">)</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s1(config-if)#no shut </span><span style="font-family: 宋体;">激活模式</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s1(config)#interface f0/14<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s1(config-if)#switchport mode trunk<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s1(config-if)#no shuts1(config-if)#exit<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s1(config)#interface f0/15<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s1(config-if)#switchport mode trunk<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s1(config-if)#no shut<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s1(config-if)#exits1(config)#exit<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s1#vlan database<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s1(vlan)#vlan 2 </span><span style="font-family: 宋体;">创建</span><span lang="EN-US">VLAN<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s1(vlan)#vlan 3<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s1(vlan)#vlan 4<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s1(vlan)#exit<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">S2</span><span style="font-family: 宋体;">配置:</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">Router>enable<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">Router#config terminal<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">Router(config)#hostname s2<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s2(config)#exits2#vlan database<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s2(vlan)#vtp domain zixu </span><span style="font-family: 宋体;">指定域名</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s2(vlan)#vtp client </span><span style="font-family: 宋体;">配置为客户机</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s2(vlan)#vtp password zixu </span><span style="font-family: 宋体;">制定密码</span><span lang="EN-US">zixu<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s2(vlan)#vtp v2-mode </span><span style="font-family: 宋体;">配置一致的版本</span><span lang="EN-US">V2<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s2(vlan)#exits2#config terminal<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s2(config)#interface f0/0<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s2(config-if)#switchport mode trunk<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s2(config-if)#no shut<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s2(config-if)#exit<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s2(config)#interface f0/14<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s2(config-if)#switchport mode trunk<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s2(config-if)#no shut<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s2(config)#interface f0/15<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s2(config-if)#switchport mode trunk<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s2(config-if)#no shut<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s2(config-if)#exit<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s2(config)#interface f0/14<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s2(config-if)#switchport mode trunk<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s2(config-if)#no shut<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s2(config-if)#exit<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s2(config)#exit<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s2#show vlan-switch<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">S3</span><span style="font-family: 宋体;">配置:</span><span lang="EN-US">Router>enableRouter#config terminal<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">Router(config)#hostname s3<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3(config)#exits3#vlan database<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3(vlan)#vtp domain zixu<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3(vlan)#vtp client<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3(vlan)#vtp password zixu<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3(vlan)#vtp v2-mode<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3(vlan)#exits3#config t<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3#config terminal<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3(config)#interface f0/14<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3(config-if)#switchport mode trunk<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3(config-if)#no shut<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3(config-if)#exit<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3(config)#interface f0/15<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3(config-if)#switchport mode trunk<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3(config-if)#no shut<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3(config-if)#no shutdown<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3(config-if)#exit<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3(config)#exit<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3#show vlan-switch<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">S4</span><span style="font-family: 宋体;">配置:</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">Router>enable<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">Router#config terminal<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">Router(config)#hostname s4<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s4(config)#exits4#vlan database<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s4(vlan)#vtp domain zixu<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s4(vlan)#vtp client<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s4(vlan)#vtp password zixu<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s4(vlan)#vtp v2-modes4(vlan)#exit<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s4#config terminal<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s4(config)#interface f0/14<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s4(config-if)#switchport mode trunk<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s4(config-if)#no shuts4(config-if)#exit<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s4(config)#interface f0/15<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s4(config-if)#switchport mode trunk<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s4(config-if)#no shut<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s4(config-if)#exit<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s4(config)#exit<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s4#show vlan-switch<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: 宋体;">实验要求</span><span lang="EN-US">2</span><span style="font-family: 宋体;">只需在</span><span lang="EN-US">S3</span><span style="font-family: 宋体;">交换机上做以下配置,其中在</span><span lang="EN-US">SW1</span><span style="font-family: 宋体;">交换机中创建</span><span lang="EN-US">vlan </span><span style="font-family: 宋体;">,在其他交换机中能否学习到;</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3#<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3#vlan database<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3(vlan)#vtp transparent </span><span style="font-family: 宋体;">透明模式</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3(vlan)#exit<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3#show vlan-switch </span><span style="font-family: 宋体;">查看</span><span lang="EN-US">vlan</span><span style="font-family: 宋体;">信息</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: 宋体;">实验要求</span><span lang="EN-US">3</span><span style="font-family: 宋体;">只需在</span><span lang="EN-US">S3</span><span style="font-family: 宋体;">交换机上做以下配置,其中在</span><span lang="EN-US">SW1</span><span style="font-family: 宋体;">交换机中创建</span><span lang="EN-US">vlan </span><span style="font-family: 宋体;">,在其他交换机中能否学习到;</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3#<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3#vlan database<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3(vlan)#vtp domain qien </span><span style="font-family: 宋体;">配置域名为</span><span lang="EN-US">qien<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">s3(vlan)#exits3#show vlan-switch<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: 宋体;">实验结果分析</span><span lang="EN-US">: </span><span style="font-family: 宋体;">通过以上三个要求及实验步骤完全可以实现学习</span><span lang="EN-US">VTP</span><span style="font-family: 宋体;">协议及配置</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: 宋体;">实验结论</span><span lang="EN-US">: Vtp</span><span style="font-family: 宋体;">协议分为三种模式:</span><span lang="EN-US">server</span><span style="font-family: 宋体;">、</span><span lang="EN-US">client</span><span style="font-family: 宋体;">、</span><span lang="EN-US">transparent<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">Server</span><span style="font-family: 宋体;">功能:可以创建、删除及修改</span><span lang="EN-US">vlan</span><span style="font-family: 宋体;">信息,可以学习及转发</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">Client</span><span style="font-family: 宋体;">功能:不可以创建、删除及修改</span><span lang="EN-US">vlan</span><span style="font-family: 宋体;">信息,可以学习及转发</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">Transparent</span><span style="font-family: 宋体;">功能:可以创建、删除及修改</span><span lang="EN-US">vlan</span><span style="font-family: 宋体;">信息(本地生效),可以转发,不学习其他</span><span lang="EN-US">VTP</span><span style="font-family: 宋体;">协议</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span lang="EN-US">VTP</span><span style="font-family: 宋体;">协议中有</span><span lang="EN-US">2</span><span style="font-family: 宋体;">种版本:</span><span lang="EN-US">v1</span><span style="font-family: 宋体;">、</span><span lang="EN-US">v2V2</span><span style="font-family: 宋体;">支持不同域可以转发其他交换机的信息</span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p> <p class="MsoNormal"><span style="font-family: 宋体;">查询结果</span></p><p class="MsoNormal">:</p> <p align="left"><img src="http://www.anqn.com/pic/3/a2009-7-30-580466.jpg" border="0"></p> <p align="left"><img src="http://www.anqn.com/pic/3/a2009-7-30-621456.jpg" border="0"><br><br> <br><br> <img src="http://www.anqn.com/pic/3/a2009-7-30-360496.jpg" border="0"><br><br> <br><br> <img src="http://www.anqn.com/pic/3/a2009-7-30-371477.jpg" border="0"></p><p class="MsoNormal"><br><span style="font-family: 宋体;"></span><span lang="EN-US"><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span style="font-family: 宋体;">上一篇:保护账号安全</span> <span style="font-family: 宋体;">巨盾网游安全盾</span><span lang="EN-US">(</span><span style="font-family: 宋体;">图</span><span lang="EN-US">...<span style=""> </span></span><span style="font-family: 宋体;">下一篇:浅谈</span><span lang="EN-US">Eval</span><span style="font-family: 宋体;">解密之——工具篇</span><span lang="EN-US">2(</span><span style="font-family: 宋体;">图</span><span lang="EN-US">)<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><span style=""> </span><o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
查看全文
发表于:2009-09-11 ┆
阅读(121)
┆
评论(0)
微软Project项目管理软件简介
<DIV> <DIV class=article id=article align=left> <H1 class=subject style="WORD-WRAP: break-word"><B><IMG src="http://img1.51cto.com/images/orig_1.gif" border=0> 微软Project项目管理软件简介 <A href="http://blog.51cto.com/artcommend" target=_blank><IMG src="http://img1.51cto.com/images/tuijian_1.gif" border=0></A></B> </H1> <HR style="BORDER-RIGHT: #eeeeee 1px solid; BORDER-TOP: #eeeeee 1px solid; BORDER-LEFT: #eeeeee 1px solid; BORDER-BOTTOM: #eeeeee 1px solid" align=center width="94%" SIZE=1> <DIV> <DIV class=posttime><SMALL><FONT size=2>2007-07-15 01:24:26</FONT></SMALL></DIV> <DIV style="PADDING-LEFT: 20px; WIDTH: 94%"> 标签:<SPAN style="COLOR: #aaaaaa"><A class=operlink href="http://blog.51cto.com/tagindex.php?keyword=%CE%A2%C8%ED" target=_blank><FONT color=#0000ff>微软</FONT></A> <A class=operlink href="http://blog.51cto.com/tagindex.php?keyword=%CF%EE%C4%BF%B9%DC%C0%ED" target=_blank><FONT color=#0000ff>项目管理</FONT></A> <A class=operlink href="http://blog.51cto.com/tagindex.php?keyword=%BC%F2%BD%E9" target=_blank><FONT color=#0000ff>简介</FONT></A> <A class=operlink href="http://blog.51cto.com/tagindex.php?keyword=Project" target=_blank><FONT color=#800080>Project</FONT></A></SPAN> [<A class=operlink onclick="javascript:dfanologin();return false;" href="http://dingwei.blog.51cto.com/#"><FONT color=#0000ff>推送到技术圈</FONT></A>] <BR><BR></DIV></DIV> <DIV> <TABLE id=content style="TABLE-LAYOUT: fixed; WIDTH: 650px" cellSpacing=10 cellPadding=0 width=650 border=0> <TBODY> <TR> <TD> <DIV class=copy><STRONG>版权声明:</STRONG>原创作品,允许转载,转载时请务必以超链接形式标明文章 <A style="TEXT-DECORATION: underline" href="http://dingwei.blog.51cto.com/194576/34135" target=_blank><FONT color=#800080>原始出处</FONT></A> 、作者信息和本声明。否则将追究法律责任。<A href="http://dingwei.blog.51cto.com/194576/34135"><FONT color=#800080>http://dingwei.blog.51cto.com/194576/34135</FONT></A></DIV></TD></TR> <TR> <TD> <DIV style="FONT-SIZE: 10pt; WORD-BREAK: break-all; POSITION: relative; WORD-WRAP: break-word"> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt" align=left><FONT face=Arial color=#800080 size=3><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri"><IMG style="WIDTH: 219px; HEIGHT: 227px" onclick='window.open("http://blog.51cto.com/viewpic.php?refimg=" + this.src)' height=214 alt="" src="http://img1.51cto.com/attachment/200707/200707151184434418008.jpg" width=213 border=0></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt" align=left><FONT size=3><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: calibri; mso-hansi-font-family: calibri"> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><FONT face=Arial><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">有些朋友可能对微<FONT face=Arial>软的Project产品比较陌生,今天我来做个简要介绍。</FONT></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><FONT face=Arial><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">微软的</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif>Project</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">软件是</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif>Office</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">办公软件的组件之一,是一个通用的项目管理工具软件,它集成了国际上许多现代的、成熟的管理理念和管理方法,能够帮助项目经理们高效准确的定义和管理各类项目。</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><FONT face=Arial><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">根据美国项目管理协会的定义,项目的管理过程被划分成</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif>5</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">个阶段(过程组)。这些过程组是相互联系的:一个过程组的输出可能是另外一个过程组的输入,并且这些过程有可能是连续的。微软的</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif>Project</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">软件能够在这</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif>5</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">个阶段中分别发挥重要的作用:</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><B><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><FONT face=Arial></FONT></SPAN></B> </DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><FONT face=Arial><B><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif>1</SPAN></B><B><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">、建议阶段:</SPAN></B><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; mso-list: l0 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Arial><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体"><SPAN style="mso-list: ignore">•<SPAN style="FONT-WEIGHT: normal; FONT-SIZE: 7pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal" Times New Roman> </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">确立项目需求和目标</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; mso-list: l0 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Arial><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体"><SPAN style="mso-list: ignore">•<SPAN style="FONT-WEIGHT: normal; FONT-SIZE: 7pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal" Times New Roman> </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">定义项目的基本信息,包括工期和预算</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; mso-list: l0 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Arial><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体"><SPAN style="mso-list: ignore">•<SPAN style="FONT-WEIGHT: normal; FONT-SIZE: 7pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal" Times New Roman> </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">预约人力资源和材料资源</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; mso-list: l0 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Arial><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体"><SPAN style="mso-list: ignore">•<SPAN style="FONT-WEIGHT: normal; FONT-SIZE: 7pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal" Times New Roman> </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">检查项目的全景,获得干系人的批准</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><FONT face=Arial><B><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif>2</SPAN></B><B><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">、启动和计划阶段:</SPAN></B><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; mso-list: l0 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Arial><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体"><SPAN style="mso-list: ignore">•<SPAN style="FONT-WEIGHT: normal; FONT-SIZE: 7pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal" Times New Roman> </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">确定项目的里程碑、可交付物、任务、范围</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; mso-list: l0 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Arial><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体"><SPAN style="mso-list: ignore">•<SPAN style="FONT-WEIGHT: normal; FONT-SIZE: 7pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal" Times New Roman> </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">开发和调整项目进度计划</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; mso-list: l0 level2 lfo1; tab-stops: list 72.0pt"><FONT face=Arial><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体"><SPAN style="mso-list: ignore">•<SPAN style="FONT-WEIGHT: normal; FONT-SIZE: 7pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal" Times New Roman> </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">确定技能、设备、材料的需求</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><FONT face=Arial><B><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif>3</SPAN></B><B><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">、实施阶段:</SPAN></B><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; mso-list: l1 level2 lfo2; tab-stops: list 72.0pt"><FONT face=Arial><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体"><SPAN style="mso-list: ignore">•<SPAN style="FONT-WEIGHT: normal; FONT-SIZE: 7pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal" Times New Roman> </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">将资源分配到项目的各项任务中</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; mso-list: l1 level2 lfo2; tab-stops: list 72.0pt"><FONT face=Arial><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体"><SPAN style="mso-list: ignore">•<SPAN style="FONT-WEIGHT: normal; FONT-SIZE: 7pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal" Times New Roman> </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">保存比较基准,跟踪任务的进度</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; mso-list: l1 level2 lfo2; tab-stops: list 72.0pt"><FONT face=Arial><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体"><SPAN style="mso-list: ignore">•<SPAN style="FONT-WEIGHT: normal; FONT-SIZE: 7pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal" Times New Roman> </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">调整计划以适应工期和预算的变更</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><FONT face=Arial><B><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif>4</SPAN></B><B><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">、控制阶段:</SPAN></B><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; mso-list: l3 level2 lfo3; tab-stops: list 72.0pt"><FONT face=Arial><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体"><SPAN style="mso-list: ignore">•<SPAN style="FONT-WEIGHT: normal; FONT-SIZE: 7pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal" Times New Roman> </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">分析项目信息</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; mso-list: l3 level2 lfo3; tab-stops: list 72.0pt"><FONT face=Arial><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体"><SPAN style="mso-list: ignore">•<SPAN style="FONT-WEIGHT: normal; FONT-SIZE: 7pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal" Times New Roman> </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">沟通和报告</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; mso-list: l3 level2 lfo3; tab-stops: list 72.0pt"><FONT face=Arial><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体"><SPAN style="mso-list: ignore">•<SPAN style="FONT-WEIGHT: normal; FONT-SIZE: 7pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal" Times New Roman> </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">生成报告,展示项目进展、成本和资源的利用状况</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><FONT face=Arial><B><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif>5</SPAN></B><B><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">、收尾阶段:</SPAN></B><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; mso-list: l2 level2 lfo4; tab-stops: list 72.0pt"><FONT face=Arial><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体"><SPAN style="mso-list: ignore">•<SPAN style="FONT-WEIGHT: normal; FONT-SIZE: 7pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal" Times New Roman> </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">总结经验教训</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; mso-list: l2 level2 lfo4; tab-stops: list 72.0pt"><FONT face=Arial><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体"><SPAN style="mso-list: ignore">•<SPAN style="FONT-WEIGHT: normal; FONT-SIZE: 7pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal" Times New Roman> </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">创建项目模板</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; mso-list: l2 level2 lfo4; tab-stops: list 72.0pt"><FONT face=Arial><SPAN lang=EN-US style="FONT-FAMILY: 宋体; mso-bidi-font-family: 宋体"><SPAN style="mso-list: ignore">•<SPAN style="FONT-WEIGHT: normal; FONT-SIZE: 7pt; LINE-HEIGHT: normal; FONT-STYLE: normal; FONT-VARIANT: normal" Times New Roman> </SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">整理与归档项目文件</SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt 72pt; TEXT-INDENT: -18pt; mso-list: l2 level2 lfo4; tab-stops: list 72.0pt"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial"><FONT face=Arial></FONT></SPAN> </DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><FONT face=Arial><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">总之,使用</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif>Project</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">软件,我们不仅可以创建项目、定义分层任务,使项目管理者从大量烦琐的计算绘图中解脱出来,而且还可以设置企业资源和项目成本等基础信息,轻松实现资源的调度和任务的分配。在项目实施阶段,</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif>Project</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-bidi-font-family: arial">能够跟踪和分析项目进度,分析、预测和控制项目成本,以保证项目如期顺利完成,资源得到有效利用,提高经济效益。</SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><FONT face=Arial></FONT></SPAN> </DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><FONT face=Arial><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif>Project</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-hansi-font-family: arial; mso-bidi-font-family: arial">产品可以分为以下几个不同的版本:</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face=Arial><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><FONT color=#4169e1><STRONG><EM>Project Standard</EM></STRONG></FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-hansi-font-family: arial; mso-bidi-font-family: arial"><FONT color=#4169e1><STRONG><EM>:</EM></STRONG></FONT>标准版,只能用于桌面端,适用于独立进行项目管理的</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif>PM</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-hansi-font-family: arial; mso-bidi-font-family: arial">。</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face=Arial><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><FONT color=#4169e1><STRONG><EM>Project Professional</EM></STRONG></FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-hansi-font-family: arial; mso-bidi-font-family: arial"><FONT color=#4169e1><STRONG><EM>:</EM></STRONG></FONT>专业版,可以和后台的服务器相连接,将项目信息发布到服务器上,供企业中的负责人和项目组相关成员查看和协作。</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT face=Arial><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><FONT color=#4169e1><STRONG><EM>Project Server</EM></STRONG></FONT></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-hansi-font-family: arial; mso-bidi-font-family: arial"><FONT color=#4169e1><STRONG><EM>:</EM></STRONG></FONT>服务器版,安装在企业中的项目管理后台服务器上,存储项目管理信息,实现用户账户和权限的管理,是微软企业项目管理解决方案的基础和核心组件,需要</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif>Windows SharePoint Service</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-hansi-font-family: arial; mso-bidi-font-family: arial">和</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif>SQL Server</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-hansi-font-family: arial; mso-bidi-font-family: arial">做底层支持。</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><FONT face=Arial><EM><FONT color=#4169e1><STRONG><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif>Project Web Access</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-hansi-font-family: arial; mso-bidi-font-family: arial">:</SPAN></STRONG></FONT></EM><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif>Web</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-hansi-font-family: arial; mso-bidi-font-family: arial">的方式访问项目站点,了解任务分配情况,分享项目相关文档,在线更新进度状态,提出问题和风险,实现沟通和协作,适用于广大的项目组成员,以及企业中的项目发起人、资源经理和</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif>IT</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-hansi-font-family: arial; mso-bidi-font-family: arial">部门员工。</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><FONT face=Arial><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-hansi-font-family: arial; mso-bidi-font-family: arial">其中,</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif>Project Professional</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-hansi-font-family: arial; mso-bidi-font-family: arial">、</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif>Project Server</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-hansi-font-family: arial; mso-bidi-font-family: arial">和</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif>Project Web Access</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-hansi-font-family: arial; mso-bidi-font-family: arial">结合在一起,就组成了<FONT color=#ff0000>微软企业项目管理解决方案</FONT>(</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif>EPM</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-hansi-font-family: arial; mso-bidi-font-family: arial">)。</SPAN><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif><o:p></o:p></SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><FONT face=Arial><SPAN lang=EN-US style="FONT-FAMILY: " Arial?,?sans-serif>EPM</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-hansi-font-family: arial; mso-bidi-font-family: arial">的组成和结构可以参考下图:</SPAN></FONT></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-hansi-font-family: arial; mso-bidi-font-family: arial"><FONT face=Arial><IMG onclick='window.open("http://blog.51cto.com/viewpic.php?refimg=" + this.src)' alt="" src="http://img1.51cto.com/attachment/200707/200707151184436438932.jpg" border=0></FONT></SPAN></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-hansi-font-family: arial; mso-bidi-font-family: arial"><FONT face=Arial></FONT></SPAN> </DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-hansi-font-family: arial; mso-bidi-font-family: arial"><EM><FONT face="Times New Roman"><STRONG>PS:</STRONG> 有关Project Server的安装和部署过程,请参见我的文章:</FONT></EM></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-hansi-font-family: arial; mso-bidi-font-family: arial"><A href="http://dingwei.blog.51cto.com/194576/39513" target=_blank><FONT style="BACKGROUND-COLOR: #ffff00" face="Times New Roman" color=#ff0000>Project Server 2007安装配置过程图解</FONT></A></SPAN></DIV> <DIV class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: arial; mso-hansi-font-family: arial; mso-bidi-font-family: arial"><FONT face=Arial></FONT></SPAN> </DIV></SPAN></FONT></DIV> <P>本文出自 “<A href="http://dingwei.blog.51cto.com/"><FONT color=#0000ff>阿拉丁</FONT></A>” 博客,请务必保留此出处<A href="http://dingwei.blog.51cto.com/194576/34135"><FONT color=#800080>http://dingwei.blog.51cto.com/194576/34135</FONT></A></P><A class=hidden href="http://dingwei.blog.51cto.com/194576/34135"><FONT color=#800080>本文出自 51CTO.COM技术博客</FONT></A></DIV></TD></TR></TBODY></TABLE></DIV></DIV><BR></DIV>
查看全文
发表于:2009-06-05 ┆
阅读(154)
┆
评论(0)
nagios安装配置笔记
<DIV>nagios安装配置笔记<BR>作为系统管理员,我最担心那些重要的在线系统在我不知情的情况下停机或停止网络服务,而且那些发生故障的服务或主机有时候可能要好长一段时间才知道(这种情况多发生在节假日),只要一到节假日,很多系统管理员就紧张不已。要改变这种被动局面,我在这里推荐网络监控软件Nagios,个人认为他最大的好处是能够发故障报警短信—只要Nagios监控的对象发生故障,系统就会自动发送短信到手机上。(其实最重要的省下了写shell的功夫,尤其对我这种对正则比较头疼的人)<BR>下面摘录Nagios官方网站的描述:<BR>Nagios is an open source host, service and network monitoring program. Who uses it? Lots of people, including many big companies and organizations:Nagios是个用来监控主机、服务和网络的开放源码软件,很多大的公司或组织都在使用他。<BR>****配置前的准备工作******<BR>***最主要的工作是创建nagios用户及其属组,让nagios的运行用户为nagios而不是root。再把目录/usr/local/nagios的属主配置为nagios,以确保系统的安全。Nagios能够以root用户运行,但并不推荐这样做。用下面的步骤来完成上述过程:<BR>***添加系统帐户nagios: useradd nagios 就很容易的把用户和组nagios添加到系统。有的类型的linux发行版添加用户和组要麻烦一些-需要要添加组,然后再执行 useradd –g nagios nagios这样的操作。在实际的运用场景,nagios用户并没有必要作为系统用户来登录linux系统,因此能够不必配置nagios的用户密码,甚至能够把nagios用户的登录shell配置成/bin/false(usermod -s /bin/nologin nagios)<BR>***更改目录属组:chown –R nagios.nagios /usr/local/nagios 。请注意,有的unix/linux的版本用户和属组分隔符号不是“.”,可能会是这样的形式 chown –R nagios:nagios /usr/local/nagios 。<BR>(一) 安装所需软件<BR>1:安装nagios-2.9.tar.gz<BR> 解压 tar zxvf nagios-2.9.tar.gz<BR> 配置 cd nagiso-2.9 ./configure --prefix=/usr/local/nagios<BR> 编译 make all<BR> useradd nagios<BR> 安装步骤:make install 安装主要的程式、CGI及HTML文档<BR> make install-commandmode 给外部命令访问nagios配置文档的权限<BR> make install-config 把配置文档的例子复制到nagios的安装目录<BR> make install-init 把nagios做成一个运行脚本,使nagios随系统开机启动<BR>验证:转换目录到安装路径(这里是/usr/local/nagios),看是否存在 etc、bin、 sbin、 share、 var这五个目录,假如存在则能够表明程式被正确的安装到系统了。后表是五个目录功能的简要说明:<BR> bin -- Nagios执行程式所在目录,这个目录只有一个文档nagios <BR> etc -- Nagios配置文档位置,初始安装完后,只有几个*.cfg-sample文档 <BR> sbin -- Nagios Cgi文档所在目录,也就是执行外部命令所需文档所在的目录 <BR> Share --Nagios网页文档所在的目录 <BR> Var -- Nagios日志文档、spid 等文档所在的目录 <BR>2:安装nagios的插件<BR> 没有插件,nagios将什么作用也没有,插件也是nagios扩展功能的强大武器。注意:插件和nagios之间的版本关联不大,不一定非得用nagios-plugins-1.4.5这个版本。下载完成后,安装他是很简单的:先执行配置 ./configure –prefix=/usr/local/nagios 接着编译安装 make ; make install即可。这里需要说明一下的是在配置过程指定的安装路径是/usr/local/nagios,而不是/usr/local/nagios-plus,安装完成后,将在目录/usr/local/nagios生成目录libexec(里面有很多文档),这正是nagios所需要的。<BR> –enable-redhat-pthread-workaround 这个参数能够在出现checking for redhat spopen problem… 错误时使用<BR>3:安装web服务器apache<BR> tar zxvf httpd-2.2.0.tar.gz ;cd httpd2.2.0 ;./configure --prefix=/usr/local/apache<BR> ./usr/local/apache/bin/apache1 -t 检查apache是否正确安装<BR>4: sendmail。看看sendmail是否正常运行?我们需要使用sendmail来发送故障报警信息,所以这个包必须能够正常工作。Sendmail分为服务器和客户端两部分,有2种发送报警邮件的方式:<BR>(1)nagios所在的机器通过sendmail客户端程式把邮件发送到专门的邮件服务器,再由邮件服务器把消息发送到用户邮箱。<BR>(2)邮件客户端和服务器端就用nagios所在系统sendmail。第一种方式用起来很规范,但更麻烦,例如需要做地址解析、修改邮件服务器的配置;另外更有一个问题-他还依赖别的系统,增加了故障点和复杂度。第二种方法十分简单,只需启动sendmail服务即可,而且他不再依赖于别的系统和服务。在我工作的实际场景,这两种方法都使用,用专门的邮件服务器会有发送延迟的情况(因为邮件服务器要处理很多其他用户邮件的收发);而直接用sendmail做服务器和客户端就异常简单和方便了。很幸运的是,几乎任何的linux/unix发行版都默认安装sendmail,费了这么多笔墨,其实就做一个动作-把sendmail服务运行起来。<BR>手机短信发送工具。假如公司是sp,有自己的短信通道,直接把发送短信的客户端程式sms_send拷贝到目录/usr/local/bin/下。假如没有短信下发的网关通道,那怎么办呢?网络上有很多短信发送的客户端程式,很有名的就是smsclient,把他下载下来,解包后安装。不要忘记购买手机modem和手机卡,modem只支持SIM卡而不支持cdma。安装完smsclient软件和硬件modem后,测试一下是否正常。假如没有modem又怎么办?办法还是有的:让您的手机号能够接受邮件,这需要您去营业厅开通这项功能。短信报警功能是最有用的功能,我们不可能成天盯着监控屏幕,也不可能成天接受电子邮件,但我们的手机却能够24小时在线,只要被监控对象发生故障,马上就能够收到故障报警短信。以前,我很怕放长假,因为最担心关键的设备或服务在假期出故障而自己不知道,所以放假就变成了值班;想必很多系统管理员都有类似的经历。在我动手部署nagios以前,曾在网上搜索关于nagios配置的文章,发现绝大部分都没有介绍使用手机短信这个方便的功能,真是遗憾呀!再次,强烈建议启用nagios的短信故障报警功能。<BR>5:配置:(分为两个部分)<BR>一、apache 配置<BR>我们分两个步骤来完成这个配置。第一步是修改apache的配置文档httpd.conf,这里的文档路径是/usr/local/apache/conf/httpd.conf 。把apache的运行用户和运行组改成nagios,往下把下面的行追加到文档httpd.conf的末尾:<BR>#setting for nagios<BR>ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin<BR> //Cgi文档所在目录<BR> AuthType Basic<BR> Options ExecCGI<BR> AllowOverride None<BR> Order allow,deny<BR> Allow from all<BR> AuthName "Nagios Access"<BR> AuthUserFile /usr/local/nagios/etc/htpasswd //验证文档路径<BR> Require valid-user<BR>Alias /nagios /usr/local/nagios/share<BR> //nagios页面文档目录<BR> AuthType Basic<BR> Options None<BR> AllowOverride None<BR> Order allow,deny<BR> Allow from all<BR> AuthName "nagios Access"<BR> AuthUserFile /usr/local/nagios/etc/htpasswd //验证文档路径<BR> Require valid-user<BR>上述文本块的作用是对nagios的目录进行用户验证,只有合法的授权用户才能够访问nagios的页面文档。第二步是生成用户验证文档:就会生成web的合法访问用户sery;命令交互执行,需要输入2次密码,然后就在文档/usr/local/nagios/etc/htpasswd写入一行-第一个字段是刚生成的用户名,第二个是加密后的密码,假如还要添加更多的用户,执行命令 htpasswd 就无需选项 “-c”,否则就会覆盖任何已生成的行。<BR>配置完成后,执行/usr/local/apache/bin/apachctl –t 检查apache配置文档是否有语法错误,无误后用/usr/local/apache/bin/apachctl start & 把apache启动,然后从另外的机器的浏览器输入nagios 的访问地址(如:<BR><A href="http://ip/nagios">http://ip/nagios</A><BR>),假如正常,将出现登录验证窗口等待用户输入,输入用htpasswd创建的用户名和密码测试一下,没有问题的话,进行下一步配置操作.<BR>二、nagios配置<BR>刚安装完成的nagios,其配置文档的目录是/usr/local/nagios/etc,先把这些文档改名,如 cgi.cfg-sample改成cgi.cfg ,用命令cp cgi.cfg-sample cgi.cfg …依样把余下的几个*.cfg-sample都复制成*.cfg文档。从nagios2.6版开始,不用修改配置文档localhost.cfg就能够直接运行../bin/nagios –v nagios.cfg验证程式是否能正常运行(nagios2.5及以前版本的最小运行的配置文档是minimal.cfg,但需要修改这个文档多处才能验证成功)。当然,我们不能指望这个最小的配置文档能够满足实际的需求,因此,需要对现有的配置文档进行修改,其次增加自定义的一些配置文档。这里,我们分两步进行:先修改配置文档再增添自定义文档。<BR>1、修改配置文档<BR>Nagios的主配置文档是nagios.cfg,我们就从这个文档开始修改。用vi编辑nagios.cfg,注释行 #cfg_file=/usr/local/nagios/etc/localhost.cfg,然后把下面几行的注释去掉:<BR>cfg_file=/usr/local/nagios/etc/contactgroups.cfg //联系组配置文档路径<BR>cfg_file=/usr/local/nagios/etc/contacts.cfg //联系人配置文档路径<BR>cfg_file=/usr/local/nagios/etc/hostgroups.cfg //主机组配置文档路径<BR>cfg_file=/usr/local/nagios/etc/hosts.cfg //主机配置文档路径<BR>cfg_file=/usr/local/nagios/etc/services.cfg //服务配置文档路径<BR>cfg_file=/usr/local/nagios/etc/timeperiods.cfg //监控时段配置文档路径<BR>改check_external_commands=0为check_external_commands=1 这行的作用是允许执行在web界面下重启nagios、停止主机/服务检查等操作。把command_check_interval的值从默认的1改成command_check_interval=10s(根据自己的情况定这个命令检查时间间隔,不要太长也不要太短)。主配置文档要改的基本上就是这些,通过上面的修改,发现/usr/local/nagios/etc并没有文档hosts.cfg等一干文档,怎么办?稍后手动创建他们。 <BR>第二个要修改的配置文档是cgi.cfg,他的作用是控制相关cgi脚本。先确保use_authentication=1。曾看过不少的文章,都是建议把use_authentication的值配置成”0”来取消验证,这是个十分糟糕的想法。接下来修改default_user_name=sery ,再后面的修改在下表列出:<BR>authorized_for_system_information=nagiosadmin,sery <BR>authorized_for_configuration_information=nagiosadmin,sery<BR>authorized_for_system_commands=nagiosadmin,sery //多个用户之间用逗号隔开<BR>authorized_for_all_services=nagiosadmin,sery<BR>authorized_for_all_hosts=nagiosadmin,sery<BR>authorized_for_all_service_commands=nagiosadmin,sery<BR>authorized_for_all_host_commands=nagiosadmin,sery<BR>那么上述用户名打那里来的呢?是执行命令 /usr/local/apache/bin/htpasswd –c /usr/local/nagios/etc/htpasswd sery 所生成的,这个要注意,不能随便加没有存在的验证用户,为了安全起见,不要添加过多的验证用户。<BR>第3个修改的配置文档是misccommands.cfg,这个文档的主要功能是用来发送报警短信和报警邮件,对其的修改如下所示:<BR>#host-notify-by-sms //发送短信报警<BR>define command {<BR> command_name host-notify-by-sms<BR> command_line /usr/local/bin/sms_send "Host $HOSTSTATE$alert for $HOSTNAME$! on '$DATETIME$' " $CONTACTPAGER$<BR> }<BR>#service notify by sms //发送短信报警<BR>define command {<BR> command_name service-notify-by-sms<BR> command_line /usr/local/bin/sms_send "'$HOSTADDRESS$'$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$" $CONTACTPAGER$<BR> }<BR>主机和服务的邮件报警通知已在文档中,不须更改。也能够把短信和邮件报警通知这些配置块写到文档commands.cfg中,效果是相同的。<BR>本人的环境是发送特定的标题到特定的邮箱,邮箱就会push到手机,所以,就只需要在command.cfg下面修改相应的'notify-by-email'和'host-notify-by-email'就行<BR>2、增加新的配置文档<BR>先创建简单的配置文档timeperiods.cfg,其内容如下:<BR>define timeperiod{<BR> timeperiod_name 24x7<BR> alias 24 Hours A Day, 7 Days A Week<BR> sunday 00:00-24:00<BR> monday 00:00-24:00<BR> tuesday 00:00-24:00<BR> wednesday 00:00-24:00<BR> thursday 00:00-24:00<BR> friday 00:00-24:00<BR> saturday 00:00-24:00<BR> }<BR>第二个手动创建的配置文档是 contacts.cfg,其格式如下:<BR># In this simple config file, a single contact will receive all alerts.<BR>define contact{<BR> contact_name nagiosadmin<BR> alias nagiosadmin<BR> service_notification_period 24x7<BR> host_notification_period 24x7<BR> service_notification_options w,u,c,r<BR> host_notification_options d,r<BR> service_notification_commands notify-by-email,host-notify-by-sms 假如是通过别的方式报警能够添加 <BR> host_notification_commands host-notify-by-email,host-notify-by-sms<BR> email <BR><A href="mailto:kernel@love21cn.com">kernel@love21cn.com</A><BR> pager 136811234567<BR> }<BR>define contact {<BR> contact_name sery<BR> alias system administrator<BR> service_notification_period 24x7<BR> host_notification_period 24x7<BR> service_notification_options w,u,c,r<BR> host_notification_options d,u,r<BR> service_notification_commands notify-by-email<BR> host_notification_commands host-notify-by-email<BR> email <BR><A href="mailto:haishi24@163.com">haishi24@163.com</A><BR> pager 13312345678<BR> }<BR>上面的文档定义了2个联系人,假如有更多联系人的话,照这个格式在后面追加即可。服务通知选项(service_notification_options)和主机通知选项(host_notification_options)的几个选项在这里说明一下:w-warning , u-unknown,c-critical,r-recovery;d-down,u-unreachable,注意一下,主机报警和服务报警有些差异。<BR>紧接着的第三个手动创建的配置文档是contactgroups.cfg文档,这个文档是依照上一个文档contacts.cfg来的,contactgroups文档相对简单一些,其格式如下:<BR>define contactgroup {<BR> contactgroup_name nagios <BR> alias system administrator group<BR> members nagiosadmin,sery <BR> }<BR>多个成员之间用逗号做分界符,假如有更多的联系组,就依相同的格式在文档中追加余下的组。<BR>配置文档hosts.cfg:<BR>#define monitor host<BR>#################################################################<BR># HOSTS #<BR>#################################################################<BR># Generic host definition template - This is NOT a real host, just a template!(模版)<BR>define host{<BR> name linux-server<BR> notifications_enabled 1<BR> event_handler_enabled 1<BR> flap_detection_enabled 1<BR> failure_prediction_enabled 1<BR> process_perf_data 1<BR> retain_status_information 1<BR> retain_nonstatus_information 1<BR> notification_period 24x7<BR> register 0<BR> }<BR>#################################################################<BR># web17 #<BR>#################################################################<BR>define host{<BR> use linux-server (上面模版定义的主机名)<BR> host_name web17<BR> alias web17<BR> address 10.0.0.74<BR> check_command check-host-alive<BR> max_check_attempts 5<BR> notification_interval 60<BR> notification_period 24x7<BR> contact_groups nagios<BR> notification_options d,u,r<BR> }<BR>更多的主机依此格式逐个追加进来。为了以后维护方便,尽可能在文档中使用易读的注释(如本例# web17 #)。<BR>配置文档services.cfg:<BR>#service definition<BR>##############################################################<BR># SERVICES #<BR>##############################################################<BR># Generic service definition template - This is NOT a real service, just a template!(模版)<BR>define service{<BR> name linux-service<BR> active_checks_enabled 1<BR> passive_checks_enabled 1<BR> parallelize_check 1<BR> obsess_over_service 1<BR> check_freshness 0<BR> notifications_enabled 1<BR> event_handler_enabled 1<BR> flap_detection_enabled 1<BR> failure_prediction_enabled 1<BR> process_perf_data 1<BR> retain_status_information 1<BR> retain_nonstatus_information 1<BR> is_volatile 0<BR> register 0<BR> }<BR>##############################################################<BR># web17 #<BR>##############################################################<BR># Define a service to "ping" the remote machine<BR>define service{<BR> use linux-service<BR> host_name web17<BR> service_description CURRENT LOAD<BR> check_period 24x7<BR> max_check_attempts 5<BR> normal_check_interval 1<BR> retry_check_interval 1<BR> contact_groups nagios<BR> notification_interval 60<BR> notification_period 24x7<BR> notification_options w,u,c,r<BR> check_command check_nrpe!check_load!30,25,20!40,35,30<BR> }<BR># Define a service to check the disk space of the all partition<BR># on the remote machine. Warning if <BR>define service{<BR> use linux-service<BR> host_name web17<BR> service_description disk_var<BR> check_period 24x7<BR> max_check_attempts 5<BR> normal_check_interval 30<BR> retry_check_interval 10<BR> contact_groups nagios<BR> notification_interval 60<BR> notification_period 24x7<BR> notification_options w,u,c,r<BR> check_command check_nrpe!check_disk_var!20%!10%<BR> }<BR>更多的主机及服务依此格式逐个追加进来。<BR>主机组配置文档hostgroups.cfg,这是个可选的项目,他建立在文档hosts之上,其格式如下:<BR>define hostgroup {<BR> hostgroup_name web server<BR> alias web server<BR> members web17 //本例用了一个主机<BR> }<BR>运行程式/usr/local/nagios –v /usr/local/nagios/etc/nagios.cfg来检查任何配置文档的正确性。运行完毕将在输出尾部出现:<BR>Total Warnings: 0<BR>Total Errors: 0<BR>Things look okay - No serious problems were detected during the pre-flight check<BR>假如出现错误,肯定是cfg配置文档的问题,自己调试解决就能够了(但是,似乎比较繁琐)<BR>验证通过以后,就能够执行命令/usr/local/nagios –d /usr/local/nagios/etc/nagios.cfg 把nagios作为守护进程。然后用ps –aux | grep nagios 看进程是否处于运行状态。到这一步,nagios服务基本上算是配置完毕。做hosts.cfg、services.cfg等配置时,能够运用一些小技巧来减少出错的概率:如先定义少许的主机、服务,待校验无误后再追加。<BR>service nagios reload (重新读入nagios变更的配置) service nagios restart(重新启动nagios服务)<BR>假如想要监控远程主机还需要很多的配置工作要做:<BR>先简单介绍一下NRPE:NRPE是nagios的增强工具包,采用的是CS模式,在nagios主服务器上调用check_nrpe监测脚本,和client端的nrpe代理服务交换数据.<BR>从客户端获取服务器信息有两件事需要做,一是在客户端安装NRPE,二是在服务器端告诉nagios server有哪些东西需要nrpe监测的<BR>一:远程被监控主机的nrpe安装步骤<BR>1:建立nagios用户和组,用来运行nrpe程式,为了安全起见,限制nagios用户的shell登陆 usermod -s /bin/nologin nagios<BR> 建立/usr/local/nagios目录,并配置目录的属主chown -R nagios:nagios /usr/local/nagios/<BR>2:安装配置nrpe-2.8.1.tar.gz <BR> tar nrpe-2.8.1.tar.gz<BR> cd nrpe-2.8.1<BR> ./configure --enable-ssl --enable-command-args<BR> make all<BR> cp sample-config/nrpe.cfg /usr/local/nagios/etc<BR> cp src/nrpe /usr/local/nagios/bin<BR>3:修改nrpe配置文档<BR> vi /usr/local/nagios/etc/nrpe.cfg<BR> 修改dont_blame_nrpe=1 <BR> 修改监听端口 <BR> server_port=9998<BR> 改成您允许的IP <BR> allowed_hosts=127.0.0.1,10.0.0.60(60是nagios监控主机服务器) <BR> 修改您需要被监控的服务 <BR> command[check_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ <BR> 检查磁盘,当 / 剩余$ARG1$%报警(浅黄色),剩余$ARG2$%“出错”(红色)-p 后为指定分区<BR> 本人运行的是:(能够按照您的需要添加更多需要被监控的服务)<BR> command[check_tcp_80]=/usr/local/nagios/libexec/check_tcp -w 30 -c 60 -p 80<BR> command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20<BR> command[check_disk]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/sda6<BR>4:安装配置nagios-plugins-1.4.9<BR> tar –xvzf nagios-plugins-1.4.tar <BR> mkdir /usr/local/nagios-plugins <BR> cd nagios-plugins-1.4 <BR> ./configure --prefix=/usr/local/nagios-plugins -–enable-redhat-pthread-workaround <BR> make all <BR> make install <BR> 安装完成以后在/usr/local/nagios-plugins会产生一个libexec的目录,将该目录全部移动到/usr/local/nagios目录下 <BR> mv /usr/local/nagios-plugins/libexec /usr/local/nagios <BR>5:启动nrpe,端口9998<BR> /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d <BR> netstat -ant | grep 9998(看端口是否正常被监听)<BR>6:将/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d 添加到/ect/rc.d/rc.local<BR>二:监控服务器的nrpe安装(主要是使用check_nrpe模块) <BR>1:和远程主机的安装基本相同<BR> 安装配置nrpe-2.8.1.tar.gz <BR> tar nrpe-2.8.1.tar.gz<BR> cd nrpe-2.8.1<BR> ./configure --enable-ssl --enable-command-args<BR> make all<BR> cp src/check_nrpe /usr/local/nagios/libexec <BR>2:定义check_nrpe命令 <BR> vi commands.cfg <BR> # 'check_nrpe' command definition <BR> define command{ <BR> command_name check_nrpe <BR> command_line /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ <BR> } <BR>为了安全原因,本人的nrpe没有跑在默认端口,因此在此指定端口为9998。<BR> definecommand{<BR> command_name check_nrpe<BR> command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 9998 -c $ARG1$<BR> }<BR>至此,nagios服务器端和客户端基本配置完成,能完成基本的现在需要的监控的功能。</DIV> <DIV>question:<BR>Connection refused by host和timeout port 10 second类似这样的错误提示 基本都是因为nrpe的客户端没有正确安装或没有没有正常运行</DIV> <DIV>[ 本帖最后由 云杉上的蝴蝶 于 2008-7-29 00:54 编辑 ] </DIV> <DIV>本文来自: IXPUB技术社区(<A href="http://www.ixpub.net">www.ixpub.net</A>) 详细出处参考:<A href="http://www.ixpub.net/thread-771034-1-3.html">http://www.ixpub.net/thread-771034-1-3.html</A></DIV>
查看全文
发表于:2009-03-25 ┆
阅读(177)
┆
评论(0)
用yum快速搭建nagios监控服务器
<DIV>系统管理员必修课,用yum快速搭建nagios监控服务器<BR>monitor, nagios<BR>本帖最后由 cnweili_cu 于 2009-2-19 14:01 编辑 </DIV> <DIV>来源:<A href="http://www.centreon.com.cn/bbs/read.php?tid-208.html">http://www.centreon.com.cn/bbs/read.php?tid-208.html</A></DIV> <DIV>听见很多朋友抱怨nagios和nagios ndoutils的安装真够麻烦,编译,安装,配置,头都搞大了,为了降低nagios的安装门槛, <BR>方便大家学习使用nagios以及nagios的ndoutils,我花了点时间弄了这个LazyNagios的yum出来,希望对初学者有所帮助。 </DIV> <DIV>lazynagios测试环境在CentOS5上或者RHEL5的版本 <BR>安装时需要访问lazynagios的yum源和CentOS5的yum源<BR>nagios-3.0.6 <BR>nagios-plugins-1.4.13 <BR>ndoutils-1.4b7 </DIV> <DIV>安装不用gcc,只需要yum和能够上网</DIV> <DIV>第一步,安装软件 <BR>安装我写的lazynagios的repo包,该包的功能是建立我自己的lazynagios.repo源<BR>如果你不能直接rpm,可以先wget下载这个rpm,然后再rpm安装</DIV> <DIV>rpm -ivh <A href="http://centreon.com.cn/download/lazynagios-repo-0.1-1.noarch.rpm">http://centreon.com.cn/download/lazynagios-repo-0.1-1.noarch.rpm</A> </DIV> <DIV>通过网络安装我打包的几个rpm包<BR>yum -y install nagios nagios-ndoutils nagios-plugins nagios-ndoutils-database </DIV> <DIV>第二步,启动服务 <BR>把默认的mysqld数据库服务设为开启状态<BR>chkconfig mysqld on <BR>启动下列三个服务<BR>service nagios restart <BR>service ndo2db start <BR>service httpd start </DIV> <DIV>第三步,访问nagios的web界面 <BR><A href="http://ip/nagios">http://ip/nagios</A> <BR>用户名nagiosadmin <BR>密码nagiosadmin </DIV> <DIV>搞定了,有啥问题,请跟帖! <BR>附注: <BR>数据库名字是nagios <BR>Nagios配置目录/etc/nagios <BR>插件目录/usr/lib/nagios/plugins </DIV> <DIV>本文来自: IXPUB技术社区(<A href="http://www.ixpub.net">www.ixpub.net</A>) 详细出处参考:<A href="http://www.ixpub.net/thread-900010-1-3.html">http://www.ixpub.net/thread-900010-1-3.html</A></DIV>
查看全文
发表于:2009-03-25 ┆
阅读(250)
┆
评论(0)
用nagios监控ORACLE服务器
<DIV>[nagios]用nagios监控ORACLE服务器<BR>环境:Oracle 10g<BR>CentOS 5.2 x86_64</DIV> <DIV>一、在 Oracle 所在服务器上安装 NRPE</DIV> <DIV>安装过程参考 Nagios NRPE 文档。</DIV> <DIV>注意点:<BR>1.由于 nagios 脚本需要读取 oracle 相关文件。所以运行 nagios 的用户需要定义为 oracle 服务用户。并且修改 /etc/xinted.d/nrpe 中的配置。</DIV> <DIV>service nrpe<BR>{<BR>flags = REUSE<BR>socket_type = stream<BR>port = 5666<BR>wait = no<BR>user = oracle<BR>group = nagios<BR>server = /usr/local/nagios/bin/nrpe<BR>server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd<BR>log_on_failure += USERID<BR>disable = no<BR>only_from = 192.168.100.62<BR>}</DIV> <DIV>2.给 oracle 用户在 ORACLE_HOME 目录下执行权限。<BR>chmod –Rf 740 $ ORACLE_HOME/*</DIV> <DIV>3.修改 check_oracle 脚本。将 $ORACLE_HOME 以及 $PATH 手动加入,避免出现问题。</DIV> <DIV>ORACLE_HOME=/u01/oracle/product/10.2.0/db_1<BR>PATH=$PATH: /u01/oracle/product/10.2.0/db_1/bin</DIV> <DIV>二、 配置 nrpe 服务</DIV> <DIV>修改 /usr/local/nagios/etc/nrpe.cfg 文件。加入以下内容:</DIV> <DIV>#Check Oracle<BR>command[check_oracle_tns]=/usr/local/nagios/libexec/check_oracle –tns orcl<BR>command[check_oracle_db]=/usr/local/nagios/libexec/check_oracle –db orcl<BR>command[check_oracle_login]=/usr/local/nagios/libexec/check_oracle –login orcl<BR>command[check_oracle_cache]=/usr/local/nagios/libexec/check_oracle –cache orcl system lkjsdf 80 90<BR>command[check_oracle_tablespace]=/usr/local/nagios/libexec/check_oracle –tablespace orcl system lkjsdf tab 90 80</DIV> <DIV>具体参数写法请参考 check_oracle –help。</DIV> <DIV>配置完成后,重启 xinetd 服务。</DIV> <DIV>三、配置 Nagios 服务端</DIV> <DIV>1.安装 nrpe 脚本支持。—参考官方文档。<BR>2.添加 nrpe 命令配置。修改 nagios/etc/objects/command.cfg 文件:</DIV> <DIV>define command {<BR>command_name check_nrpe<BR>command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$<BR>}</DIV> <DIV>3.在 nagios/etc/objects 添加oracle 主机配置文件。oracle.cfg 。</DIV> <DIV>define host {<BR>use linux-server<BR>host_name oracle<BR>alias Oracle 10g<BR>address 192.168.100.63<BR>}</DIV> <DIV>define service {<BR>use generic-service<BR>host_name oracle<BR>service_description TNS Check<BR>check_command check_nrpe!check_oracle_tns<BR>}<BR>define service {<BR>use generic-service<BR>host_name oracle<BR>service_description DB Check<BR>check_command check_nrpe!check_oracle_db<BR>}<BR>define service {<BR>use generic-service<BR>host_name oracle<BR>service_description Login Check<BR>check_command check_nrpe!check_oracle_login<BR>}<BR>define service {<BR>use generic-service<BR>host_name oracle<BR>service_description Cache Check<BR>check_command check_nrpe!check_oracle_cache<BR>}<BR>define service {<BR>use generic-service<BR>host_name oracle<BR>service_description Tablespace Check<BR>check_command check_nrpe!check_oracle_tablespace<BR>}</DIV> <DIV>效果图:</DIV> <DIV> </DIV> <DIV>NRPE 以及 Nagios-Plugin 安装文件见附件包内。NRPE 官方文档也包含在附件包呢。</DIV> <DIV>备注:<BR>图中 Tablespace check 还没有细调,用了错误的 table 名。<BR>通过修改脚本还可以监视临时表空间。 </DIV> <DIV>本文来自: IXPUB技术社区(<A href="http://www.ixpub.net">www.ixpub.net</A>) 详细出处参考:<A href="http://www.ixpub.net/thread-897058-1-4.html">http://www.ixpub.net/thread-897058-1-4.html</A></DIV>
查看全文
发表于:2009-03-25 ┆
阅读(231)
┆
评论(0)
经验: 维护Exchange Server 2003 邮件服务器
<DIV> <DIV id=threadtitle> <H1>经验: 维护Exchange Server 2003 邮件服务器</H1></DIV> <DIV class=t_msgfontfix> <TABLE cellSpacing=0 cellPadding=0> <TBODY> <TR> <TD class=t_msgfont id=postmessage_7154464><FONT style="FONT-SIZE: 12px">前段时间一直有网友在问的问题.<BR>问题一:<BR>随着时间增长,邮件<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%B7%FE%CE%F1%C6%F7">服务器</SPAN>邮箱存储占用的空间会不断加大,就算在客户端把邮件删除,可服务器存储邮件占用的空间还是没有减少,这是怎么回事?<BR>问题二:<BR>我的邮件服务器已经好几年啦,怎么样才能把邮箱<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%D3%C3%BB%A7">用户</SPAN>比较老的邮件<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%D7%D4%B6%AF">自动</SPAN>删除,不让它占用服务器的空间?<BR><BR>就是由这两个问题写了篇文章:<BR>我的办法是做收件人策略+备份,减少邮件存储与及日志<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%CE%C4%BC%FE">文件</SPAN>占用服务器空间.(这个<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%CA%FD%BE%DD%BF%E2">数据库</SPAN>文件和日志文件是占空间的主要文件).<BR><BR>环境如下:<BR>一台服务器作为DC(contoso.msft)+EXCHANGE,一台加入域(contoso,msft)的客户端.<BR><BR><IMG id=img_0.9757822263003224 style="CURSOR: pointer" height=171 alt="" src="http://blog.ixpub.net/attachments/2008/11/14637836_200811061012021KawG.gif" width=600><BR>环境已搭建好,为了测试自动删除过期邮件,空间占用问题,先给用户发封大邮件,让用户占用服务器空间.<BR>在域内,用户c给用户m(用户实验前已建立)发封大邮件(邮件带附件).<BR>在发之前先检查<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%CA%FD%BE%DD">数据</SPAN>库以及日志占用空间大小.<BR><BR><IMG id=img_0.11651958839011855 height=523 alt="" src="http://blog.ixpub.net/attachments/2008/11/14637836_200811061012022Ovtw.gif" width=502><BR><BR>内网邮箱用户互发邮件,占用服务器存储空间.<BR><BR><IMG id=img_0.5728858699094733 height=404 alt="" src="http://blog.ixpub.net/attachments/2008/11/14637836_200811061012023TPIx.gif" width=492><BR><BR><IMG id=img_0.3441184317516142 height=417 alt="" src="http://blog.ixpub.net/attachments/2008/11/14637836_200811061012024x5fo.gif" width=465><BR><BR>检查邮箱,服务器占用空间.(服务器一下涨了好多)<BR><IMG id=img_0.06725197508025254 style="CURSOR: pointer" height=343 alt="" src="http://blog.ixpub.net/attachments/2008/11/14637836_2008110610120258myP.gif" width=600><BR><IMG height=470 alt="" src="http://blog.ixpub.net/attachments/2008/11/14637836_200811061012026OoVt.gif" width=496><BR><IMG height=481 alt="" src="http://blog.ixpub.net/attachments/2008/11/14637836_200811061012027R4pF.gif" width=376><BR>这时可把邮件认为是老邮件,建立收件人邮箱<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%B9%DC%C0%ED">管理</SPAN>器策略来管理邮件.<BR>如把2天前的大于是10240k的邮件删除.<BR><IMG height=345 alt="" src="http://blog.ixpub.net/attachments/2008/11/14637836_2008110610120287lKB.gif" width=564><BR>把策略用于用户c和m.<BR>策略<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%C9%E8%D6%C3">设置</SPAN>如下:<BR><IMG height=424 alt="" src="http://blog.ixpub.net/attachments/2008/11/14637836_2008110610120292FHU.gif" width=481><BR>让策略立刻生效.<BR><IMG style="CURSOR: pointer" height=287 alt="" src="http://blog.ixpub.net/attachments/2008/11/14637836_2008110610120210W5GZ.gif" width=600><BR><IMG height=483 alt="" src="http://blog.ixpub.net/attachments/2008/11/14637836_2008110610120211dDbU.gif" width=534><BR>验证结果.把时间手工调整一下,如改到3天后.<BR>当前时间,以及3天后时间.邮箱大小变化情况.<BR><IMG height=371 alt="" src="http://blog.ixpub.net/attachments/2008/11/14637836_2008110610120212GdAH.gif" width=577><BR><BR><IMG style="CURSOR: pointer" height=432 alt="" src="http://blog.ixpub.net/attachments/2008/11/14637836_20081106101202138mLf.gif" width=600><BR><BR>客户端邮件已被删除,所以在服务看邮箱存储占用空间大小已经减少.<BR>过期邮件已处理完毕,下面来释放空间.<BR>这时候存储在物理磁盘的空间并没有减少,主要由数据库文件和日志文件组成.<BR>可通过碎片整理和压缩来减少数据库空间,通过备份来删除日志文件.<BR><BR><IMG height=367 alt="" src="http://blog.ixpub.net/attachments/2008/11/14637836_2008110610120214BfnB.gif" width=545><BR><BR>做碎片整理和压缩数据库,做的是脱机数据库整理.<BR><BR>参考文章:<BR><BR><FONT color=#0000ff>http://support.microsoft.com/kb/328804/zh-cn</FONT><BR><BR><FONT color=#0000ff>http://support.microsoft.com/kb/192185/zh-cn</FONT><BR><BR>先检查数据库大小.主要由priv1.edb和priv1.stm构成.<BR><BR><IMG height=411 alt="" src="http://blog.ixpub.net/attachments/2008/11/14637836_20081106101202155ZK7.gif" width=537><BR><BR>1. 在 Exchange <SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%CF%B5%CD%B3">系统</SPAN>管理器中,右键单击要进行碎片整理的信息存储,然后单击卸除存储。 <BR>2. 在<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%C3%FC%C1%EE">命令</SPAN>提示符处,更改至 Exchsrvr\Bin 文件夹,然后键入 eseutil /d 命令、数据库开关以及要使用的任何选项。 <BR>例如,以下命令在邮箱存储数据库上运行标准的碎片整理实用<SPAN class=t_tag onclick=tagshow(event) href="tag.php?name=%B9%A4%BE%DF">工具</SPAN>: <BR>C:\program files\exchsrvr\bin> eseutil /d c:\progra~1\exchsrvr\mdbdata\priv1.edb<BR><BR><IMG height=331 alt="" src="http://blog.ixpub.net/attachments/2008/11/14637836_2008110610120216EHZu.gif" width=524><BR><BR><IMG style="CURSOR: pointer" height=280 alt="" src="http://blog.ixpub.net/attachments/2008/11/14637836_2008110610120217FlSA.gif" width=600><BR><BR><IMG style="CURSOR: pointer" height=491 alt="" src="http://blog.ixpub.net/attachments/2008/11/14637836_2008110610120218VVhK.gif" width=600><BR><BR>结果.<BR><BR><IMG height=306 alt="" src="http://blog.ixpub.net/attachments/2008/11/14637836_2008110610120219kq2E.gif" width=447><BR><BR><IMG height=404 alt="" src="http://blog.ixpub.net/attachments/2008/11/14637836_2008110610120220fl83.gif" width=422><BR><BR>现在空间大小主要是由日志文件占用.通过备份可以清除日志文件,用于释放更多的空间.<BR><BR>参考文章:<BR><BR><FONT color=#0000ff>http://www.5dmail.net/bbs/viewthread.php?tid=55926&extra=page%3D1%26amp%3Bfilter%3Ddigest</FONT><BR><BR>由楼上的图可看出没备份前空间占用情况.<BR><BR>调出ntbackup,对Exchange 的”Information Store“存储组的所有数据库备份.<BR><BR><IMG style="CURSOR: pointer" height=428 alt="" src="http://blog.ixpub.net/attachments/2008/11/14637836_2008110610120221OpRO.gif" width=600><BR><BR>结果log文件减少.空出磁盘空间.<BR><BR><IMG height=490 alt="" src="http://blog.ixpub.net/attachments/2008/11/14637836_2008110610120222o28m.gif" width=437><BR><BR>在这里浅谈了邮件管理和空间占用的问题,希望能对存在这问题的朋友有所帮助...</FONT><BR><STRONG>附件:</STRONG><BR></TD></TR></TBODY></TABLE></DIV></DIV>
查看全文
发表于:2009-03-25 ┆
阅读(261)
┆
评论(0)
SMS2003部署 指南
<DIV>SMS2003部署 指南 <DIV style="PADDING-RIGHT: 16px; PADDING-LEFT: 16px; PADDING-BOTTOM: 16px; FONT: 14px Verdana, Arial, sans-serif; PADDING-TOP: 16px"><BR>SMS2003部署<BR>作者:翟惊卿(天下一家)MSN:Peter_zhai@hotmail.com<BR>原文刊登于“微电脑世界”(2004年8月)<BR><BR>微软在2003年年底推出了System<I></I> Management<I></I> Server<I></I> 2003<I></I> ,和SMS<I></I> 2.0<I></I> 相比,新版本尽管版本号只是2.5,但在各个方面都明显优于2.0<I></I> ,确实给人以耳目一新的感觉。<BR>微软主要在以下方面做了加强<BR> 稳定性,绝对是质的飞跃<BR> 安全性<BR> 性能优化,部分功能甚至提高了5-7倍<BR> 针对移动客户设计了新的客户端,充分考虑到移动办公的需求<BR> 更好的与活动目录集成<BR> 集成了软件更新服务包(SUS)<BR> 重写了软件计量部分的代码<BR> 舍弃了水晶报表,使用增强了的Web<I></I> reports<BR>。。。<BR><BR>目前来讲,SMS主要还是应用于一些大企业环境,诸如,软件发布和硬件/软件清单收集功能都可以显著降低网络管理人员的工作负荷,但由于最近病毒泛滥,特别是冲击波/震荡波,使越来越多的网络管理人员意识到了补丁管理的重要性。SMS作为目前微软最好的企业补丁解决方案,当仁不让的成为了焦点。<BR><BR>本文主要讲述在一个典型的局域网中部署,配置SMS的具体步骤,按本文配置以后,就能实现SMS的软件分发,补丁管理,硬件/软件信息收集,远程控制等主要功能。<BR><BR>开始之前,必须先解释一些SMS的定义<BR>Site<I></I> Server:<I></I> SMS的核心服务.<I></I> 用于处理SMS的数据并反映在SMS管理界面或报表中<BR>Site<I></I> Boundary:<I></I> 用于确定SMS<I></I> Site<I></I> Server的管理范围<BR>SMS<I></I> Provider:<I></I> 用于给site<I></I> server提供SQL服务<BR>Management<I></I> Point<I></I> (MP):<I></I> 介于SMS<I></I> Site<I></I> Server<I></I> 和SMS高级客户端之间的中间节点.,高级客户端通过他与SMS联系<BR>Client<I></I> Access<I></I> Point<I></I> (CAP):介于SMS<I></I> Site<I></I> Server<I></I> 和SMS标准客户端之间的中间节点.,标准客户端通过他与SMS联系<BR>Distribution<I></I> Point<I></I> (DP):<I></I> 存放软件包的服务器。SMS<I></I> Site<I></I> Server将软件包保存到DP,然后通过MP或CAP通知客户端到DP来执行软件包的安装,可以理解成“文件仓库”。<BR>Server<I></I> Location<I></I> Point<I></I> (SLP):用于替SMS客户端查找到合适的CAP或MP<BR>Reporting<I></I> Point<I></I> (RP):<I></I> 用于提供基于WEB的报表服务<BR>Data<I></I> Discovery<I></I> Record(DDR):<I></I> 数据发现记录<BR>Client<I></I> Configuration<I></I> Request(CCR):<I></I> 客户配置请求<BR>服务器部署<BR>安装之前的必须条件<BR>1.<I></I> 操作系统<I></I> <BR>Win2000<I></I> SP4或<I></I> Win2003,建议安装最新的补丁<BR>• 内存:至少256MB内存,最大可支持4G<BR>• 硬盘:至少2G空间,取决于实际环境。<BR><BR>2.<I></I> IIS<BR>需要在承担MP/DP/RP<I></I> 等角色的服务器上安装IIS,如果该服务器是Win2003<I></I> Server,还需要<BR> 安装并启用IIS的BITS(后台智能传输协议)<BR> 安装并启用ASP扩展<BR> 安装并启用WebDav<I></I> <BR> 验证方式是匿名访问<BR>注:IIS6中出于安全考虑,BITS,ASP,WebDav默认安装后都是被禁止的,具体启用位置在IIS管理台—web<I></I> service<I></I> extension<BR><BR>另外,建议不要在SMS角色服务器上安装诸如SUS<I></I> ,<I></I> IIS<I></I> lockdown,URL<I></I> scan之类的工具,因为有可能会阻挡SMS客户端与服务器的HTTP数据通信,如果一定要用URLscan<I></I> ,可以用SMS<I></I> toolkit1<I></I> 工具包中的urlscan.ini<I></I> 替代原有的urlscan.ini<I></I> <BR><BR>3.<I></I> 服务器系统默认共享<BR>SMS的所有角色服务器上必须打开系统默认共享(admin$,IPC$等)。如果默认共享被关闭,请参照以下方法启用:<BR>在下面的注册表项中删除<I></I> AutoShareWks<I></I> DWORD<I></I> 值,并重启计算机。<BR>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters<BR><BR>4.<I></I> 客户端系统默认共享<BR>需要确保域管理员可以从SMS<I></I> 站点服务器上访问客户端的Admin$共享:\\Client\Admin$。如果访问失败,检查名字解析和客户端的Local<I></I> Administrators组中是否包含Domain<I></I> Admin。<BR><BR>5.<I></I> 客户端远程注册表服务<BR>确认Domain<I></I> Admin可以从SMS<I></I> 站点服务器上访问客户端的注册表。可以用以下方法检查:在SMS站点服务器上,以Domain<I></I> Admin的身份运行regedit.exe,选择连接到Network<I></I> Machine,指定远程客户端后,尝试展开下列两个键值。如果没有任何错误,表明该条件已满足。如果失败,则检查以下两点:<BR> 客户机上Remote<I></I> Registry服务在运行并且工作正常<BR> 在客户机上,"Local<I></I> Service"<I></I> 对<I></I> 以下键值有<I></I> Read<I></I> 的权限:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurePipeServers\winreg<BR><BR>6.客户端的操作系统安装路径<BR>客户端的操作系统如果没有安装在C:盘,自动/手工”推”安装客户端可能会失败<BR><BR>7.客户端的DNS配置<BR>确保客户端能够ping<I></I> 通域名,如果失败,检查客户端的DNS配置<BR><BR>8.<I></I> 通讯端口<BR>如果有防火墙或代理服务器,需要打开相关的端口。<BR>站点之间的通讯用到<BR><BR>Port<I></I> 445 Server<I></I> Message<I></I> Block<I></I> (SMB)<BR>Port<I></I> 389 Lightweight<I></I> Directory<I></I> Access<I></I> Protocol<I></I> (LDAP)<BR>Port<I></I> 636 LDAP<I></I> (Secure<I></I> Sockets<I></I> Layer<I></I> [SSL]<I></I> connection)<BR>代理MP到父站点数据</DIV></DIV>
查看全文
发表于:2009-03-25 ┆
阅读(291)
┆
评论(0)
Nginx+PHP+MySQL双机互备、全自动切换方案
<DIV><A style="text: _blank" href="http://blog.s135.com/post/379/" target=_blank><STRONG><FONT color=#ffffff>Nginx+PHP+MySQL双机互备、全自动切换方案[原创]</FONT></STRONG></A><STRONG><FONT color=#ffffff> </FONT></STRONG> <DIV class=textbox-fontsize><STRONG><FONT color=#ffffff><IMG title=字体大小 alt="" src="http://blog.s135.com/template/RuiPai/images/toolbar_fontsize.gif" border=0></FONT></STRONG> </DIV> <DIV class=textbox-content id=zoomtext> [文章作者:张宴 本文版本:v1.0 最后修改:2008.11.19 转载请注明原文链接:<A href="http://blog.s135.com/post/379/" target=_blank><FONT color=#4f6371>http://blog.s135.com/post/379/</FONT></A>]<BR><BR> 在生产应用中,某台“Nginx+PHP+MySQL”接口数据服务器,扮演的角色十分重要,如果服务器硬件或Nginx、MySQL发生故障,而短时间内无法恢复,后果将非常严重。为了避免单点故障,我设计了此套方案,编写了failover.sh脚本,实现了双机互备、全自动切换,故障转移时间只需几十秒。<BR><BR> <STRONG>一、双机互备、全自动切换方案:</STRONG><BR> <STRONG>1、拓扑图:</STRONG><BR> <A href="http://blog.s135.com/attachment/200811/nginx_php_mysql_ha.png" target=_blank><IMG class=insertimage title=点击在新窗口中浏览此图片 alt=点击在新窗口中浏览此图片 src="http://blog.s135.com/attachment/200811/nginx_php_mysql_ha.png" border=0></A><BR><BR> <STRONG>2、解释:</STRONG><BR> (1)、假设外网域名blog.s135.com解析到外网虚拟IP 72.249.146.214上,内网hosts设置db10对应内网虚拟IP 192.168.146.214<BR><BR> (2)、默认情况下,由主机绑定内、外网虚拟IP,备机作为备份,当主机的MySQL、Nginx或服务器出现故障无法访问时,备机会自动接管内、外网虚拟IP。两台服务器都启动负责监控、自动切换虚拟IP的守护进程/usr/bin/nohup /bin/sh /usr/local/webserver/failover/failover.sh 2>&1 > /dev/null &<BR><BR> (3)、主机和备机上的MySQL服务器互为主从,互相同步。在主机处于活动状态(即由主机绑定虚拟IP)时,读写主机的MySQL,写到主机的数据会同步到备机;在备机处于活动状态时,读写备机的MySQL,写到备机的数据会同步到主机(如果主机上的MySQL死掉暂时无法同步,主机上的MySQL恢复后,数据会自动从备机上同步过来,反之亦然)。<BR><BR> (4)、主机处于活动状态时,每20秒会把/data0/htdocs/(网页、程序、图片存放目录)、/usr/local/webserver/php/etc/(php.ini等配置文件目录)、/usr/local/webserver/nginx/conf/(Nginx配置文件目录)三个目录下的文件通过rsync推送到备机服务器上的对应目录(增量推送,两台服务器上一样的文件不会重复推送),反之如果备机处于活动状态时,每20秒会尝试把文件推送到主机。rsync的配置文件见两台服务器的/etc/rsyncd.conf,rsync守护进程的启动命令为rsync --daemon<BR><BR> <STRONG>3、自动切换流程</STRONG><BR> (1)、主机默认绑定内、外网虚拟IP,当主机的MySQL、Nginx无法访问或服务器宕机,主机上的failover.sh守护进程会自动摘除自己绑定的内、外网虚拟IP(如果主机上的failover.sh死掉,无法摘除自己绑定的虚拟IP也没关系),备机上的failover.sh守护进程会自动接管备机原来绑定的内、外网虚拟IP,并发送ARPing包给内、外网网关更新MAC,强行接管。<BR><A name=entrymore></A><BR> (2)、备机绑定虚拟IP后,会发送ARPing包给内、外网网关,通知网关更新虚拟IP的MAC地址为备机的MAC地址,从而保证了切换后能够通过虚拟IP及时访问到备机。<BR><BR> (3)、如果主机的MySQL、Nginx启动起来,全部恢复正常访问,主机上的failover.sh守护进程会检测主机上的MySQL数据是否已经完全从备机上同步过来。如果同步延迟时间为0,主机会自动接管内、外网虚拟IP,并发送ARPing包给内、外网网关,而备机也会自动摘除内、外网虚拟IP。<BR><BR> (4)、整个切换流程均由failover.sh自动完成,无需人工处理。 <BR><BR> <STRONG>4、注意事项(很重要):</STRONG><BR> (1)、crontab里的文件没有做自动同步,如果修改,需要手工在两台服务器上都做修改。<BR><BR> (2)、/data0/htdocs/目录内任何用ln -s建立的软连接,rsync不会自动同步,如果在一台服务器上建了软连接,需要手工在另外一台服务器上也建相同的软连接。<BR><BR> (3)、如果要删除/data0/htdocs/目录内的某些文件或目录,需要先删除处于活动状态(即绑定了虚拟IP)服务器上的文件或目录,再删除处于备用状态服务器上的文件或目录。<BR><BR> (4)、除了/data0/htdocs/(网页、程序、图片存放目录)、/usr/local/webserver/php/etc/(php.ini等配置文件目录)、/usr/local/webserver/nginx/conf/(Nginx配置文件目录)三个目录之外的其他配置修改,需要在两台服务器上都做修改。<BR><BR> <HR> <BR> <STRONG>二、配置文档与脚本:</STRONG><BR> <STRONG>1、主机、备机两台服务器的rsync配置(配置相同)</STRONG><BR> (1)、rsync配置文件<BR> <DIV style="BORDER-RIGHT: #00a0c6 1px dashed; PADDING-RIGHT: 3px; BORDER-TOP: #00a0c6 1px dashed; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; MARGIN: 5px 5px 0px; BORDER-LEFT: #00a0c6 1px dashed; PADDING-TOP: 3px; BORDER-BOTTOM: #00a0c6 1px dashed; BACKGROUND-COLOR: #ffffff">vi /etc/rsyncd.conf</DIV><BR> 输入一些内容并保存:<BR> <DIV class=quote> <DIV class=quote-title>引用</DIV> <DIV class=quote-content>uid = root<BR>gid = root<BR>use chroot = no<BR>max connections = 20<BR>pid file = /var/run/rsyncd.pid<BR>lock file = /var/run/rsync.lock<BR>log file = /var/log/rsyncd.log<BR><BR>[data0_htdocs]<BR>path = /data0/htdocs/<BR>ignore errors<BR>read only = no<BR>hosts allow = 192.168.146.0/24<BR>hosts deny = 0.0.0.0/32<BR><BR>[php_etc]<BR>path = /usr/local/webserver/php/etc/<BR>ignore errors<BR>read only = no<BR>hosts allow = 192.168.146.0/24<BR>hosts deny = 0.0.0.0/32<BR><BR>[nginx_conf]<BR>path = /usr/local/webserver/nginx/conf/<BR>ignore errors<BR>read only = no<BR>hosts allow = 192.168.146.0/24<BR>hosts deny = 0.0.0.0/32</DIV></DIV><BR><BR> (2)、启动rsync守护进程<BR> <DIV style="BORDER-RIGHT: #00a0c6 1px dashed; PADDING-RIGHT: 3px; BORDER-TOP: #00a0c6 1px dashed; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; MARGIN: 5px 5px 0px; BORDER-LEFT: #00a0c6 1px dashed; PADDING-TOP: 3px; BORDER-BOTTOM: #00a0c6 1px dashed; BACKGROUND-COLOR: #ffffff">/usr/bin/rsync --daemon</DIV><BR><BR> <STRONG>2、两台MySQL互为主从的配置</STRONG><BR> 这里就不详细写出互为主从的配置过程了,如果不懂的朋友可以在Google上搜一下。有一点需要指出,my.cnf配置文件中请加上skip-name-resolve参数,使用IP来进行MySQL帐号验证。<BR><BR> <STRONG>3、主机、备机两台服务器负载监控、虚拟IP自动切换的failover.sh守护进程</STRONG><BR> (1)、启动failover.sh守护进程(为了开机能够自动运行,请将以下语句添加到/etc/rc.local文件中):<BR> <DIV style="BORDER-RIGHT: #00a0c6 1px dashed; PADDING-RIGHT: 3px; BORDER-TOP: #00a0c6 1px dashed; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; MARGIN: 5px 5px 0px; BORDER-LEFT: #00a0c6 1px dashed; PADDING-TOP: 3px; BORDER-BOTTOM: #00a0c6 1px dashed; BACKGROUND-COLOR: #ffffff">/usr/bin/nohup /bin/sh /usr/local/webserver/failover/failover.sh 2>&1 > /dev/null &</DIV><BR><BR> (2)、停止failover.sh守护进程:<BR> <DIV style="BORDER-RIGHT: #00a0c6 1px dashed; PADDING-RIGHT: 3px; BORDER-TOP: #00a0c6 1px dashed; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; MARGIN: 5px 5px 0px; BORDER-LEFT: #00a0c6 1px dashed; PADDING-TOP: 3px; BORDER-BOTTOM: #00a0c6 1px dashed; BACKGROUND-COLOR: #ffffff">ps -ef | grep failover.sh</DIV><BR> 会显示以下信息:<BR> <SPAN style="COLOR: #008000">root 15428 1 0 Nov17 ? 00:00:03 /bin/sh /usr/local/webserver/failover/failover.sh<BR> root 20123 6878 0 16:16 pts/2 00:00:00 grep failover.sh</SPAN><BR> 然后杀死failover.sh的进程:<BR> <DIV style="BORDER-RIGHT: #00a0c6 1px dashed; PADDING-RIGHT: 3px; BORDER-TOP: #00a0c6 1px dashed; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; MARGIN: 5px 5px 0px; BORDER-LEFT: #00a0c6 1px dashed; PADDING-TOP: 3px; BORDER-BOTTOM: #00a0c6 1px dashed; BACKGROUND-COLOR: #ffffff">kill -9 15428</DIV><BR><BR> (3)、failover.sh代码内容(<SPAN style="COLOR: #ff0000">请注意其中的type设置,主机设为master,备机设为slave</SPAN>):<BR> <DIV class=code>#!/bin/sh<BR>LANG=C<BR>date=$(date -d "today" +"%Y-%m-%d %H:%M:%S")<BR><BR>#---------------配置信息(开始)---------------<BR>#类型:主机设为master,备机设为slave<BR>type="master"<BR><BR>#主机、备机切换日志路径<BR>logfile="/var/log/failover.log"<BR><BR>#MySQL可执行文件地址,例如/usr/local/mysql/bin/mysql;MySQL用户名;密码;端口<BR>mysql_bin="/usr/local/webserver/mysql/bin/mysql"<BR>mysql_username="root"<BR>mysql_password="123456"<BR>mysql_port="3306"<BR><BR>#内网网关<BR>gateway_eth0="192.168.146.1"<BR><BR>#主机内网真实IP<BR>rip_eth0_master="192.168.146.213"<BR><BR>#备机内网真实IP<BR>rip_eth0_slave="192.168.146.215"<BR><BR>#主机、备机内网共用的虚拟IP<BR>vip_eth0_share="192.168.113.214"<BR><BR><BR>#外网网关<BR>gateway_eth1="72.249.146.193"<BR><BR>#主机外网真实IP<BR>rip_eth1_master="72.249.146.213"<BR><BR>#备机外网真实IP<BR>rip_eth1_slave="72.249.146.215"<BR><BR>#主机、备机外网共用的虚拟IP<BR>vip_eth1_share="72.249.146.214"<BR>#---------------配置信息(结束)---------------<BR><BR>#绑定内、外网虚拟IP<BR>function_bind_vip()<BR>{<BR> /sbin/ifconfig eth0:vip ${vip_eth0_share} broadcast ${vip_eth0_share} netmask 255.255.255.255 up<BR> /sbin/route add -host ${vip_eth0_share} dev eth0:vip<BR> /sbin/ifconfig eth1:vip ${vip_eth1_share} broadcast ${vip_eth1_share} netmask 255.255.255.255 up<BR> /sbin/route add -host ${vip_eth1_share} dev eth1:vip<BR> /usr/local/webserver/php/sbin/php-fpm reload<BR> kill -USR1 `cat /usr/local/webserver/nginx/logs/nginx.pid`<BR> /sbin/service crond start<BR>}<BR><BR>#解除内、外网虚拟IP<BR>function_remove_vip()<BR>{<BR> /sbin/ifconfig eth0:vip ${vip_eth0_share} broadcast ${vip_eth0_share} netmask 255.255.255.255 down<BR> /sbin/ifconfig eth1:vip ${vip_eth1_share} broadcast ${vip_eth1_share} netmask 255.255.255.255 down<BR> /sbin/service crond stop<BR>}<BR><BR>#主机向备机推送文件的函数<BR>function_rsync_master_to_slave()<BR>{<BR> /usr/bin/rsync -zrtuog /data0/htdocs/ ${rip_eth0_slave}::data0_htdocs/ > /dev/null 2>&1<BR> /usr/bin/rsync -zrtuog /usr/local/webserver/php/etc/ ${rip_eth0_slave}::php_etc/ > /dev/null 2>&1<BR> /usr/bin/rsync -zrtuog /usr/local/webserver/nginx/conf/ ${rip_eth0_slave}::nginx_conf/ > /dev/null 2>&1<BR>}<BR><BR>#备机向主机推送文件的函数<BR>function_rsync_slave_to_master()<BR>{<BR> /usr/bin/rsync -zrtuog /data0/htdocs/ ${rip_eth0_master}::data0_htdocs/ > /dev/null 2>&1<BR> /usr/bin/rsync -zrtuog /usr/local/webserver/php/etc/ ${rip_eth0_master}::php_etc/ > /dev/null 2>&1<BR> /usr/bin/rsync -zrtuog /usr/local/webserver/nginx/conf/ ${rip_eth0_master}::nginx_conf/ > /dev/null 2>&1<BR>}<BR><BR>#虚拟IP ARPing<BR>function_vip_arping()<BR>{<BR> /sbin/arping -I eth0 -c 3 -s ${vip_eth0_share} ${gateway_eth0} > /dev/null 2>&1<BR> /sbin/arping -I eth1 -c 3 -s ${vip_eth1_share} ${gateway_eth1} > /dev/null 2>&1 <BR>}<BR><BR>while true<BR>do<BR> #用HTTP协议检查虚拟IP<BR> if (curl -m 30 -G http://${vip_eth1_share}/ > /dev/null 2>&1) && (${mysql_bin} -u"${mysql_username}" -p"${mysql_password}" -P"${mysql_port}" -h"${vip_eth0_share}" -e"show slave status\G" > /dev/null 2>&1)<BR> then<BR> #取得与内网VIP绑定的服务器内网IP<BR> eth0_active_server=$(${mysql_bin} -u"${mysql_username}" -p"${mysql_password}" -P"${mysql_port}" -h"${vip_eth0_share}" -e"show slave status\G" &#124; grep "Master_Host" &#124; awk -F ': ' '{printf $2}')<BR> <BR> #如果内网VIP=主机内网IP(主机MySQL中的Master_Host显示的是备机的域名或IP),且本机为主机<BR> if [ "${eth0_active_server}" = "${rip_eth0_slave}" ] && [ "${type}" = "master" ]<BR> then<BR> function_rsync_master_to_slave<BR> function_vip_arping <BR> #如果内网VIP=备机内网IP(备机MySQL中的Master_Host显示的是主机的域名或IP)<BR> elif [ "${eth0_active_server}" = "${rip_eth0_master}" ]<BR> then<BR> if (curl -m 30 -G http://${rip_eth1_master}/ > /dev/null 2>&1) && (${mysql_bin} -u"${mysql_username}" -p"${mysql_password}" -P"${mysql_port}" -h"${rip_eth0_master}" -e"show slave status\G" &#124; grep "Seconds_Behind_Master: 0" > /dev/null 2>&1)<BR> then<BR> #如果主机能够访问,数据库同步无延迟,且本机就是主机,那么由本机绑定虚拟IP<BR> if [ "${type}" = "master" ]<BR> then<BR> #如果本机为主机<BR> function_bind_vip<BR> function_vip_arping<BR> echo "${date} 主机已绑定虚拟IP!(Type:1)" >> ${logfile}<BR> else<BR> #如果本机为备机<BR> function_remove_vip<BR> echo "${date} 备机已去除虚拟IP!(Type:2)" >> ${logfile}<BR> fi<BR> else<BR> if [ "${type}" = "slave" ]<BR> then<BR> #如果本机为备机<BR> function_rsync_slave_to_master <BR> function_vip_arping<BR> fi <BR> fi<BR> fi<BR> else<BR> #虚拟IP无法访问时,判断主机能否访问<BR> if (curl -m 30 -G http://${rip_eth1_master}/ > /dev/null 2>&1) && (${mysql_bin} -u"${mysql_username}" -p"${mysql_password}" -P"${mysql_port}" -h"${rip_eth0_master}" -e"show slave status\G" > /dev/null 2>&1)<BR> then<BR> #如果主机能够访问,且本机就是主机,那么由本机绑定虚拟IP<BR> if [ "${type}" = "master" ]<BR> then<BR> function_bind_vip<BR> function_vip_arping<BR> echo "${date} 主机已绑定虚拟IP!(Type:3)" >> ${logfile}<BR> else<BR> function_remove_vip<BR> echo "${date} 备机已去除虚拟IP!(Type:4)" >> ${logfile}<BR> fi<BR> elif (curl -m 30 -G http://${rip_eth1_slave}/ > /dev/null 2>&1) && (${mysql_bin} -u"${mysql_username}" -p"${mysql_password}" -P"${mysql_port}" -h"${rip_eth0_slave}" -e"show slave status\G" > /dev/null 2>&1)<BR> then<BR> #如果主机不能访问而备机能够访问,且本机就是备机,那么由备机绑定虚拟IP<BR> if [ "${type}" = "slave" ]<BR> then<BR> function_bind_vip<BR> function_vip_arping<BR> echo "${date} 备机已绑定虚拟IP!(Type:5)" >> ${logfile}<BR> else<BR> function_remove_vip<BR> echo "${date} 主机已去除虚拟IP!(Type:6)" >> ${logfile}<BR> fi<BR> else<BR> echo "${date} 主机、备机全部无法访问!(Type:7)" >> ${logfile}<BR> fi<BR> fi<BR> #每次循环暂停20秒(即间隔20秒检测一次)<BR> sleep 20<BR>done</DIV></DIV></DIV>
查看全文
发表于:2009-03-24 ┆
阅读(194)
┆
评论(1)
使用 Nginx 提升网站访问速度
<DIV> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR vAlign=top> <TD width=10 height=18> <P> </P> <P> </P></TD> <TD width="100%"> <P><IMG height=6 alt="" src="http://www.ibm.com/i/c.gif" width=1><BR></P> <P>使用 Nginx 提升网站访问速度<IMG class=display-img height=6 alt="" src="http://www.ibm.com/i/c.gif" width=1></P> <P> </P></TD> <TD class=no-print width=192><IMG height=18 alt=developerWorks src="http://www.ibm.com/developerworks/i/dw.gif" width=192></TD></TR></TBODY></TABLE> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR vAlign=top> <TD width=10><IMG height=1 alt="" src="http://www.ibm.com/i/c.gif" width=10></TD> <TD width="100%"> <TABLE class=no-print cellSpacing=0 cellPadding=0 width=160 align=right border=0> <TBODY> <TR> <TD width=10><IMG height=1 alt="" src="http://www.ibm.com/i/c.gif" width=10></TD> <TD> <TABLE cellSpacing=0 cellPadding=0 width=150 border=0> <TBODY> <TR> <TD class=v14-header-1-small>文档选项</TD></TR></TBODY></TABLE> <TABLE class=v14-gray-table-border cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD class=no-padding width=150> <TABLE cellSpacing=0 cellPadding=0 width=143 border=0> <SCRIPT language=JavaScript type=text/javascript> <!-- document.write('<tr valign="top"><td width="8"><img src="//www.ibm.com/i/c.gif" width="8" height="1" alt=""/></td><td width="16"><img alt="将打印机的版面设置成横向打印模式" height="16" src="//www.ibm.com/i/v14/icons/printer.gif" width="16" vspace="3" /></td><td width="122"><p><b><a class="smallplainlink" href="javascript:print()">打印本页</a></b></p></td></tr>'); //--> </SCRIPT> <TBODY> <TR vAlign=top> <TD width=8><IMG height=1 alt="" src="http://www.ibm.com/i/c.gif" width=8></TD> <TD width=16><IMG height=16 alt=将打印机的版面设置成横向打印模式 src="http://www.ibm.com/i/v14/icons/printer.gif" width=16 vspace=3></TD> <TD width=122> <P><B><A class=smallplainlink href="javascript:print()" cmImpressionSent="1">打印本页</A></B></P></TD></TR><NOSCRIPT></NOSCRIPT> <FORM name=email action=https://www.ibm.com/developerworks/secure/email-it.jsp cM1="1"><INPUT type=hidden value="本文主要介绍如何在 Linux 系统上安装高性能的 HTTP 服务器 —— Nginx、并在不改变原有网站结构的条件下用 Nginx 来提升网站的访问速度。" name=body cM1="1" cM3 cM2="0"><INPUT type=hidden value="使用 Nginx 提升网站访问速度" name=subject cM1="1" cM3 cM2="1"><INPUT type=hidden value=cn name=lang cM1="1" cM3 cM2="2"> <SCRIPT language=JavaScript type=text/javascript> <!-- document.write('<tr valign="top"><td width="8"><img src="//www.ibm.com/i/c.gif" width="8" height="1" alt=""/></td><td width="16"><img src="//www.ibm.com/i/v14/icons/em.gif" height="16" width="16" vspace="3" alt="将此页作为电子邮件发送" /></td><td width="122"><p><a class="smallplainlink" href="javascript:document.email.submit();"><b>将此页作为电子邮件发送</b></a></p></td></tr>'); //--> </SCRIPT> <TR vAlign=top> <TD width=8><IMG height=1 alt="" src="http://www.ibm.com/i/c.gif" width=8></TD> <TD width=16><IMG height=16 alt=将此页作为电子邮件发送 src="http://www.ibm.com/i/v14/icons/em.gif" width=16 vspace=3></TD> <TD width=122> <P><A class=smallplainlink href="javascript:document.email.submit();" cmImpressionSent="1"><B><FONT color=#000080>将此页作为电子邮件发送</FONT></B></A></P></TD></TR><NOSCRIPT></NOSCRIPT></FORM></TBODY></TABLE></TD></TR></TBODY></TABLE><!--START RESERVED FOR FUTURE USE INCLUDE FILES--><!-- this content will be automatically generated across all content areas --><!--END RESERVED FOR FUTURE USE INCLUDE FILES--><BR></TD></TR></TBODY></TABLE> <P>级别: 中级</P> <P><A href="http://www.ibm.com/developerworks/cn/web/wa-lo-nginx/#author" cmImpressionSent="1"><FONT color=#000080>刘 柄成</FONT></A> (<A href="mailto:javayou@gmail.com?subject=使用 Nginx 提升网站访问速度" cmImpressionSent="1"><FONT color=#000080>javayou@gmail.com</FONT></A>), 软件工程师, 广州市摩网信息技术有限公司<BR></P> <P>2008 年 7 月 18 日</P> <BLOCKQUOTE>本文主要介绍如何在 Linux 系统上安装高性能的 HTTP 服务器 —— Nginx、并在不改变原有网站结构的条件下用 Nginx 来提升网站的访问速度。</BLOCKQUOTE><!--START RESERVED FOR FUTURE USE INCLUDE FILES--><!-- include java script once we verify teams wants to use this and it will work on dbcs and cyrillic characters --><!--END RESERVED FOR FUTURE USE INCLUDE FILES--> <P><A name=N10053><SPAN class=atitle>Nginx 简介</SPAN></A></P> <P><B>Nginx</B> ("engine x") 是一个高性能的 HTTP 和 反向代理 服务器,也是一个 IMAP/POP3/SMTP 代理服务器。 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 Rambler.ru 站点开发的,它已经在该站点运行超过两年半了。 Igor 将源代码以类 BSD 许可证的形式发布。尽管还是测试版,但是,Nginx 已经因为它的稳定性、丰富的功能集、示例配置文件和低系统资源的消耗而闻名了。</P> <P>根据最新一期(08 年 6 月份)的 NetCraft 调查报告显示,已经有超过两百万的主机使用了 Nginx,这个数字超过了另外一个轻量级的 HTTP 服务器 lighttpd, 排名第四,并且发展迅速。下面是这份报告的前几名的报表:</P> <TABLE class=data-table-1 cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD><B>产品</B> </TD> <TD><B>网站数</B> </TD></TR> <TR> <TD>Apache </TD> <TD>84,309,103 </TD></TR> <TR> <TD>IIS </TD> <TD>60,987,087 </TD></TR> <TR> <TD>Google GFE </TD> <TD>10,465,178 </TD></TR> <TR> <TD>Unknown </TD> <TD>4,903,174 </TD></TR> <TR> <TD>nginx </TD> <TD>2,125,160 </TD></TR> <TR> <TD>Oversee </TD> <TD>1,953,848 </TD></TR> <TR> <TD>lighttpd </TD> <TD>1,532,952 </TD></TR></TBODY></TABLE><BR> <P>关于这期调查报告的更详细信息请看下面链接:</P> <P><A href="http://survey.netcraft.com/Reports/200806/" cmImpressionSent="1"><FONT color=#000080>http://survey.netcraft.com/Reports/200806/</FONT></A> </P> <P>下图是最近几个月使用 Nginx 和 lighttpd 的网站数比较</P><BR><A name=N100C8><B>图 1. 最近几个月使用 Nginx 和 lighttpd 的网站数比较</B></A><BR><IMG height=171 alt="图 1. 最近几个月使用 Nginx 和 lighttpd 的网站数比较" src="http://www.ibm.com/developerworks/cn/web/wa-lo-nginx/image001.png" width=257> <BR> <P><A name=N100D5><SPAN class=atitle>使用 Nginx 前必须了解的事项</SPAN></A></P> <OL type=1> <LI>目前官方 Nginx 并不支持 Windows,您只能在包括 Linux、UNIX、BSD 系统下安装和使用; <LI>Nginx 本身只是一个 HTTP 和反向代理服务器,它无法像 Apache 一样通过安装各种模块来支持不同的页面脚本,例如 PHP、CGI 等; <LI>Nginx 支持简单的负载均衡和容错; <LI>支持作为基本 HTTP 服务器的功能,例如日志、压缩、Byte ranges、Chunked responses、SSL、虚拟主机等等,应有尽有。 </LI></OL> <P><A name=N100EC><SPAN class=atitle>在 Linux 下安装 Nginx</SPAN></A></P> <P>为了确保能在 Nginx 中使用正则表达式进行更灵活的配置,安装之前需要确定系统是否安装有 PCRE(Perl Compatible Regular Expressions)包。您可以到 <A href="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/" cmImpressionSent="1"><FONT color=#000080>ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/</FONT></A> 下载最新的 PCRE 源码包,使用下面命令下载编译和安装 PCRE 包:</P> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD class=code-outline><PRE class=displaycode># wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-7.7.tar.gz # tar zxvf pcre-7.7.tar.gz # cd pcre-7.7 # ./configure # make # make install </PRE></TD></TR></TBODY></TABLE><BR> <P>接下来安装 Nginx,Nginx 一般有两个版本,分别是稳定版和开发版,您可以根据您的目的来选择这两个版本的其中一个,下面是把 Nginx 安装到 /opt/nginx 目录下的详细步骤:</P> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD class=code-outline><PRE class=displaycode># wget http://sysoev.ru/nginx/nginx-0.6.31.tar.gz # tar zxvf nginx-0.6.31.tar.gz # cd nginx-0.6.31 # ./configure --with-http_stub_status_module –prefix=/opt/nginx # make # make install </PRE></TD></TR></TBODY></TABLE><BR> <P>其中参数 <CODE><FONT face=NSimsun>--with-http_stub_status_module</FONT></CODE> 是为了启用 nginx 的 NginxStatus 功能,用来监控 Nginx 的当前状态。</P> <P>安装成功后 /opt/nginx 目录下有四个子目录分别是:conf、html、logs、sbin 。其中 Nginx 的配置文件存放于 conf/nginx.conf,Nginx 只有一个程序文件位于 sbin 目录下的 nginx 文件。确保系统的 80 端口没被其他程序占用,运行 sbin/nginx 命令来启动 Nginx,打开浏览器访问此机器的 IP,如果浏览器出现 Welcome to nginx! 则表示 Nginx 已经安装并运行成功。</P> <P><A name=N1010F><SPAN class=atitle>常用的 Nginx 参数和控制</SPAN></A></P> <P><A name=N10116><SPAN class=smalltitle>程序运行参数</SPAN></A></P> <P>Nginx 安装后只有一个程序文件,本身并不提供各种管理程序,它是使用参数和系统信号机制对 Nginx 进程本身进行控制的。 Nginx 的参数包括有如下几个:</P> <P><B>-c</B> <path_to_config>:使用指定的配置文件而不是 conf 目录下的 nginx.conf 。</P> <P><B>-t</B>:测试配置文件是否正确,在运行时需要重新加载配置的时候,此命令非常重要,用来检测所修改的配置文件是否有语法错误。</P> <P><B>-v</B>:显示 nginx 版本号。</P> <P><B>-V</B>:显示 nginx 的版本号以及编译环境信息以及编译时的参数。</P> <P>例如我们要测试某个配置文件是否书写正确,我们可以使用以下命令</P> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD class=code-outline><PRE class=displaycode>sbin/nginx – t – c conf/nginx2.conf</PRE></TD></TR></TBODY></TABLE><BR> <P><A name=N1013E><SPAN class=smalltitle>通过信号对 Nginx 进行控制</SPAN></A></P> <P>Nginx 支持下表中的信号:</P> <TABLE class=data-table-1 cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD><B>信号名</B> </TD> <TD><B>作用描述</B> </TD></TR> <TR> <TD>TERM, INT </TD> <TD>快速关闭程序,中止当前正在处理的请求 </TD></TR> <TR> <TD>QUIT </TD> <TD>处理完当前请求后,关闭程序 </TD></TR> <TR> <TD>HUP </TD> <TD>重新加载配置,并开启新的工作进程,关闭就的进程,此操作不会中断请求 </TD></TR> <TR> <TD>USR1 </TD> <TD>重新打开日志文件,用于切换日志,例如每天生成一个新的日志文件 </TD></TR> <TR> <TD>USR2 </TD> <TD>平滑升级可执行程序 </TD></TR> <TR> <TD>WINCH </TD> <TD>从容关闭工作进程 </TD></TR></TBODY></TABLE><BR> <P>有两种方式来通过这些信号去控制 Nginx,第一是通过 logs 目录下的 nginx.pid 查看当前运行的 Nginx 的进程 ID,通过 <CODE><FONT face=NSimsun>kill – XXX <pid></FONT></CODE> 来控制 Nginx,其中 XXX 就是上表中列出的信号名。如果您的系统中只有一个 Nginx 进程,那您也可以通过 <CODE><FONT face=NSimsun>killall</FONT></CODE> 命令来完成,例如运行 <CODE><FONT face=NSimsun>killall – s HUP nginx</FONT></CODE> 来让 Nginx 重新加载配置。</P> <P><A name=N101A4><SPAN class=atitle>配置 Nginx</SPAN></A></P> <P>先来看一个实际的配置文件:</P> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD class=code-outline><PRE class=displaycode> user nobody;# 工作进程的属主 worker_processes 4;# 工作进程数,一般与 CPU 核数等同 #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { use epoll;#Linux 下性能最好的 event 模式 worker_connections 2048;# 每个工作进程允许最大的同时连接数 } http { include mime.types; default_type application/octet-stream; #log_format main '$remote_addr - $remote_user [$time_local] $request ' # '"$status" $body_bytes_sent "$http_referer" ' # '"$http_user_agent" "$http_x_forwarded_for"'; #access_log off; access_log logs/access.log;# 日志文件名 sendfile on; #tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; include gzip.conf; # 集群中的所有后台服务器的配置信息 upstream tomcats { server 192.168.0.11:8080 weight=10; server 192.168.0.11:8081 weight=10; server 192.168.0.12:8080 weight=10; server 192.168.0.12:8081 weight=10; server 192.168.0.13:8080 weight=10; server 192.168.0.13:8081 weight=10; } server { listen 80;#HTTP 的端口 server_name localhost; charset utf-8; #access_log logs/host.access.log main; location ~ ^/NginxStatus/ { stub_status on; #Nginx 状态监控配置 access_log off; } location ~ ^/(WEB-INF)/ { deny all; } location ~ \.(htm|html|asp|php|gif|jpg|jpeg|png|bmp|ico|rar|css|js| zip|java|jar|txt|flv|swf|mid|doc|ppt|xls|pdf|txt|mp3|wma)$ { root /opt/webapp; expires 24h; } location / { proxy_pass http://tomcats;# 反向代理 include proxy.conf; } error_page 404 /html/404.html; # redirect server error pages to the static page /50x.html # error_page 502 503 /html/502.html; error_page 500 504 /50x.html; location = /50x.html { root html; } } } </PRE></TD></TR></TBODY></TABLE><BR> <P><A name=N101B2><SPAN class=smalltitle>Nginx 监控</SPAN></A></P> <P>上面是一个实际网站的配置实例,其中灰色文字为配置说明。上述配置中,首先我们定义了一个 location ~ ^/NginxStatus/,这样通过 http://localhost/NginxStatus/ 就可以监控到 Nginx 的运行信息,显示的内容如下:</P> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD class=code-outline><PRE class=displaycode>Active connections: 70 server accepts handled requests 14553819 14553819 19239266 Reading: 0 Writing: 3 Waiting: 67 </PRE></TD></TR></TBODY></TABLE><BR> <P>NginxStatus 显示的内容意思如下:</P> <UL> <LI>active connections – 当前 Nginx 正处理的活动连接数。 <LI>server accepts handled requests -- 总共处理了 14553819 个连接 , 成功创建 14553819 次握手 ( 证明中间没有失败的 ), 总共处理了 19239266 个请求 ( 平均每次握手处理了 1.3 个数据请求 )。 <LI>reading -- nginx 读取到客户端的 Header 信息数。 <LI>writing -- nginx 返回给客户端的 Header 信息数。 <LI>waiting -- 开启 keep-alive 的情况下,这个值等于 active - (reading + writing),意思就是 Nginx 已经处理完正在等候下一次请求指令的驻留连接。 </LI></UL> <P><A name=N101D4><SPAN class=smalltitle>静态文件处理</SPAN></A></P> <P>通过正则表达式,我们可让 Nginx 识别出各种静态文件,例如 images 路径下的所有请求可以写为:</P> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD class=code-outline><PRE class=displaycode>location ~ ^/images/ { root /opt/webapp/images; } </PRE></TD></TR></TBODY></TABLE><BR> <P>而下面的配置则定义了几种文件类型的请求处理方式。</P> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD class=code-outline><PRE class=displaycode>location ~ \.(htm|html|gif|jpg|jpeg|png|bmp|ico|css|js|txt)$ { root /opt/webapp; expires 24h; } </PRE></TD></TR></TBODY></TABLE><BR> <P>对于例如图片、静态 HTML 文件、js 脚本文件和 css 样式文件等,我们希望 Nginx 直接处理并返回给浏览器,这样可以大大的加快网页浏览时的速度。因此对于这类文件我们需要通过 root 指令来指定文件的存放路径,同时因为这类文件并不常修改,通过 <CODE><FONT face=NSimsun>expires</FONT></CODE> 指令来控制其在浏览器的缓存,以减少不必要的请求。 <CODE><FONT face=NSimsun>expires</FONT></CODE> 指令可以控制 HTTP 应答中的“ Expires ”和“ Cache-Control ”的头标(起到控制页面缓存的作用)。您可以使用例如以下的格式来书写 Expires:</P> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD class=code-outline><PRE class=displaycode>expires 1 January, 1970, 00:00:01 GMT; expires 60s; expires 30m; expires 24h; expires 1d; expires max; expires off; </PRE></TD></TR></TBODY></TABLE><BR> <P><A name=N101F7><SPAN class=smalltitle>动态页面请求处理</SPAN></A></P> <P>Nginx 本身并不支持现在流行的 JSP、ASP、PHP、PERL 等动态页面,但是它可以通过反向代理将请求发送到后端的服务器,例如 Tomcat、Apache、IIS 等来完成动态页面的请求处理。前面的配置示例中,我们首先定义了由 Nginx 直接处理的一些静态文件请求后,其他所有的请求通过 proxy_pass 指令传送给后端的服务器(在上述例子中是 Tomcat)。最简单的 <CODE><FONT face=NSimsun>proxy_pass</FONT></CODE> 用法如下:</P> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD class=code-outline><PRE class=displaycode>location / { proxy_pass http://localhost:8080; proxy_set_header X-Real-IP $remote_addr; } </PRE></TD></TR></TBODY></TABLE><BR> <P>这里我们没有使用到集群,而是将请求直接送到运行在 8080 端口的 Tomcat 服务上来完成类似 JSP 和 Servlet 的请求处理。</P> <P>当页面的访问量非常大的时候,往往需要多个应用服务器来共同承担动态页面的执行操作,这时我们就需要使用集群的架构。 Nginx 通过 <CODE><FONT face=NSimsun>upstream</FONT></CODE> 指令来定义一个服务器的集群,最前面那个完整的例子中我们定义了一个名为 tomcats 的集群,这个集群中包括了三台服务器共 6 个 Tomcat 服务。而 proxy_pass 指令的写法变成了:</P> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD class=code-outline><PRE class=displaycode>location / { proxy_pass http://tomcats; proxy_set_header X-Real-IP $remote_addr; } </PRE></TD></TR></TBODY></TABLE><BR> <P>在 Nginx 的集群配置中,Nginx 使用最简单的平均分配规则给集群中的每个节点分配请求。一旦某个节点失效时,或者重新起效时,Nginx 都会非常及时的处理状态的变化,以保证不会影响到用户的访问。</P> <P><A name=5.总结|outline><SPAN class=atitle>总结</SPAN></A></P> <P>尽管整个程序包只有五百多 K,但麻雀虽小、五脏俱全。 Nginx 官方提供的各种功能模块应有尽有,结合这些模块可以完整各种各样的配置要求,例如:压缩、防盗链、集群、FastCGI、流媒体服务器、Memcached 支持、URL 重写等等,更关键的是 Nginx 拥有 Apache 和其他 HTTP 服务器无法比拟的高性能。您甚至可以在不改变原有网站的架构上,通过在前端引入 Nginx 来提升网站的访问速度。</P> <P>本文只是简单介绍了 Nginx 的安装以及常见的基本的配置和使用,更多关于 Nginx 的信息请阅读文章后面的参考资源。在这里要非常感谢我的朋友——陈磊(chanix@msn.com),他一直在做 Nginx 的中文 WIKI(<A href="http://wiki.codemongers.com/NginxChs" cmImpressionSent="1"><FONT color=#000080>http://wiki.codemongers.com/NginxChs</FONT></A>),同时也是他介绍给我这么好的一款软件。</P> <P>如果您的网站是运行在 Linux 下,如果您并没有使用一些非常复杂的而且确定 Nginx 无法完成的功能,那您应该试试 Nginx 。</P><BR><BR> <P><A name=resources><SPAN class=atitle>参考资料 </SPAN></A></P><B>学习</B><BR> <UL> <LI>查阅 <A href="http://www.nginx.net/" cmImpressionSent="1"><FONT color=#000080>Nginx 英文站点</FONT></A>。 <BR><BR> <LI>查阅 <A href="http://wiki.codemongers.com/NginxChs" cmImpressionSent="1"><FONT color=#000080>Nginx 中文 WIKI</FONT></A>。 <BR><BR> <LI>查阅 <A href="http://wiki.codemongers.com/Main" cmImpressionSent="1"><FONT color=#000080>Nginx 英文 WIKI</FONT></A>。 <BR><BR> <LI>另外一个轻量级 HTTP 服务器 <A href="http://www.lighttpd.net/" cmImpressionSent="1"><FONT color=#000080>lighttpd</FONT></A>。 <BR><BR><A href="http://www.nginx8.cn/nginx/18/106.html">http://www.nginx8.cn/nginx/18/106.html</A></LI></UL> <P> </P><BR><B>获得产品和技术</B><BR> <UL> <LI>下载 <A href="http://sysoev.ru/nginx/nginx-0.6.31.tar.gz" cmImpressionSent="1"><FONT color=#000080>最新版本的 Nginx</FONT></A>。 <BR><BR> <LI>下载 <A href="ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/" cmImpressionSent="1"><FONT color=#000080>PCRE</FONT></A>。 </LI></UL><BR><BR></TD></TR></TBODY></TABLE></DIV>
查看全文
发表于:2009-03-24 ┆
阅读(175)
┆
评论(0)
男人必看,很有意义
<DIV>面对声色犬马的物质诱惑,我犹豫了.我想告诉我的男人,我爱你.我也离不开你,我也想24小时和你腻在一起,但还是因为我爱你,我强迫自己独立.</DIV> <DIV> 我想告诉我的男人,我希望你有钱,因为我骨子里有所有女人都有的贪婪和虚荣.你可以不养着我,但你要有养我的能力.吃糠咽菜的日子谁都不想过.让自己的女人受苦,是爷们吗?</DIV> <DIV> 在你20多岁没钱,没车,没房的时候,你一生中最一无所有穷困潦倒的时候,我正拥有一生中最好的时光,年轻,单纯,美丽.</DIV> <DIV> 我想告诉我的男人,如果你有10块钱,那你要花3块钱给我买一串糖葫芦吃.如果你有200块钱,我们必须得去吃一次我想吃的三千里.不然,你凭什么说爱我?</DIV> <DIV> 恋爱的时候,什么好听的你都可以说,但有些事情不是光说说的.你爱我的时候可以为我当牛做马,但我没有把你真的当成牛马.吵架的时候,你就服个软,让我两句,又能怎么样?老爷们能屈能伸,不是吃亏.</DIV> <DIV> 你换来的是我死心塌地的爱,一个好媳妇.你做的一切都是值得的.不要想到上床才想到媳妇,媳妇不是用来作爱的.而是用来好好爱的.</DIV> <DIV> 说了上面的话,会遭到男人的围攻吧?哈哈,我不在乎,我是个女人,是个懂得爱的女人,我说的也都是实话,如果男人可以好好想想我说的话,那么不管你有钱没钱都会找到个好姑娘.不要抱怨没有好女人,这样的心态不对.什么事情都要有个平衡的心态,只有这样你才可能成功.<BR></DIV>
查看全文
发表于:2009-03-14 ┆
阅读(207)
┆
评论(0)
安装行车口诀
<DIV> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; LINE-HEIGHT: 14pt; mso-char-indent-count: 2.0; mso-line-height-rule: exactly; mso-layout-grid-align: none"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT size=3>用车之前想一想,交通安全记心上;</FONT></SPAN><SPAN lang=EN-US><BR></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT size=3> 行车路上想一想,注意行人和车辆;</FONT></SPAN><SPAN lang=EN-US><BR></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT size=3> 交叉路口想一想,一看二慢三不抢;</FONT></SPAN><SPAN lang=EN-US><BR></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT size=3> 转弯之前想一想,减速鸣号守规章;</FONT></SPAN><SPAN lang=EN-US><BR></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT size=3> 会车之前想一想,礼让三先高风尚;</FONT></SPAN><SPAN lang=EN-US><BR></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT size=3> 超车之前想一想,没有把握不勉强;</FONT></SPAN><SPAN lang=EN-US><BR></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT size=3> 山泥道路想一想,路滑要把车速降;</FONT></SPAN><SPAN lang=EN-US><BR></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT size=3> 雾天行车想一想,打开雾灯换低档;</FONT></SPAN><SPAN lang=EN-US><BR></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT size=3> 停车之前想一想,选择地点要宽敞;</FONT></SPAN><SPAN lang=EN-US><BR></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT size=3> 车辆入库想一想,仔细检查勤保养。</FONT></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; LINE-HEIGHT: 14pt; mso-char-indent-count: 2.0; mso-line-height-rule: exactly; mso-layout-grid-align: none"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT size=3></FONT></SPAN> </P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; LINE-HEIGHT: 14pt; mso-char-indent-count: 2.0; mso-line-height-rule: exactly; mso-layout-grid-align: none"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT size=3></FONT></SPAN> </P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; LINE-HEIGHT: 14pt; mso-char-indent-count: 2.0; mso-line-height-rule: exactly; mso-layout-grid-align: none"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"> <TABLE style="BORDER-COLLAPSE: collapse" borderColor=#dddddd cellSpacing=0 cellPadding=0 width=360 align=center border=1> <TBODY> <TR height=60> <TD align=middle width=60><IMG alt="" src="http://control.cublog.cn/fileicon/rar.gif" border=0></TD> <TD> <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR height=20> <TD align=middle width=40>文件:</TD> <TD>汽车驾驶知识—正常.rar</TD></TR> <TR height=20> <TD align=middle width=40>大小:</TD> <TD>154KB</TD></TR> <TR height=20> <TD align=middle width=40>下载:</TD> <TD><A href="http://blogimg.chinaunix.net/blog/upfile2/090314005242.rar">下载</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></SPAN></P> <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 21pt; LINE-HEIGHT: 14pt; mso-char-indent-count: 2.0; mso-line-height-rule: exactly; mso-layout-grid-align: none"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT size=3>附件中有汽车驾驶知识</FONT></SPAN></P></DIV>
查看全文
发表于:2009-03-14 ┆
阅读(271)
┆
评论(0)
学车顺口溜 只要牢记考试准能过
<DIV> <DIV align=center><STRONG>学车顺口溜 只要牢记考试准能过</STRONG></DIV> <DIV align=center> </DIV> <DIV align=center> </DIV> <DIV align=center>上车喊报告!</DIV> <DIV align=center> 拉门出左脚,坐好叫考官,面带梨涡笑。</DIV> <DIV align=center> 关门深呼吸,坐姿要摆好。</DIV> <DIV align=center> 查看空挡位,点火要轻柔。</DIV> <DIV align=center> 方向别忘了,挂挡要干脆,手刹要放掉。</DIV> <DIV align=center> 起步问考官,多看后视镜,喇叭来欢叫。</DIV> <DIV align=center> 离合器放松,做好半连动,出发要稳当,别让考官晃!</DIV> <DIV align=center> 换挡要及时,加挡要迅速,遇人要刹车,可别过了头。</DIV> <DIV align=center> 转弯要减速,立即减下挡,多看多停顿,安全放心中。</DIV> <DIV align=center> 肩膀要放松,双手放到位,神态要自然,莫因考官慌。</DIV> <DIV align=center> 自己有信心,艰辛都不怕,胆大又心细,礼貌别忘了。</DIV> <DIV align=center> 只要牢记着,考试准能过! (热心车友提供)</DIV></DIV>
查看全文
发表于:2009-03-14 ┆
阅读(257)
┆
评论(0)
贴库、移库、倒库经验备忘
<DIV> <TABLE cellSpacing=0 cellPadding=0 width="96%" align=center border=0> <TBODY> <TR> <TD class=black_sz14 align=middle height=30>贴库、移库、倒库经验备忘</TD></TR> <TR> <TD> <P>一、贴库 <BR> 调好坐椅,人坐端正。缓慢起步,右转头部。用右后小窗上的标志点瞄准中杆双手缓慢右转方向盘(可微微提前一点)。当被瞄准的中杆过标志点后方向盘随之打到底 然后开始看后车窗。当后窗最外侧的蓝色标志点即将与后中杆重合时 (有点提前量)快速回轮两圈使方向盘归原始位。接着右转身右手扶右座 左手单手把轮,手放在方向盘的正前标志点上,头居两车座中间,单手转动方向盘修正入库方向使车尾驶向两杆中间(此时速度容易加快,注意加以控制,以防停车冲过头)。 修正方向后方向盘回正,人也回位坐正,头部位于驾驶座上方看右后小窗。当右后小窗标志点与后中杆重合或综合感觉车尾到位时(可稍有点提前量) 及时停车(利用刹车而不是离合器来实现准确停车,无须追求平稳缓停)。 在抬起脚刹之前挂好下一步要用的档位(前进1档),然后踩住离合器抬脚刹。如果需要调整一下左脚在离合器上的上下位置,踩住刹车挂空档然后调脚,调完后马上踩下离合器然后抬起脚刹(即空档放松左脚时最好踩住脚刹以防有坡溜车)。 </P> <P><BR> 注意事项: ⑴ 不要图快图痛快,再熟练也要保持慢速,充分利用此时机熟悉所用车离合器灵敏度, 增加控制车速之能力。 ⑵ 通过离合控制速度使慢而不停是贴、移、倒库过程中的始终关键。只有慢,才能来得及做该做的动作和保持从容不迫。每次起步都要慢抬离合,匀缓起动,不要怕别人笑话你慢(反正没这方面规定)。行车过程中踩离合的脚要始终脉冲式加力减力 地微微运动,动态地、有一定提前量地控制速度使慢而不停。如果感到车要停了或已经接近停止,快抬离合时千万不要幅度过大以防熄火, 可根据发动机声音和震动的变化微收微放离合。桩考时车停3秒才算停车一次,停车两次重新考试。因此, 由于慢而不小心形成的瞬间停车只要不超过3秒就不算错。不要因为怕停而不敢让速度放慢。 ⑶ 停不停车已不重要,重要的是千万不要前后碰杆和出前后线,一碰杆或出线则必完。故停车时最好多留点安全距离,尽量少冒险玩悬。 ⑷ 用标志点瞄准中杆时,越在杆到标志点之前就转方向盘,入库时车离中杆越近,离另一杆越远。反之则相反。如果贴库、倒库之前车的侧面离库太近,瞄准时应让杆过标志点一点再转方向盘,以防车头刮到杆。 ⑸ 不用脚刹时右脚尽力抬高或离开脚刹以防脚刹被不经意略踩到干扰正常操作。 <BR><BR>二、移库 <BR> 1.一上 <BR> 起动前踩下离合挂好1档抬高右脚,先把方向盘右转2圈到头并用手压住(而不是先转一圈起动后再转到头)(尽可能减少车动以后的操作内容,使自己能 分出更多注意力控制速度)。 起步前最好把要做的步骤过一遍脑:何时左回轮,何时右回轮,何时停车,注意什么...缓慢抬起离合使车慢慢起步,保持慢而不停和方向盘右打到头。 前窗左标志点与前中杆重合(最好稍过一点时)时快速左打方向盘到打不动为止(打轮越快后面操作富裕的时间越多)。 当车身转正之时如果已经接近前中杆则及时停车。如果离前中杆还有一点距离,则右回轮两圈,在车接近前中杆时及时停车(多一点安全距离千万别碰杆)。 <BR>注意事项: <BR> ⑴ 一上、一下、二上前三步车身向右移位的幅度越大,最后一步二下(入库不过后线不碰后杆)越容易和安全。一上、一下、二上起步后目标杆稍过一点车窗上的标志点再回轮可使车身向右移位幅度加大。 ⑵ 当车身转正之时如果已经接近前中杆则应马上及时停车,等停车后再原地回轮(与下一步动作结合)。也就是说,一上、一下、二上乃至二下在车动了以后要做的事只有一个:标志物到位以后快速打轮到底 ,车身转正后如果已经接近前中杆则及时停车,如果离前中杆还有一点距离,则右回轮两圈,在车接近前中杆时及时停车。利用此法,前后杆的距离就是再小点也不怕( 大不了不回轮两圈。故停车时多留点安全距离不会影响下一步)。 ⑶ 控制车速保持低速是自始自终最留心注意的事情。宁可慢得偶尔停一下不可使车速突然偏快来不及完成动作。车速一慢,打轮 也可慢。慌乱中宁可稍稍停下正在进行的快速打轮,全力控制住车速,不可因注意力都放在了快速打轮上而使车速加快。 <BR><BR>2.一下 <BR> 起步前挂上倒档然后把方向盘右转到头并按住。快速想一遍下面要做的步骤。 慢慢让车动起来并压住速度保持慢速。 双手扶轮,右转头看后方(头部位于驾驶座位置)。后窗左标志点与后中杆重合(最好稍过一点)时以快速左打方向盘到打不动为止(此时车速容易加快,注意提前下踩一点离合器)。 当车身转正之时如果后面已接近后中杆则及时停车。如果离杆还有点距离,则回轮两圈在车接近中杆时及时停车(多一点安全距离千万别碰杆)。 <BR>注意事项:同上。 <BR>3.二上<BR> 基本同一上。起步前挂档后先把方向盘右转到头并压住。起步前先把操作步骤过一遍脑:何时左回轮,何时右回轮,何时停车... 慢抬离合微动起步,保持慢而不停和方向盘右打到头。 前窗右标志点与前右杆重合时在稳住速度的基础上以最快的速度左打方向盘到打不动为止。 当车身转正之时如果已经接近前中杆则及时停车。如果离前中杆还有一点距离,则右回轮两圈,在车接近前中杆时及时停车(多一点安全距离千万别碰杆)。 <BR>注意事项:同前。 <BR>4.二下 <BR> 踩住离合和脚刹挂上倒档把方向盘右转到头并按住 ,然后抬起右脚(尽力抬高)。想一遍下面要做的内容。慢慢让车动起来并压住离合保持慢速。原地右转脸当看到后中杆一进入左小后窗时即 在保持低速的基础上快速左打方向盘到打不动为止(此时车速容易加快,注意提前一点控制好离合器)。当车身转正前窗右标志点与前右杆接近重合时停车。 停车后随手挂上一档。 <BR> 注意事项: ⑴ 车停前可不回正方向盘,因为紧接着要驶向左前方。 ⑵ 后中杆进入左小后窗右左打方向盘到底要快,车速要慢,否则车尾会出底线。此时注意综合观察车身位置,只要后中杆进入左小后窗,车就肯定能进入右库(过了前后中杆连成的中间线)。此时只要车身转正,车头就会过了前后中杆连成的中间线进入右库完成移库任务。关键是车尾别碰右后杆和别出底线。一旦发现车尾快碰右后杆和要出底线时,即使车身未完全转正、前窗右标志点与前右杆未完全重合也应立即停车。 <BR>三、倒库<BR>1.出库<BR> 保持方向盘左打到底,高抬脚刹,慢抬离合,缓慢起步,当前窗右标志点与前中杆重合并稍过一点点时右打轮两圈使车直线前行缓慢通过左前杆和前中杆。此时注意观看车头两侧与杆距离,及时转动方向盘修正避免与杆擦碰。 <BR> 注意事项:压住速度,缓慢通过,及时修正调整。 <BR>2.左转车就位<BR> 车左前角与前方路边线重合时快速左打轮到底。车向左边转正(与道路平行)时快速回轮两圈前行1米后停车。此过程也是要压住速度。只有速度慢,才能及时拐过弯来车身不偏与路平行。 <BR> 3.倒车入库<BR> 挂好倒档,缓慢起步,单手打轮,另手扶座。右转头看后方,头部位于驾驶座位置(不是移到车中间)。用左小后窗的标志点瞄准前中杆并围着它转(方向盘慢慢 单手左打)。中杆往前出左小后窗时方向盘打到底,保持慢速,一旦后窗中间标志点(红长条)与后右杆重合马上右回轮两圈(带点预见性提前半秒转身然后回轮)。 然后单手扶轮(手扶在方向盘的彩色标记上),右手扶座,头部移到车中间进行左右修轮(修正倒车方向使车左右不偏)。距离后边线一米远时停车。 <BR>四、其它注意点(反复提醒)<BR> 1、不要挂错档。 2、不要转错方向盘方向:贴库时双手右打轮,倒库时单手左打轮。 3、慢抬离合千万不要熄火。不要怕人笑话慢。 4、在控制好车速的情况下打方向盘总是越快越好。二者矛盾时优先控制车速。 5、意外停车时也要慢抬离合,否则会熄火。 6、千万不要看错杆。 7、回轮两圈别数错。8、放松精神,持轻松随意态度。9、穿厚底旅游鞋。10、将此文反复熟记,事前过脑,大有好处。 <BR>桩考评定标准 <BR> 按规定的路线,从起点将车倒入左库停正,再二进二退移位到右库停正,接着前进穿过左库至路上,再倒入右库停正。 <BR> 要领: 低速行驶,正确运用方向开把时间和角度 <BR>有下列情况之一者为不及格: <BR> 1.不按规定路线、顺序行驶(看错杆)。 <BR> 2.碰擦桩杆。 <BR> 3.车身出线。 <BR> 4.移库不入。 <BR> 5.中途停车2次(包括2次)<BR> 6.熄火</P></TD></TR></TBODY></TABLE></DIV>
查看全文
发表于:2009-03-14 ┆
阅读(526)
┆
评论(0)
学车训练口诀
<DIV> <TABLE cellSpacing=0 cellPadding=0 width=558 align=center border=0> <TBODY> <TR> <TD class=huitxt align=right></TD></TR> <TR> <TD class=content vAlign=top height=140> <P>学车训练口诀<BR> </P> <P><BR> </P> <P><BR>学员换人程序,学员换人要作到车尾下车右则绕,绕到左门喊报告。 <BR> 上车程序,打开车门要问好,右手扶手,左手门,左腿踏板右腿到,注意要把门关牢,调整座位来报到,左腿离合右腿油,轰声空油报仪表(考官同意起步走)。转向灯,后视镜,踏离合挂(一挡,二挡)。 <BR> 上坡起步,油离配合放手刹,手刹跟着油门下。下坡起步,转向灯,后视镜,踏离合挂(一挡,二挡)注意要把手刹先放下,油离配合跟油走,达到平稳起步的目的。 <BR> 上坡行驶,要想加挡先加速,加速在先,加挡在后。要想减挡先减速,减速在先,减挡在后。 <BR> 下坡行驶,起步后,要跟油走,连续加挡不加油。要想减挡先减速,减速在先,减挡在后。 <BR> 路面行驶总结一句:根据不同的路面情况,选择不同的车速,根据不同的车速,选择不同的挡位,拉开前后车的安全距离,达到安全平稳行驶的目的。 <BR> 路口行驶,进入路口之前三十米,减速选挡,观察路口情况,听从教练口令,抓住时机,随车尾通过,不能迎车头走,随车尾通过体现让行,顺利通过。迎车头体现抢行,两车相遇,违章在先。 <BR> 通过障碍,单边双边和井盖要注意自己的左膝盖。 <BR> 苜蓿叶桥,教练发出右转弯直接右转上引桥,教练发出左转以两个右转达到调头目的,交叉路不准转弯。环岛桥看做是环岛逆时针方向绕环岛。不同的是环岛中间有条直行道,环岛四周有引桥,环岛桥分成四等份90度右转180度,直行270度,左转360度调头。 <BR> 环岛,以逆时针方向绕环岛进左,出右调头左转走里,直右走边,找路号。 <BR> 弯道行驶,上坡转弯,弯前减速选择挡位,打方向弯中加油回方向,回正方向根据情况变换挡位,跟油走。下坡转弯,弯前减速带着刹车打方向回正方向,根据情况变换挡位直行走。 <BR> 上坡行驶中,教练发出停车令,转向灯后视镜,作到选择挡位,跟油走,调整方位右,左,右靠边要把车放正,收油门备刹车,代刹车的同时,切断离合,再利用刹车控制速度到停车,拉手刹挡摘下,转向灯回位,抬离合放刹车,停车完毕。 <BR> 下坡行驶中,教练发出停车令,转向灯后视镜,带着刹车,调整方位右,左,右靠边要把车放正,切断离合再去刹车,达到平稳停车,拉手刹挡摘下,转向灯回位,抬离合放刹车,停车程序完毕。 <BR></P></TD></TR></TBODY></TABLE></DIV>
查看全文
发表于:2009-03-14 ┆
阅读(632)
┆
评论(0)
中关村电脑装机必看
<div> 1.一般去中关村装电脑(包括台式机和笔记本)时最好在网上查一下相关配件价格,相关配件的评价,这样购买时也能心里有数,不会受到经销商的忽悠。如果有朋友懂电脑最好随行。</div> <div>装机查询网站:<a href="http://www.pcpop.com">http://www.pcpop.com</a>, <a href="http://www.it168.com">http://www.it168.com</a>, <a href="http://www.zol.com.cn">http://www.zol.com.cn</a> </div> <div> <a href="http://www.lenovo.com.cn">http://www.lenovo.com.cn</a> </div> <div> </div> <div> 2.购买时要货比三家,不要急于购买,多询价,这样在购买时经销商不会加太多的水分。购买时要记着:一分价钱,一分货,便宜不一定没好货,好货肯定不会便宜。</div> <div> </div> <div> 3. 购买液晶显示器和笔记本前一定要用<font color="#0080ff" size="4">验机软件</font>测试<font color="#ff0000" size="4">亮点</font>和<font color="#ff0000" size="4">坏点</font>。 最好使用一两个小时,这样也能测试一下机器性能。</div> <div> </div> <div> 4.尽管windows7已经出了测试版,但现在大多人还是用windowsxp,故推荐以下链接:</div> <div> <a href="http://www.luobo.cc">http://www.luobo.cc</a> 萝卜家园 <font color="#009900" size="4">萝卜家园笔记本安装版XP</font>支持台式机和笔记本安装,自动安装驱动。</div> <div> </div> <div> <a href="http://www.wzlu.com">http://www.wzlu.com</a> 小路工作室 <font color="#ff0000" size="4">最新GHOSTXP 2009贺岁版</font>可下载使用 支持最新台式机,笔记本不支持。</div> <div> </div> <div> 这两个论坛均可下载GHOSTxp.经测试均支持市场主流配件,稳定可靠。</div> <div> </div> <div> 5.硬盘分区:320G以上大硬盘需要使用<font color="#ff0000" size="4">DM10.0分区</font><font color="#ff0000" size="4"></font>。因为DM9.0版本不支持320G以上大硬盘。</div> <div> </div> <div> 6.系统备份:</div> <div> <font color="#ff0000" size="4">一键还原精灵</font>,是一款傻瓜式的系统备份和还原工具。它具有安全、快速、保密性强、压缩率高、兼容性好等特点,特别适合电脑新手和担心操作麻烦的人使用。 快速还原,支持WIN 98/XP/2000/NT/Vista .</div> <div> <a href="http://www.yjhy.net/xzdz.htm">http://www.yjhy.net/xzdz.htm</a> 官方下载地址</div> <div> </div> <div> <font color="#009900" size="4">中正电脑拯救系统</font> </div> <div> <table align="left" border="0" cellpadding="10" cellspacing="0"> <tbody> <tr> <td><img class="pic2" src="http://lenovo.xnbn.com/Soft/UploadSoftPic/200712/20071228215225375.gif" width="150" border="0"></td></tr></tbody></table> <p class="MsoNormal" style="margin: 0cm 0cm 0pt; text-indent: 21pt;"><font size="3"><span style="font-family: 宋体;">本系统采用联想电脑一键还原系统内核,可使用在兼容机、联想、</span><span lang="EN-US"><font face="宋体, MS Song">DELL</font></span><span style="font-family: 宋体;">等品牌机上。系统的备份还原方式为:先使用“系统部署”功能为系统部署</span><span lang="EN-US"><font face="宋体, MS Song">HPA</font></span><span style="font-family: 宋体;">分区,重启后,使用“系统备份”功能为系统做备份,当系统出现故障后,使用“一键还原”功能恢复系统。由于使用</span><span lang="EN-US"><font face="宋体, MS Song">HPA</font></span><span style="font-family: 宋体;">分区保存备份数据,所以备份数据很难被破坏,保障备份文件的安全性。</span></font></p> <p><span style="font-size: 10.5pt; font-family: 宋体;">本系统由于使用</span><span style="font-size: 10.5pt; font-family: Calibri;" lang="EN-US"><font face="宋体, MS Song">HPA</font></span><span style="font-size: 10.5pt; font-family: 宋体;">分区做备份,因此要求必须是支持支持</span><span style="font-size: 10.5pt; font-family: Calibri;" lang="EN-US"><font face="宋体, MS Song">HPA</font></span><span style="font-size: 10.5pt; font-family: 宋体;">功能的硬盘才能正常使用,经测试,市场上出售的各类硬盘基本都支持</span><span style="font-size: 10.5pt; font-family: Calibri;" lang="EN-US"><font face="宋体, MS Song">HPA</font></span><span style="font-size: 10.5pt; font-family: 宋体;">,仅有</span><span style="font-size: 10.5pt; font-family: Calibri;" lang="EN-US"><font face="宋体, MS Song">HP</font></span><span style="font-size: 10.5pt; font-family: 宋体;">、</span><span style="font-size: 10.5pt; font-family: Calibri;" lang="EN-US"><font face="宋体, MS Song">COMPAQ</font></span><span style="font-size: 10.5pt; font-family: 宋体;">等厂商的品牌机不能支持,您也可使用</span><span style="font-size: 10.5pt; font-family: Calibri;" lang="EN-US"><font face="宋体, MS Song">HDTune2.52</font></span><span style="font-size: 10.5pt; font-family: 宋体;">硬盘检测工具(已集成在本系统中)检测硬盘的信息.</span></p></div> <div><a href="http://lenovo.xnbn.com/Soft/system/200712/23.html">http://lenovo.xnbn.com/Soft/system/200712/23.html</a>官方下载地址 目前没有测试过。</div> <div> 以上内容仅供参考。</div> <div> 7.密码恢复 <br>ERD5.0对win2008及Vista操作系统不起做用,怎么样破解win2008及vista呢?通过ERD6.0工具光盘来恢复。或者是龙卷风vista光盘也能修改vista密码。<br> 8.分区调整 <br><h2>QuickVaio 2009恋冬版 DVD&U盘双版本带Acronis Disk Director可以实现分区调整,不丢失数据。</h2>WinPE里带了Acronis Disk Director,就是俗称的ADD分区软件,可以在不破坏隐藏分区的基础上随意调整分区的大小,建议有动手能力的朋友使用<br></div> <div></div>
查看全文
发表于:2009-03-12 ┆
阅读(773)
┆
评论(0)
http://hi.chinaunix.net/?uid-133135.html
<DIV> <DIV id=wrap> <DIV id=header> <DIV id=spacename> <DIV id=xspace-spacename><STRONG><FONT size=4>MichaelBibby的个人空间</FONT></STRONG> <P><A class=xspace-copyurl title=复制地址 onclick="javascript:setCopy('http://hi.chinaunix.net/?133135');" href="javascript:;">copy</A> <A class=xspace-add2fav title=加入收藏 onclick="javascript:addBookmark('MichaelBibby的个人空间','http://hi.chinaunix.net/?133135');return false;" href="http://hi.chinaunix.net/?133135">Bookmark</A> http://hi.chinaunix.net/?133135 </P></DIV></DIV> <DIV id=menu> <UL id=xspace-menu> <LI><A class=xspace-blog href="http://hi.chinaunix.net/?uid-133135-action-spacelist-type-blog">日志</A> </LI> <LI><A class=xspace-image href="http://hi.chinaunix.net/?uid-133135-action-spacelist-type-image">相册</A> </LI> <LI><A class=xspace-file href="http://hi.chinaunix.net/?uid-133135-action-spacelist-type-file">软件</A> </LI> <LI><A class=xspace-link href="http://hi.chinaunix.net/?uid-133135-action-spacelist-type-link">书签</A> </LI> <LI><A class=xspace-video href="http://hi.chinaunix.net/?uid-133135-action-spacelist-type-video">视频</A> </LI> <LI><A class=xspace-friend href="http://hi.chinaunix.net/?uid-133135-action-spacelist-type-friend">好友</A> </LI> <LI><A class=xspace-mybbs href="http://hi.chinaunix.net/?uid-133135-action-spacelist-type-bbs">论坛</A> </LI> <LI><A class=xspace-guestbook href="http://hi.chinaunix.net/?uid-133135-action-viewpro">留言</A> </LI> <LI><A class=xspace-more href="http://hi.chinaunix.net/?uid-133135-action-spacelist-type-model">更多</A> </LI></UL></DIV></DIV> <DIV class=xspace-layout1 id=content> <DIV class=mainarea-side id=mainarea> <DIV id=xspace-guide><A class=xspace-spacecp href="http://hi.chinaunix.net/batch.manage.php?uid=133135" target=_blank>空间管理</A> 您的位置: <A href="http://hi.chinaunix.net/" target=_blank><FONT color=#000066>ChinaUnix个人空间</FONT></A> » <A href="http://hi.chinaunix.net/?uid-133135"><FONT color=#000066>MichaelBibby的个人空间</FONT></A> » <A href="http://hi.chinaunix.net/?uid-133135"><FONT color=#000066>空间首页</FONT></A> </DIV> <DIV id=mythread> <H3 class=xspace-blocktitle><A class=more href="http://hi.chinaunix.net/?uid-133135-action-spacelist-type-bbs">更多</A>我的主题</H3> <UL class=xspace-itemlist> <LI class=xspace-loglist> <H4 class=xspace-entrytitle><A href="http://bbs.chinaunix.net/viewthread.php?tid=1332707" target=_blank><FONT color=#000066>开源邮件方案之 iRedMail-0.3.2 及 iRedOS-0.1.2 正式版发布</FONT></A></H4> <P class=xspace-smalltxt><A class=xspace-smalltxt href="http://bbs.chinaunix.net/redirect.php?tid=1332707&goto=lastpost#lastpost" target=_blank>2008-12-12 13:34:34</A> / <A class=xspace-smalltxt href="http://bbs.chinaunix.net/forumdisplay.php?fid=14" target=_blank>Mail服务器</A></P> <DIV class=xspace-itemmessage id=xspace-item-t1332707>Hi, all.iRedMail-0.3.2 稳定版发布了。下载地址:http://code.google.com/p/iredmail/downloads/listiRedOS-0.1.2 的 ISO 镜像也已就绪,您可以从以下地址下载:http://www.iredmail.org/iRedOS/0.3.2 主要是基于 0.3.1 做了一些 bug 修正,完善已有组件的功能,并更新了少量软件包。升级文档我们将会.</DIV> <P class=xspace-itemlinks><A href="http://bbs.chinaunix.net/viewthread.php?tid=1332707" target=_blank><FONT color=#000066>查看(520)</FONT></A> <A href="http://bbs.chinaunix.net/post.php?action=reply&fid=14&tid=1332707" target=_blank><FONT color=#000066>评论(16)</FONT></A> </P></LI> <LI class=xspace-loglist> <H4 class=xspace-entrytitle><A href="http://bbs.chinaunix.net/viewthread.php?tid=1325030" target=_blank><FONT color=#000066>iRedOS-0.1.2-beta1 发布,请大家帮忙测试</FONT></A></H4> <P class=xspace-smalltxt><A class=xspace-smalltxt href="http://bbs.chinaunix.net/redirect.php?tid=1325030&goto=lastpost#lastpost" target=_blank>2008-12-02 20:33:04</A> / <A class=xspace-smalltxt href="http://bbs.chinaunix.net/forumdisplay.php?fid=14" target=_blank>Mail服务器</A></P> <DIV class=xspace-itemmessage id=xspace-item-t1325030>Hi, all.iRedOS-0.1.2-beta1 发布了。下载地址:http://www.iredmail.org/iRedOS/0.1.2/iRedOS-0.1.2 包含 iRedMail-0.3.2 的最新测试版本,并修正了 iRedOS-0.1.1里无法自行设置网络和主机名的问题。以下是 0.3.2-beta1 及发布之后修正的一些问题:* 增加补丁用于让 ExtMail 自行创建用户的 ma.</DIV> <P class=xspace-itemlinks><A href="http://bbs.chinaunix.net/viewthread.php?tid=1325030" target=_blank><FONT color=#000066>查看(215)</FONT></A> <A href="http://bbs.chinaunix.net/post.php?action=reply&fid=14&tid=1325030" target=_blank><FONT color=#000066>评论(3)</FONT></A> </P></LI> <LI class=xspace-loglist> <H4 class=xspace-entrytitle><A href="http://bbs.chinaunix.net/viewthread.php?tid=1322889" target=_blank><FONT color=#000066>请帮忙测试:用于 ExtMail 的自动创建用户邮箱补丁</FONT></A></H4> <P class=xspace-smalltxt><A class=xspace-smalltxt href="http://bbs.chinaunix.net/redirect.php?tid=1322889&goto=lastpost#lastpost" target=_blank>2008-11-29 18:38:58</A> / <A class=xspace-smalltxt href="http://bbs.chinaunix.net/forumdisplay.php?fid=14" target=_blank>Mail服务器</A></P> <DIV class=xspace-itemmessage id=xspace-item-t1322889>Hi, all.如果你只使用 ExtMail 而没有使用 ExtMan,相信你在添加新用户之后立即登录 ExtMail,都会无法登录并得到类似的错误信息:Can't chdir to /home/vmail/a.cn/www/, no such file or directory.这是由于 ExtMail 并不自动建立用户邮箱目录导致的。这个补丁的作用就是让 ExtMail 在检测到用户邮箱不存在的时候自.</DIV> <P class=xspace-itemlinks><A href="http://bbs.chinaunix.net/viewthread.php?tid=1322889" target=_blank><FONT color=#000066>查看(290)</FONT></A> <A href="http://bbs.chinaunix.net/post.php?action=reply&fid=14&tid=1322889" target=_blank><FONT color=#000066>评论(2)</FONT></A> </P></LI> <LI class=xspace-loglist> <H4 class=xspace-entrytitle><A href="http://bbs.chinaunix.net/viewthread.php?tid=1320907" target=_blank><FONT color=#000066>开源邮件方案 iRedMail-0.3.2-beta1 发布。希望大家帮忙测试</FONT></A></H4> <P class=xspace-smalltxt><A class=xspace-smalltxt href="http://bbs.chinaunix.net/redirect.php?tid=1320907&goto=lastpost#lastpost" target=_blank>2008-11-27 10:27:28</A> / <A class=xspace-smalltxt href="http://bbs.chinaunix.net/forumdisplay.php?fid=14" target=_blank>Mail服务器</A></P> <DIV class=xspace-itemmessage id=xspace-item-t1320907>Hi, all.iRedMail-0.3.2-beta1 发布了。下载地址:http://code.google.com/p/iredmail/downloads/list0.3.2-beta1 主要是基于 0.3.1 做了一些 bug 修正,完善已有组件的功能,并更新了少量软件包。iRedOS 将会在 iRedMail-0.3.2 正式版发布的时候同时提供下载。之前的版本可以从以下地址下载:htt.</DIV> <P class=xspace-itemlinks><A href="http://bbs.chinaunix.net/viewthread.php?tid=1320907" target=_blank><FONT color=#000066>查看(543)</FONT></A> <A href="http://bbs.chinaunix.net/post.php?action=reply&fid=14&tid=1320907" target=_blank><FONT color=#000066>评论(19)</FONT></A> </P></LI> <LI class=xspace-loglist> <H4 class=xspace-entrytitle><A href="http://bbs.chinaunix.net/viewthread.php?tid=1317777" target=_blank><FONT color=#000066>iRedMail 开源邮件服务解决方案开通官方 QQ 群</FONT></A></H4> <P class=xspace-smalltxt><A class=xspace-smalltxt href="http://bbs.chinaunix.net/redirect.php?tid=1317777&goto=lastpost#lastpost" target=_blank>2008-11-23 18:19:29</A> / <A class=xspace-smalltxt href="http://bbs.chinaunix.net/forumdisplay.php?fid=14" target=_blank>Mail服务器</A></P> <DIV class=xspace-itemmessage id=xspace-item-t1317777>Hi, all.iRedMail 开源邮件服务解决方案项目开通了官方的 QQ 群,欢迎大家加入:75161448。iRedMail 项目主页:http://code.google.com/p/iredmail/</DIV> <P class=xspace-itemlinks><A href="http://bbs.chinaunix.net/viewthread.php?tid=1317777" target=_blank><FONT color=#000066>查看(378)</FONT></A> <A href="http://bbs.chinaunix.net/post.php?action=reply&fid=14&tid=1317777" target=_blank><FONT color=#000066>评论(2)</FONT></A> </P></LI> <LI class=xspace-loglist> <H4 class=xspace-entrytitle><A href="http://bbs.chinaunix.net/viewthread.php?tid=1302374" target=_blank><FONT color=#000066>提供 OpenBSD 4.4 镜像站点:http://www.iredmail.org/openbsd/</FONT></A></H4> <P class=xspace-smalltxt><A class=xspace-smalltxt href="http://bbs.chinaunix.net/redirect.php?tid=1302374&goto=lastpost#lastpost" target=_blank>2008-11-02 14:17:06</A> / <A class=xspace-smalltxt href="http://bbs.chinaunix.net/forumdisplay.php?fid=5" target=_blank>BSD</A></P> <DIV class=xspace-itemmessage id=xspace-item-t1302374>Hi, all.这里提供 OpenBSD 4.4 镜像站点:http://www.iredmail.org/openbsd/服务器及带宽资源是由 zhujibo@gmail 赞助给 iRedMail 开源邮件服务解决方案项目的,在此感谢 zhujibo@gmail。^_^目前只提供 i386, amd64 两个平台,packages 还在同步中。</DIV> <P class=xspace-itemlinks><A href="http://bbs.chinaunix.net/viewthread.php?tid=1302374" target=_blank><FONT color=#000066>查看(763)</FONT></A> <A href="http://bbs.chinaunix.net/post.php?action=reply&fid=5&tid=1302374" target=_blank><FONT color=#000066>评论(10)</FONT></A> </P></LI> <LI class=xspace-loglist> <H4 class=xspace-entrytitle><A href="http://bbs.chinaunix.net/viewthread.php?tid=1297919" target=_blank><FONT color=#000066>紧急:快帮忙 Kevlo 测试 scim 输入法的几个 ports</FONT></A></H4> <P class=xspace-smalltxt><A class=xspace-smalltxt href="http://bbs.chinaunix.net/redirect.php?tid=1297919&goto=lastpost#lastpost" target=_blank>2008-10-27 20:07:45</A> / <A class=xspace-smalltxt href="http://bbs.chinaunix.net/forumdisplay.php?fid=5" target=_blank>BSD</A></P> <DIV class=xspace-itemmessage id=xspace-item-t1297919>Hi, all.台湾的 OpenBSD 开发人员 Kevlo 制作了 scim 的 ports,并已发布到 ports@ 邮件列表,恳请各位 OpenBSD 爱好者尽快帮忙测试,并将测试结果发到邮件列表里,这样才能使 ports 尽快进去官方的 ports tree。地址在以下链接的第三页:http://www.openbsdonly.org/viewtopic.php?f=17&t=607&st=0&sk=t&sd=a.</DIV> <P class=xspace-itemlinks><A href="http://bbs.chinaunix.net/viewthread.php?tid=1297919" target=_blank><FONT color=#000066>查看(316)</FONT></A> <A href="http://bbs.chinaunix.net/post.php?action=reply&fid=5&tid=1297919" target=_blank><FONT color=#000066>评论(3)</FONT></A> </P></LI> <LI class=xspace-loglist> <H4 class=xspace-entrytitle><A href="http://bbs.chinaunix.net/viewthread.php?tid=1296709" target=_blank><FONT color=#000066>在 OpenBSD 4.4 上搭建中文语言环境</FONT></A></H4> <P class=xspace-smalltxt><A class=xspace-smalltxt href="http://bbs.chinaunix.net/redirect.php?tid=1296709&goto=lastpost#lastpost" target=_blank>2008-10-25 21:58:30</A> / <A class=xspace-smalltxt href="http://bbs.chinaunix.net/forumdisplay.php?fid=5" target=_blank>BSD</A></P> <DIV class=xspace-itemmessage id=xspace-item-t1296709>文档整理中:http://code.google.com/p/openbsdonly/wiki/ChineseEnv_OpenBSD_44欢迎大家补充。^_^</DIV> <P class=xspace-itemlinks><A href="http://bbs.chinaunix.net/viewthread.php?tid=1296709" target=_blank><FONT color=#000066>查看(1329)</FONT></A> <A href="http://bbs.chinaunix.net/post.php?action=reply&fid=5&tid=1296709" target=_blank><FONT color=#000066>评论(13)</FONT></A> </P></LI> <LI class=xspace-loglist> <H4 class=xspace-entrytitle><A href="http://bbs.chinaunix.net/viewthread.php?tid=1295621" target=_blank><FONT color=#000066>文泉驿字体进入 OpenBSD ports tree,呼吁测试 scim</FONT></A></H4> <P class=xspace-smalltxt><A class=xspace-smalltxt href="http://bbs.chinaunix.net/redirect.php?tid=1295621&goto=lastpost#lastpost" target=_blank>2008-10-24 12:12:25</A> / <A class=xspace-smalltxt href="http://bbs.chinaunix.net/forumdisplay.php?fid=5" target=_blank>BSD</A></P> <DIV class=xspace-itemmessage id=xspace-item-t1295621>Hi, all.台湾的 OpenBSD 开发人员 Kevlo 已经将文泉驿字体提交进 ports tree,在此希望大家帮忙测试。并且希望大家帮忙测试中文输入法。详细信息请看 OpenBSDonly.org 的帖子:http://www.openbsdonly.org/viewtopic.php?f=17&t=607&start=0&st=0&sk=t&sd=a文档整理中:- 在 OpenBSD 4.4 上搭建中文.</DIV> <P class=xspace-itemlinks><A href="http://bbs.chinaunix.net/viewthread.php?tid=1295621" target=_blank><FONT color=#000066>查看(760)</FONT></A> <A href="http://bbs.chinaunix.net/post.php?action=reply&fid=5&tid=1295621" target=_blank><FONT color=#000066>评论(11)</FONT></A> </P></LI> <LI class=xspace-loglist> <H4 class=xspace-entrytitle><A href="http://bbs.chinaunix.net/viewthread.php?tid=1294002" target=_blank><FONT color=#000066>开源邮件服务解决方案 iRedMail-0.3.1,iRedOS-0.1.1 稳定版(bug fix)发布</FONT></A></H4> <P class=xspace-smalltxt><A class=xspace-smalltxt href="http://bbs.chinaunix.net/redirect.php?tid=1294002&goto=lastpost#lastpost" target=_blank>2008-10-22 12:48:51</A> / <A class=xspace-smalltxt href="http://bbs.chinaunix.net/forumdisplay.php?fid=14" target=_blank>Mail服务器</A></P> <DIV class=xspace-itemmessage id=xspace-item-t1294002>Hi, All.iRedMail-0.3.1 稳定版和 iRedOS-0.1.1 稳定版发布,适用于生产环境。同时,iRedMail 和 iRedOS 进入维护状态,Bibby 已全力以赴进行管理后台的规划和开发。管理后台功能需求征集:http://www.iredmail.org/bbs/viewthread.php?tid=257&extra=page%3D1备注:iRedOS 是基于 CentOS 5.2 裁减,并加入.</DIV> <P class=xspace-itemlinks><A href="http://bbs.chinaunix.net/viewthread.php?tid=1294002" target=_blank><FONT color=#000066>查看(1753)</FONT></A> <A href="http://bbs.chinaunix.net/post.php?action=reply&fid=14&tid=1294002" target=_blank><FONT color=#000066>评论(23)</FONT></A> </P></LI></UL></DIV></DIV> <DIV class=sidearea id=sideleft> <DIV class=xspace-sideblock id=avatar> <DIV id=xspace-avatar><IMG class=xspace-imgstyle style="HEIGHT: 150px" alt=MichaelBibby src="http://hi.chinaunix.net/images/base/space_noface.gif"> <P><A href="http://hi.chinaunix.net/?uid-133135-action-viewpro-showpro-1"><FONT color=#000066>MichaelBibby</FONT></A></P> <P class=xspace-selfintro><FONT color=#000066></FONT></P></DIV></DIV> <DIV class=xspace-sideblock id=action> <H3 class=xspace-blocktitle>用户菜单</H3> <UL id=xspace-action> <LI><A class=xspace-message href="http://hi.chinaunix.net/?uid-133135-action-viewpro"><FONT color=#000066>给我留言</FONT></A> </LI> <LI><A class=xspace-addfriend onclick="javascript:joinfriend('133135');" href="javascript:;"><FONT color=#000066>加入好友</FONT></A> </LI> <LI><A class=xspace-sendpm href="http://bbs.chinaunix.net/pm.php?action=send&uid=133135" target=_blank><FONT color=#000066>发短消息</FONT></A> </LI> <LI><A class=xspace-profile href="http://hi.chinaunix.net/?uid-133135-action-viewpro-showpro-1"><FONT color=#000066>我的介绍</FONT></A> </LI> <LI><A class=xspace-profile href="http://bbs.chinaunix.net/viewpro.php?uid=133135"><FONT color=#000066>论坛资料</FONT></A> </LI> <LI><A class=xspace-ctrlpannel href="http://hi.chinaunix.net/batch.manage.php?uid=133135"><FONT color=#000066>空间管理</FONT></A> </LI></UL></DIV> <DIV class=xspace-sideblock id=calendar> <H3 class=xspace-blocktitle>日历</H3> <TABLE id=xspace-calendar cellSpacing=2 cellPadding=2 width="100%" summary=xspace-Calendar border=0> <TBODY> <TR> <TD align=middle colSpan=7> <TABLE class=xspace-datenav cellSpacing=3 cellPadding=3 summary="xspace-Date nav"> <TBODY> <TR> <TD align=middle><A href="http://hi.chinaunix.net/?action-spacelist-uid-133135-starttime-1228060800-endtime-1230739200"><FONT color=#000066>«</FONT></A></TD> <TD noWrap align=middle><A href="http://hi.chinaunix.net/?action-spacelist-uid-133135-starttime-1230739200-endtime-1233417600"><FONT color=#000066>2009-01-11</FONT></A></TD> <TD align=middle> </TD></TR></TBODY></TABLE></TD></TR> <TR class=xspace-week align=middle> <TD>日</TD> <TD>一</TD> <TD>二</TD> <TD>三</TD> <TD>四</TD> <TD>五</TD> <TD>六</TD></TR> <TR align=middle> <TD> </TD> <TD> </TD> <TD> </TD> <TD> </TD> <TD>1</TD> <TD>2</TD> <TD>3</TD></TR> <TR align=middle> <TD>4</TD> <TD>5</TD> <TD>6</TD> <TD>7</TD> <TD>8</TD> <TD>9</TD> <TD>10</TD></TR> <TR align=middle> <TD>11</TD> <TD>12</TD> <TD>13</TD> <TD>14</TD> <TD>15</TD> <TD>16</TD> <TD>17</TD></TR> <TR align=middle> <TD>18</TD> <TD>19</TD> <TD>20</TD> <TD>21</TD> <TD>22</TD> <TD>23</TD> <TD>24</TD></TR> <TR align=middle> <TD>25</TD> <TD>26</TD> <TD>27</TD> <TD>28</TD> <TD>29</TD> <TD>30</TD> <TD>31</TD></TR></TBODY></TABLE></DIV> <DIV class=xspace-sideblock id=track> <H3 class=xspace-blocktitle>我的回复</H3> <UL class=xspace-list> <LI><A href="http://bbs.chinaunix.net/viewthread.php?tid=1352549" target=_blank><FONT color=#000066>如何解决dovecot默认domian的认证问题?</FONT></A> <LI><A href="http://bbs.chinaunix.net/viewthread.php?tid=1350857" target=_blank><FONT color=#000066>防范自己发给自己的垃圾邮件</FONT></A> <LI><A href="http://bbs.chinaunix.net/viewthread.php?tid=1350292" target=_blank><FONT color=#000066>金笛邮件的反垃圾邮件网管技术</FONT></A> <LI><A href="http://bbs.chinaunix.net/viewthread.php?tid=1344841" target=_blank><FONT color=#000066>postfix+dovecot+mysql+cyrus-sasl+openssl+centos</FONT></A> <LI><A href="http://bbs.chinaunix.net/viewthread.php?tid=1343947" target=_blank><FONT color=#000066>求各位达人提供一个mail服务器解决方案</FONT></A> <LI><A href="http://bbs.chinaunix.net/viewthread.php?tid=1339340" target=_blank><FONT color=#000066>RHEL5中,如何限制某个域、某些用户访问dovecot的pop3s、imaps?</FONT></A> <LI><A href="http://bbs.chinaunix.net/viewthread.php?tid=1338111" target=_blank><FONT color=#000066>我现在的状况是.....</FONT></A> <LI><A href="http://bbs.chinaunix.net/viewthread.php?tid=1336233" target=_blank><FONT color=#000066>即时通讯(IM)服务</FONT></A> <LI><A href="http://bbs.chinaunix.net/viewthread.php?tid=1336194" target=_blank><FONT color=#000066>邮件系统我认为是最复杂应用服务之一.所以建议大家尽力用开源或是破解的如kerio</FONT></A> <LI><A href="http://bbs.chinaunix.net/viewthread.php?tid=1335623" target=_blank><FONT color=#000066>openbsd推荐cwm窗口管理</FONT></A></LI></UL></DIV> <DIV class=xspace-sideblock id=track> <H3 class=xspace-blocktitle>最新来客</H3> <UL class=xspace-list> <LI class="xspace-avatarlist xspace-imgstyle"><A href="http://hi.chinaunix.net/?uid-759047" target=_blank><IMG alt="759047曾经在2008-12-17 09:23:46访问过你的空间" src="http://hi.chinaunix.net/images/base/space_noface.gif"></A> <P><A href="http://hi.chinaunix.net/?uid-759047" target=_blank alt=""><FONT color=#000066>759047</FONT></A></P></LI> <LI class="xspace-avatarlist xspace-imgstyle"><A href="http://hi.chinaunix.net/?uid-780250" target=_blank><FONT color=#000066><IMG alt="780250曾经在2008-12-15 23:18:47访问过你的空间" src="http://hi.chinaunix.net/images/base/space_noface.gif"></FONT></A> <P><A href="http://hi.chinaunix.net/?uid-780250" target=_blank alt=""><FONT color=#000066>780250</FONT></A></P></LI></UL></DIV> <DIV class=xspace-sideblock id=infomation> <H3 class=xspace-blocktitle>数据统计</H3> <UL class=xspace-list> <LI>访问量: 60 <LI>建立时间: 2008-05-31 <LI>更新时间: </LI></UL></DIV> <DIV class=xspace-sideblock id=rss> <H3 class=xspace-blocktitle>RSS订阅</H3> <UL class=xspace-list> <LI class=xspace-logo><A href="http://hi.chinaunix.net/?uid-133135-action-rss-type-"><IMG alt=RSS订阅 src="http://hi.chinaunix.net/images/base/rss.gif" border=0></A> </LI></UL></DIV></DIV></DIV></DIV> <DIV id=xspace-footer> <P id=xspace-footer-ad></P> <P id=xspace-footer_menu><A href="http://hi.chinaunix.net/batch.login.php?action=logout"><FONT color=#000066>清空Cookie</FONT></A> - <A href="mailto:admin2@staff.chinaunix.net"><FONT color=#000066>联系我们</FONT></A> - <A href="http://hi.chinaunix.net/" target=_blank><FONT color=#000066>ChinaUnix个人空间</FONT></A> - <A href="http://bbs.chinaunix.net/" target=_blank><FONT color=#000066>交流论坛</FONT></A> - <A href="http://hi.chinaunix.net/?action/spaces"><FONT color=#000066>空间列表</FONT></A> - <A href="http://hi.chinaunix.net/archiver/" target=_blank><FONT color=#000066>站点存档</FONT></A> - <A href="http://hi.chinaunix.net/?action/register" target=_blank><FONT color=#000066>升级自己的空间</FONT></A> </P> <P id=xspace-copyright>Powered by <A href="http://www.supesite.com/" target=_blank><STRONG><FONT color=#003366>X-Space</FONT></STRONG></A> <STRONG><FONT color=#ff9900>4.0Final</FONT></STRONG> © 2001-2008 <A href="http://www.comsenz.com/" target=_blank><FONT color=#000066>Comsenz Inc.</FONT></A> <BR>Processed in 0.077416 second(s), 8 queries, Gzip enabled<BR><A href="http://www.miibeian.gov.cn/" target=_blank><FONT color=#000066>京ICP证041476号</FONT></A><BR></P></DIV> <DIV id=toolbarshowbtn><A onmouseover=showtoolbar(); href="javascript:;">Open Toolbar</A></DIV> <DIV id=toolbarframe><IFRAME src="http://hi.chinaunix.net/batch.toolbar.php" frameBorder=0 width="100%" scrolling=no></IFRAME></DIV></DIV>
查看全文
发表于:2009-01-11 ┆
阅读(300)
┆
评论(0)
iredmail作者博客
<DIV> <TABLE style="BORDER-COLLAPSE: collapse" height=27 cellSpacing=0 cellPadding=0 width="100%" bgColor=#ffffff background=../../templates/tech/images/bg_menu.gif border=0> <TBODY> <TR> <TD width=20></TD> <TD><A class=list1 href="http://michaelbibby.cublog.cn/" target=_blank><FONT color=#0000ff><U>MichaelBibby.cublog.cn </U></FONT></A></TD> <TD align=right><A class=list1 href="http://blog.chinaunix.net/u/10604/index.php"><U><FONT color=#0000ff>首页</FONT></U></A> | <A class=list1 href="http://blog.chinaunix.net/u/10604/article.php"><U><FONT color=#0000ff>文章</FONT></U></A> | <A class=list1 href="http://blog.chinaunix.net/u/10604/photo.php"><U><FONT color=#0000ff>相册</FONT></U></A> | <A class=list1 href="http://blog.chinaunix.net/u/10604/links.php"><U><FONT color=#0000ff>收藏夹</FONT></U></A> | <A class=list1 href="http://blog.chinaunix.net/u/10604/guestbook.php"><U><FONT color=#0000ff>留言</FONT></U></A> </TD> <TD width=10></TD></TR></TBODY></TABLE> <SCRIPT language=javascript> function $(s){return document.getElementById(s);} function ShowHideDiv(divid,iImg){ if($(divid).style.display == "none"){ iImg.src="../../templates/tech/images/dot2.gif"; $(divid).style.display = "block"; iImg.title="收起"; }else{ iImg.src="../../templates/tech/images/dot4.gif"; $(divid).style.display = "none"; iImg.title="展开"; } } </SCRIPT> <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD vAlign=top align=middle width=235><BR> <TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 cellSpacing=0 cellPadding=0 width=220 border=0> <TBODY> <TR> <TD><IMG alt="" src="http://blog.chinaunix.net/templates/tech/images/left_bg_top.gif" border=0></TD></TR> <TR> <TD align=middle bgColor=#edf2f2 height=25> <TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 cellSpacing=0 cellPadding=0 width=200 border=0> <TBODY> <TR> <TD align=middle width=180><FONT style="FONT-SIZE: 10pt" color=#1f72d0><B>关于作者</B></FONT></TD> <TD width=20><IMG title=收起 onclick="ShowHideDiv('aboutwriter',this);return false;" src="http://blog.chinaunix.net/templates/tech/images/dot2.gif" border=0></TD></TR></TBODY></TABLE></TD></TR> <TR> <TD bgColor=#d2dee2 height=1></TD></TR> <TR> <TD bgColor=#ffffff height=1></TD></TR> <TR> <TD id=aboutwriter style="COLOR: #02368d" align=middle bgColor=#f3f6f6> <TABLE style="COLOR: #02368d; BORDER-COLLAPSE: collapse; WORD-WRAP: break-word" height=16 cellSpacing=0 cellPadding=0 width=200 border=0> <TBODY> <TR> <TD align=middle><A href="http://blog.chinaunix.net/u/10604/up_user.jpeg" target=_blank><IMG src="http://blog.chinaunix.net/u/10604/up_user_pre.jpg" border=0><FONT color=#0000ff> </FONT></A></TD></TR> <TR> <TD width=200><PRE style="MARGIN: 5px; LINE-HEIGHT: 150%" width=25>姓名:张煌彬 年龄:1984年 位置:广东深圳福田区 网站:http://www.bsdlife.org</PRE></TD></TR></TBODY></TABLE></TD></TR> <TR> <TD> <TABLE style="BORDER-RIGHT: #d2dee2 1px solid; PADDING-RIGHT: 1px; BORDER-TOP: #d2dee2 1px solid; PADDING-LEFT: 1px; PADDING-BOTTOM: 1px; BORDER-LEFT: #d2dee2 1px solid; PADDING-TOP: 1px; BORDER-BOTTOM: #d2dee2 1px solid; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=220 align=center bgColor=#ffffff border=0> <TBODY> <TR bgColor=#edf2f2 height=20> <TD title=上一年 style="FONT-SIZE: 9pt; CURSOR: hand; COLOR: #1f72d0" onclick="pushBtm('YU')" align=middle width=14>||</TD> <TD title=上一月 style="FONT-SIZE: 9pt; CURSOR: hand; COLOR: #1f72d0" onclick="pushBtm('MU')" align=middle width=14><<</TD> <TD id=YMBG style="FONT-SIZE: 9pt; COLOR: #1f72d0" noWrap align=middle>2009年1月</TD> <TD id=GZ style="FONT-SIZE: 9pt; COLOR: #1f72d0" noWrap align=middle>己丑年(牛)</TD> <TD title=下一月 style="FONT-SIZE: 9pt; CURSOR: hand; COLOR: #1f72d0" onclick="pushBtm('MD')" align=middle width=14>>></TD> <TD title=下一年 style="FONT-SIZE: 9pt; CURSOR: hand; COLOR: #1f72d0" onclick="pushBtm('YD')" align=middle width=14>||</TD></TR> <TR> <TD colSpan=6> <DIV id=ttdiv align=center width="210"> <TABLE id=datetable style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=216 bgColor=#f6f8f8 border=0> <TBODY> <TR style="COLOR: #a6aa97" align=middle bgColor=#edf2f2> <TD width=32 height=24>日</TD> <TD width=32>一</TD> <TD width=32>二</TD> <TD width=32>三</TD> <TD width=32>四</TD> <TD width=32>五</TD> <TD width=32>六</TD></TR> <TR align=middle> <TD noWrap><FONT class="" id=SD0 title="" face="Arial Black" color=#cdbc71 size=2></FONT><BR><FONT id=LD0 style="FONT-SIZE: 7pt"></FONT></TD> <TD noWrap><FONT class="" id=SD1 title="" face="Arial Black" color=#a6aa97 size=2></FONT><BR><FONT id=LD1 style="FONT-SIZE: 7pt"></FONT></TD> <TD noWrap><FONT class="" id=SD2 title="" face="Arial Black" color=#a6aa97 size=2></FONT><BR><FONT id=LD2 style="FONT-SIZE: 7pt"></FONT></TD> <TD noWrap><FONT class="" id=SD3 title="" face="Arial Black" color=#a6aa97 size=2></FONT><BR><FONT id=LD3 style="FONT-SIZE: 7pt"></FONT></TD> <TD noWrap><FONT class="" id=SD4 title="元旦 " style="COLOR: red" face="Arial Black" color=#a6aa97 size=2>1</FONT><BR><FONT id=LD4 style="FONT-SIZE: 7pt"><FONT color=#6fc2ff>元旦 </FONT></FONT></TD> <TD noWrap><FONT class="" id=SD5 title=初七 face="Arial Black" color=#a6aa97 size=2>2</FONT><BR><FONT id=LD5 style="FONT-SIZE: 7pt">初七</FONT></TD> <TD noWrap><FONT class="" id=SD6 title="腊八节 " face="Arial Black" color=#cdbc71 size=2>3</FONT><BR><FONT id=LD6 style="FONT-SIZE: 7pt"><FONT color=#6fc2ff>腊八节 </FONT></FONT></TD></TR> <TR align=middle> <TD noWrap><FONT class="" id=SD7 title=初九 style="COLOR: #cdbc71" face="Arial Black" color=#cdbc71 size=2>4</FONT><BR><FONT id=LD7 style="FONT-SIZE: 7pt">初九</FONT></TD> <TD noWrap><FONT class="" id=SD8 title=小寒 face="Arial Black" color=#a6aa97 size=2>5</FONT><BR><FONT id=LD8 style="FONT-SIZE: 7pt"><FONT color=limegreen>小寒</FONT></FONT></TD> <TD noWrap><FONT class="" id=SD9 title=十一 face="Arial Black" color=#a6aa97 size=2>6</FONT><BR><FONT id=LD9 style="FONT-SIZE: 7pt">十一</FONT></TD> <TD noWrap><FONT class="" id=SD10 title=十二 face="Arial Black" color=#a6aa97 size=2>7</FONT><BR><FONT id=LD10 style="FONT-SIZE: 7pt">十二</FONT></TD> <TD noWrap><FONT class="" id=SD11 title=十三 face="Arial Black" color=#a6aa97 size=2>8</FONT><BR><FONT id=LD11 style="FONT-SIZE: 7pt">十三</FONT></TD> <TD noWrap><FONT class="" id=SD12 title=十四 face="Arial Black" color=#a6aa97 size=2>9</FONT><BR><FONT id=LD12 style="FONT-SIZE: 7pt">十四</FONT></TD> <TD noWrap><FONT class="" id=SD13 title=十五 style="COLOR: #cdbc71" face="Arial Black" color=#cdbc71 size=2>10</FONT><BR><FONT id=LD13 style="FONT-SIZE: 7pt">十五</FONT></TD></TR> <TR align=middle> <TD noWrap><FONT class=todyaColor id=SD14 title=十六 style="COLOR: #cdbc71" face="Arial Black" color=#cdbc71 size=2>11</FONT><BR><FONT id=LD14 style="FONT-SIZE: 7pt">十六</FONT></TD> <TD noWrap><FONT class="" id=SD15 title=十七 face="Arial Black" color=#a6aa97 size=2>12</FONT><BR><FONT id=LD15 style="FONT-SIZE: 7pt">十七</FONT></TD> <TD noWrap><FONT class="" id=SD16 title=十八 face="Arial Black" color=#a6aa97 size=2>13</FONT><BR><FONT id=LD16 style="FONT-SIZE: 7pt">十八</FONT></TD> <TD noWrap><FONT class="" id=SD17 title=十九 face="Arial Black" color=#a6aa97 size=2>14</FONT><BR><FONT id=LD17 style="FONT-SIZE: 7pt">十九</FONT></TD> <TD noWrap><FONT class="" id=SD18 title=二十 face="Arial Black" color=#a6aa97 size=2>15</FONT><BR><FONT id=LD18 style="FONT-SIZE: 7pt">二十</FONT></TD> <TD noWrap><FONT class="" id=SD19 title=廿一 face="Arial Black" color=#a6aa97 size=2>16</FONT><BR><FONT id=LD19 style="FONT-SIZE: 7pt">廿一</FONT></TD> <TD noWrap><FONT class="" id=SD20 title=廿二 face="Arial Black" color=#cdbc71 size=2>17</FONT><BR><FONT id=LD20 style="FONT-SIZE: 7pt">廿二</FONT></TD></TR> <TR align=middle> <TD noWrap><FONT class="" id=SD21 title=廿三 style="COLOR: #cdbc71" face="Arial Black" color=#cdbc71 size=2>18</FONT><BR><FONT id=LD21 style="FONT-SIZE: 7pt">廿三</FONT></TD> <TD noWrap><FONT class="" id=SD22 title="小年 " face="Arial Black" color=#a6aa97 size=2>19</FONT><BR><FONT id=LD22 style="FONT-SIZE: 7pt"><FONT color=#6fc2ff>小年 </FONT></FONT></TD> <TD noWrap><FONT class="" id=SD23 title=大寒 face="Arial Black" color=#a6aa97 size=2>20</FONT><BR><FONT id=LD23 style="FONT-SIZE: 7pt"><FONT color=limegreen>大寒</FONT></FONT></TD> <TD noWrap><FONT class="" id=SD24 title=廿六 face="Arial Black" color=#a6aa97 size=2>21</FONT><BR><FONT id=LD24 style="FONT-SIZE: 7pt">廿六</FONT></TD> <TD noWrap><FONT class="" id=SD25 title=廿七 face="Arial Black" color=#a6aa97 size=2>22</FONT><BR><FONT id=LD25 style="FONT-SIZE: 7pt">廿七</FONT></TD> <TD noWrap><FONT class="" id=SD26 title=廿八 face="Arial Black" color=#a6aa97 size=2>23</FONT><BR><FONT id=LD26 style="FONT-SIZE: 7pt">廿八</FONT></TD> <TD noWrap><FONT class="" id=SD27 title=廿九 style="COLOR: #cdbc71" face="Arial Black" color=#cdbc71 size=2>24</FONT><BR><FONT id=LD27 style="FONT-SIZE: 7pt">廿九</FONT></TD></TR> <TR align=middle> <TD noWrap><FONT class="" id=SD28 title="除夕 " style="COLOR: red" face="Arial Black" color=#cdbc71 size=2>25</FONT><BR><FONT id=LD28 style="FONT-SIZE: 7pt"><FONT color=#6fc2ff>除夕 </FONT></FONT></TD> <TD noWrap><FONT class="" id=SD29 title="春节 " style="COLOR: red" face="Arial Black" color=#a6aa97 size=2>26</FONT><BR><FONT id=LD29 style="FONT-SIZE: 7pt"><FONT color=#6fc2ff>春节 </FONT></FONT></TD> <TD noWrap><FONT class="" id=SD30 title=初二 face="Arial Black" color=#a6aa97 size=2>27</FONT><BR><FONT id=LD30 style="FONT-SIZE: 7pt">初二</FONT></TD> <TD noWrap><FONT class="" id=SD31 title=初三 face="Arial Black" color=#a6aa97 size=2>28</FONT><BR><FONT id=LD31 style="FONT-SIZE: 7pt">初三</FONT></TD> <TD noWrap><FONT class="" id=SD32 title=初四 face="Arial Black" color=#a6aa97 size=2>29</FONT><BR><FONT id=LD32 style="FONT-SIZE: 7pt">初四</FONT></TD> <TD noWrap><FONT class="" id=SD33 title=初五 face="Arial Black" color=#a6aa97 size=2>30</FONT><BR><FONT id=LD33 style="FONT-SIZE: 7pt">初五</FONT></TD> <TD noWrap><FONT class="" id=SD34 title=初六 face="Arial Black" color=#cdbc71 size=2>31</FONT><BR><FONT id=LD34 style="FONT-SIZE: 7pt">初六</FONT></TD></TR> <TR align=middle> <TD noWrap><FONT class="" id=SD35 title="" face="Arial Black" color=#cdbc71 size=2></FONT><BR><FONT id=LD35 style="FONT-SIZE: 7pt"></FONT></TD> <TD noWrap><FONT class="" id=SD36 title="" face="Arial Black" color=#a6aa97 size=2></FONT><BR><FONT id=LD36 style="FONT-SIZE: 7pt"></FONT></TD> <TD noWrap><FONT class="" id=SD37 title="" face="Arial Black" color=#a6aa97 size=2></FONT><BR><FONT id=LD37 style="FONT-SIZE: 7pt"></FONT></TD> <TD noWrap><FONT class="" id=SD38 title="" face="Arial Black" color=#a6aa97 size=2></FONT><BR><FONT id=LD38 style="FONT-SIZE: 7pt"></FONT></TD> <TD noWrap><FONT class="" id=SD39 title="" face="Arial Black" color=#a6aa97 size=2></FONT><BR><FONT id=LD39 style="FONT-SIZE: 7pt"></FONT></TD> <TD noWrap><FONT class="" id=SD40 title="" face="Arial Black" color=#a6aa97 size=2></FONT><BR><FONT id=LD40 style="FONT-SIZE: 7pt"></FONT></TD> <TD noWrap><FONT class="" id=SD41 title="" face="Arial Black" color=#cdbc71 size=2></FONT><BR><FONT id=LD41 style="FONT-SIZE: 7pt"></FONT></TD></TR></TBODY></TABLE></DIV></TD></TR> <TR> <TD colSpan=6 height=1></TD></TR></TBODY></TABLE> <SCRIPT src="../../templates/tech/mdate.js"></SCRIPT> <SCRIPT language=javascript> var arrArtdate=new Array("20051119","20051126","20051127","20051130","20051201","20051202","20051205","20051217","20060102","20060103","20060119","20060210","20060211","20060224","20060225","20060317","20060324","20060507","20060509","20060512","20060513","20060516","20060517","20060615","20060803","20070409","20070411","20070429","20070517",""); initial("ttdiv"); </SCRIPT> </TD></TR> <TR> <TD bgColor=#d2dee2 height=1></TD></TR> <TR> <TD bgColor=#ffffff height=1></TD></TR> <TR> <TD align=middle bgColor=#edf2f2 height=25> <TABLE style="BORDER-COLLAPSE: collapse" borderColor=#111111 cellSpacing=0 cellPadding=0 width=200 border=0> <TBODY> <TR> <TD align=middle width=180><FONT style="FONT-SIZE: 10pt" color=#1f72d0><B>我的分类</B></FONT></TD> <TD width=20><IMG title=收起 onclick="ShowHideDiv('lefttree',this);return false;" src="http://blog.chinaunix.net/templates/tech/images/dot2.gif" border=0></TD></TR></TBODY></TABLE></TD></TR> <TR> <TD bgColor=#d2dee2 height=1></TD></TR> <TR> <TD bgColor=#ffffff height=1></TD></TR> <TR> <TD id=lefttree style="COLOR: #02368d" bgColor=#f3f6f6> <DIV> <DIV> <TABLE cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD vAlign=center noWrap><A onclick="javascript: ContentsTree.OnNodeClick(1,true);" href="javascript:void(0)"><IMG id=signContentsTree1 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/Minus.gif" width=19></A><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(1,false);" href="http://blog.chinaunix.net/u/10604/article.php"><IMG id=iconContentsTree1 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/OpenFolder.gif" width=19></A></TD> <TD vAlign=center noWrap><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(1,false);" href="http://blog.chinaunix.net/u/10604/article.php"><FONT color=#0000ff><U>我的文章分类</U></FONT></A></TD></TR></TBODY></TABLE></DIV> <DIV id=divContentsTree1 style="DISPLAY: block"> <DIV> <TABLE cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD vAlign=center noWrap><FONT color=#0000ff><U><IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/TreeBlank.gif" width=19></U></FONT><A onclick="javascript: ContentsTree.OnNodeClick(4,true);" href="javascript:void(0)"><FONT color=#0000ff><IMG id=signContentsTree4 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/Plus.gif" width=19></FONT></A><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(4,false);" href="http://blog.chinaunix.net/u/10604/article.php?frmid=23570"><FONT color=#0000ff><U><IMG id=iconContentsTree4 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/ClosedFolder.gif" width=19></U></FONT></A></TD> <TD vAlign=center noWrap><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(4,false);" href="http://blog.chinaunix.net/u/10604/article.php?frmid=23570"><FONT color=#0000ff><U>心情日记</U></FONT></A></TD></TR></TBODY></TABLE></DIV> <DIV id=divContentsTree4 style="DISPLAY: none"><FONT color=#0000ff><U></U></FONT></DIV> <DIV> <TABLE cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD vAlign=center noWrap><FONT color=#0000ff><U><IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/TreeBlank.gif" width=19></U></FONT><A onclick="javascript: ContentsTree.OnNodeClick(5,true);" href="javascript:void(0)"><FONT color=#0000ff><IMG id=signContentsTree5 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/Plus.gif" width=19></FONT></A><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(5,false);" href="http://blog.chinaunix.net/u/10604/article.php?frmid=22495"><FONT color=#0000ff><U><IMG id=iconContentsTree5 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/ClosedFolder.gif" width=19></U></FONT></A></TD> <TD vAlign=center noWrap><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(5,false);" href="http://blog.chinaunix.net/u/10604/article.php?frmid=22495"><FONT color=#0000ff><U>人生哲学</U></FONT></A></TD></TR></TBODY></TABLE></DIV> <DIV id=divContentsTree5 style="DISPLAY: none"><FONT color=#0000ff><U></U></FONT></DIV> <DIV> <TABLE cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD vAlign=center noWrap><FONT color=#0000ff><U><IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/TreeBlank.gif" width=19></U></FONT><A onclick="javascript: ContentsTree.OnNodeClick(6,true);" href="javascript:void(0)"><FONT color=#0000ff><IMG id=signContentsTree6 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/Plus.gif" width=19></FONT></A><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(6,false);" href="http://blog.chinaunix.net/u/10604/article.php?frmid=22535"><FONT color=#0000ff><U><IMG id=iconContentsTree6 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/ClosedFolder.gif" width=19></U></FONT></A></TD> <TD vAlign=center noWrap><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(6,false);" href="http://blog.chinaunix.net/u/10604/article.php?frmid=22535"><FONT color=#0000ff><U>FreeBSD</U></FONT></A></TD></TR></TBODY></TABLE></DIV> <DIV id=divContentsTree6 style="DISPLAY: none"><FONT color=#0000ff><U></U></FONT></DIV> <DIV> <TABLE cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD vAlign=center noWrap><FONT color=#0000ff><U><IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/TreeBlank.gif" width=19></U></FONT><A onclick="javascript: ContentsTree.OnNodeClick(7,true);" href="javascript:void(0)"><FONT color=#0000ff><IMG id=signContentsTree7 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/Plus.gif" width=19></FONT></A><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(7,false);" href="http://blog.chinaunix.net/u/10604/article.php?frmid=20461"><FONT color=#0000ff><U><IMG id=iconContentsTree7 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/ClosedFolder.gif" width=19></U></FONT></A></TD> <TD vAlign=center noWrap><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(7,false);" href="http://blog.chinaunix.net/u/10604/article.php?frmid=20461"><FONT color=#0000ff><U>NetBSD</U></FONT></A></TD></TR></TBODY></TABLE></DIV> <DIV id=divContentsTree7 style="DISPLAY: none"><FONT color=#0000ff><U></U></FONT></DIV> <DIV> <TABLE cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD vAlign=center noWrap><FONT color=#0000ff><U><IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/TreeBlank.gif" width=19></U></FONT><A onclick="javascript: ContentsTree.OnNodeClick(8,true);" href="javascript:void(0)"><FONT color=#0000ff><IMG id=signContentsTree8 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/Plus.gif" width=19></FONT></A><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(8,false);" href="http://blog.chinaunix.net/u/10604/article.php?frmid=17342"><FONT color=#0000ff><U><IMG id=iconContentsTree8 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/ClosedFolder.gif" width=19></U></FONT></A></TD> <TD vAlign=center noWrap><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(8,false);" href="http://blog.chinaunix.net/u/10604/article.php?frmid=17342"><FONT color=#0000ff><U>OpenBSD</U></FONT></A></TD></TR></TBODY></TABLE></DIV> <DIV id=divContentsTree8 style="DISPLAY: none"><FONT color=#0000ff><U></U></FONT></DIV> <DIV> <TABLE cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD vAlign=center noWrap><FONT color=#0000ff><U><IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/TreeBlank.gif" width=19></U></FONT><A onclick="javascript: ContentsTree.OnNodeClick(9,true);" href="javascript:void(0)"><FONT color=#0000ff><IMG id=signContentsTree9 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/Plus.gif" width=19></FONT></A><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(9,false);" href="http://blog.chinaunix.net/u/10604/article.php?frmid=19064"><FONT color=#0000ff><U><IMG id=iconContentsTree9 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/ClosedFolder.gif" width=19></U></FONT></A></TD> <TD vAlign=center noWrap><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(9,false);" href="http://blog.chinaunix.net/u/10604/article.php?frmid=19064"><FONT color=#0000ff><U>OpenBSD FAQ</U></FONT></A></TD></TR></TBODY></TABLE></DIV> <DIV id=divContentsTree9 style="DISPLAY: none"><FONT color=#0000ff><U></U></FONT></DIV> <DIV> <TABLE cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD vAlign=center noWrap><FONT color=#0000ff><U><IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/TreeBlank.gif" width=19></U></FONT><A onclick="javascript: ContentsTree.OnNodeClick(10,true);" href="javascript:void(0)"><FONT color=#0000ff><IMG id=signContentsTree10 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/Plus.gif" width=19></FONT></A><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(10,false);" href="http://blog.chinaunix.net/u/10604/article.php?frmid=19040"><FONT color=#0000ff><U><IMG id=iconContentsTree10 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/ClosedFolder.gif" width=19></U></FONT></A></TD> <TD vAlign=center noWrap><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(10,false);" href="http://blog.chinaunix.net/u/10604/article.php?frmid=19040"><FONT color=#0000ff><U>Python</U></FONT></A></TD></TR></TBODY></TABLE></DIV> <DIV id=divContentsTree10 style="DISPLAY: none"><FONT color=#0000ff><U></U></FONT></DIV> <DIV> <TABLE cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD vAlign=center noWrap><FONT color=#0000ff><U><IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/TreeBlank.gif" width=19></U></FONT><A onclick="javascript: ContentsTree.OnNodeClick(11,true);" href="javascript:void(0)"><FONT color=#0000ff><IMG id=signContentsTree11 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/Plus.gif" width=19></FONT></A><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(11,false);" href="http://blog.chinaunix.net/u/10604/article.php?frmid=19787"><FONT color=#0000ff><U><IMG id=iconContentsTree11 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/ClosedFolder.gif" width=19></U></FONT></A></TD> <TD vAlign=center noWrap><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(11,false);" href="http://blog.chinaunix.net/u/10604/article.php?frmid=19787"><FONT color=#0000ff><U>Server</U></FONT></A></TD></TR></TBODY></TABLE></DIV> <DIV id=divContentsTree11 style="DISPLAY: none"><FONT color=#0000ff><U></U></FONT></DIV> <DIV> <TABLE cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD vAlign=center noWrap><FONT color=#0000ff><U><IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/TreeBlank.gif" width=19></U></FONT><A onclick="javascript: ContentsTree.OnNodeClick(12,true);" href="javascript:void(0)"><FONT color=#0000ff><IMG id=signContentsTree12 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/Minus.gif" width=19></FONT></A><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(12,false);" href="http://blog.chinaunix.net/u/10604/article.php?frmid=19218"><FONT color=#0000ff><U><IMG id=iconContentsTree12 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/OpenFolder.gif" width=19></U></FONT></A></TD> <TD vAlign=center noWrap><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(12,false);" href="http://blog.chinaunix.net/u/10604/article.php?frmid=19218"><FONT color=#800080><U>Shell</U></FONT></A></TD></TR></TBODY></TABLE></DIV> <DIV id=divContentsTree12 style="DISPLAY: block"><FONT color=#800080><U></U></FONT></DIV> <DIV> <TABLE cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD vAlign=center noWrap><FONT color=#800080><U><IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/TreeBlank.gif" width=19></U></FONT><A onclick="javascript: ContentsTree.OnNodeClick(13,true);" href="javascript:void(0)"><FONT color=#800080><IMG id=signContentsTree13 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/Plus.gif" width=19></FONT></A><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(13,false);" href="http://blog.chinaunix.net/u/10604/article.php?frmid=19233"><FONT color=#800080><U><IMG id=iconContentsTree13 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/ClosedFolder.gif" width=19></U></FONT></A></TD> <TD vAlign=center noWrap><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(13,false);" href="http://blog.chinaunix.net/u/10604/article.php?frmid=19233"><FONT color=#0000ff><U>Tools and Tips</U></FONT></A></TD></TR></TBODY></TABLE></DIV> <DIV id=divContentsTree13 style="DISPLAY: none"><FONT color=#0000ff><U></U></FONT></DIV></DIV> <DIV> <TABLE cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD vAlign=center noWrap><A onclick="javascript: ContentsTree.OnNodeClick(2,true);" href="javascript:void(0)"><FONT color=#0000ff><IMG id=signContentsTree2 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/Minus.gif" width=19></FONT></A><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(2,false);" href="http://blog.chinaunix.net/u/10604/photo.php"><FONT color=#0000ff><U><IMG id=iconContentsTree2 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/OpenFolder.gif" width=19></U></FONT></A></TD> <TD vAlign=center noWrap><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(2,false);" href="http://blog.chinaunix.net/u/10604/photo.php"><FONT color=#0000ff><U>我的图片分类</U></FONT></A></TD></TR></TBODY></TABLE></DIV> <DIV id=divContentsTree2 style="DISPLAY: block"><FONT color=#0000ff><U></U></FONT></DIV> <DIV> <TABLE cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD vAlign=center noWrap><A onclick="javascript: ContentsTree.OnNodeClick(3,true);" href="javascript:void(0)"><FONT color=#0000ff><IMG id=signContentsTree3 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/Minus.gif" width=19></FONT></A><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(3,false);" href="http://blog.chinaunix.net/u/10604/links.php"><FONT color=#0000ff><U><IMG id=iconContentsTree3 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/OpenFolder.gif" width=19></U></FONT></A></TD> <TD vAlign=center noWrap><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(3,false);" href="http://blog.chinaunix.net/u/10604/links.php"><FONT color=#0000ff><U>我的链接分类</U></FONT></A></TD></TR></TBODY></TABLE></DIV> <DIV id=divContentsTree3 style="DISPLAY: block"> <DIV> <TABLE cellSpacing=0 cellPadding=0 border=0> <TBODY> <TR> <TD vAlign=center noWrap><FONT color=#0000ff><U><IMG style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/TreeBlank.gif" width=19></U></FONT><A onclick="javascript: ContentsTree.OnNodeClick(14,true);" href="javascript:void(0)"><FONT color=#0000ff><IMG id=signContentsTree14 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/Plus.gif" width=19></FONT></A><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(14,false);" href="http://blog.chinaunix.net/u/10604/links.php?frmid=3780"><FONT color=#0000ff><U><IMG id=iconContentsTree14 style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=19 alt="" src="http://blog.chinaunix.net/templates/tech/images/ClosedFolder.gif" width=19></U></FONT></A></TD> <TD vAlign=center noWrap><A class=listtree onclick="javascript: ContentsTree.OnNodeClick(14,false);" href="http://blog.chinaunix.net/u/10604/links.php?frmid=3780"><U><FONT color=#0000ff>BSD</FONT></U></A></TD></TR></TBODY></TABLE></DIV> <DIV id=divContentsTree14 style="DISPLAY: none"><U><FONT color=#0000ff></FONT></U></DIV></DIV></DIV></TD></TR> <TR> <TD><U><FONT color=#0000ff><IMG alt="" src="http://blog.chinaunix.net/templates/tech/images/left_bg_bottom.gif" border=0></FONT></U></TD></TR></TBODY></TABLE></TD> <TD width=10><U><FONT color=#0000ff></FONT></U></TD> <TD vAlign=top align=middle><BR> <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0> <TBODY> <TR> <TD width=11 height=11><U><FONT color=#0000ff><IMG alt="" src="http://blog.chinaunix.net/templates/tech/images/g_left_top.gif" border=0></FONT></U></TD> <TD width="99%" bgColor=#dddddd height=11><U><FONT color=#0000ff></FONT></U></TD> <TD width=11 height=11><U><FONT color=#0000ff><IMG alt="" src="http://blog.chinaunix.net/templates/tech/images/g_right_top.gif" border=0></FONT></U></TD></TR> <TR> <TD vAlign=top align=middle width="100%" bgColor=#dddddd colSpan=3> <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="96%" border=0> <TBODY> <TR height=25> <TD width=10><U><FONT color=#0000ff></FONT></U></TD> <TD width=485><FONT color=#6cb743><B>文章列表 - Shell</B></FONT> </TD></TR> <TR> <TD colSpan=3 height=2></TD></TR></TBODY></TABLE> <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="96%" border=0> <TBODY> <TR> <TD width=7 height=7><IMG alt="" src="http://blog.chinaunix.net/templates/tech/images/w_left_top.gif" border=0></TD> <TD width="100%" bgColor=#f3f3f3></TD> <TD width=7 height=7><IMG alt="" src="http://blog.chinaunix.net/templates/tech/images/w_right_top.gif" border=0></TD></TR> <TR> <TD align=middle bgColor=#f3f3f3 colSpan=3> <TABLE style="TABLE-LAYOUT: fixed; BORDER-COLLAPSE: collapse; WORD-WRAP: break-word" cellSpacing=0 cellPadding=0 width="100%" bgColor=#f3f3f3 border=0> <TBODY> <TR height=25> <TD align=middle width=25><IMG height=8 alt="" src="http://blog.chinaunix.net/templates/tech/images/dot.gif" width=8 border=0></TD> <TD width="90%"><A class=list1 href="http://blog.chinaunix.net/u/10604/showart.php?id=60090" target=""><FONT style="FONT-SIZE: 10pt" color=#02368d><B><U>ANSI控制码的说明 </U></B></FONT></A></TD> <TD align=middle width=25><U><IMG title=收起 onclick="ShowHideDiv('art60090',this);" src="http://blog.chinaunix.net/templates/tech/images/dot2.gif" border=0></U> </TD></TR> <TR> <TD width=25></TD> <TD style="MARGIN: 5px; LINE-HEIGHT: 120%" colSpan=2> <DIV id=art60090 style="MARGIN-TOP: 5px; HEIGHT: 100%"><A href="http://bbs.chinaunix.net/viewthread.php?tid=661031&extra=page%3D1"><FONT color=#0000ff>http://bbs.chinaunix.net/viewthread.php?tid=661031&extra=page%3D1</FONT></A> <P> <P><SPAN style="FONT-SIZE: 13px">ANSI控制码的说明<BR>例如:<BR> echo -ne "33[32m" 可以将字符的显示颜色改为绿色<BR> echo -ne "33[3;1H" 可以将光标移到第3行第1列处</SPAN></P> <P><SPAN style="FONT-SIZE: 13px">具体的摘抄一些如下:<BR>33[0m 关闭所有属性<BR>33[1m 设置高亮度<BR>33[…… </SPAN></P></DIV></TD></TR> <TR height=20> <TD align=right colSpan=3><A class=list1 href="http://blog.chinaunix.net/u/10604/showart.php?id=60090" target=""><U><FONT style="FONT-SIZE: 10pt" color=#02368d><B>查看全文</B></FONT><FONT color=#0000ff> </FONT></U></A></TD></TR> <TR height=20> <TD><U><FONT color=#0000ff></FONT></U></TD> <TD align=right colSpan=2>发表于:2005-12-05 10:42:45 ┆ <A class=list1 href="http://blog.chinaunix.net/u/10604/showart.php?id=60090" target=""><U><FONT color=#0000ff>阅读(598) </FONT></U></A>┆ <A class=list1 href="http://blog.chinaunix.net/u/10604/showart.php?id=60090" target=""><FONT color=#0000ff><U>评论(0) </U></FONT></A></TD></TR></TBODY></TABLE></TD></TR> <TR> <TD width=7 height=7><FONT color=#0000ff><U><IMG alt="" src="http://blog.chinaunix.net/templates/tech/images/w_left_buttom.gif" border=0></U></FONT></TD> <TD bgColor=#f3f3f3><FONT color=#0000ff><U></U></FONT></TD> <TD width=7 height=7><FONT color=#0000ff><U><IMG alt="" src="http://blog.chinaunix.net/templates/tech/images/w_right_buttom.gif" border=0></U></FONT></TD></TR></TBODY></TABLE><BR> <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="96%" border=0> <TBODY> <TR> <TD width=7 height=7><FONT color=#0000ff><U><IMG alt="" src="http://blog.chinaunix.net/templates/tech/images/w_left_top.gif" border=0></U></FONT></TD> <TD width="100%" bgColor=#f3f3f3><FONT color=#0000ff><U></U></FONT></TD> <TD width=7 height=7><FONT color=#0000ff><U><IMG alt="" src="http://blog.chinaunix.net/templates/tech/images/w_right_top.gif" border=0></U></FONT></TD></TR> <TR> <TD align=middle bgColor=#f3f3f3 colSpan=3> <TABLE style="TABLE-LAYOUT: fixed; BORDER-COLLAPSE: collapse; WORD-WRAP: break-word" cellSpacing=0 cellPadding=0 width="100%" bgColor=#f3f3f3 border=0> <TBODY> <TR height=25> <TD align=middle width=25><FONT color=#0000ff><U><IMG height=8 alt="" src="http://blog.chinaunix.net/templates/tech/images/dot.gif" width=8 border=0></U></FONT></TD> <TD width="90%"><A class=list1 href="http://blog.chinaunix.net/u/10604/showart.php?id=59573" target=""><FONT style="FONT-SIZE: 10pt" color=#02368d><B><U>(转帖)Screen </U></B></FONT></A></TD> <TD align=middle width=25><U><IMG title=收起 onclick="ShowHideDiv('art59573',this);" src="http://blog.chinaunix.net/templates/tech/images/dot2.gif" border=0></U> </TD></TR> <TR> <TD width=25></TD> <TD style="MARGIN: 5px; LINE-HEIGHT: 120%" colSpan=2> <DIV id=art59573 style="MARGIN-TOP: 5px; HEIGHT: 100%"> <P>screen your screen<BR>文:林思敬<BR>電子郵件:<A href="mailto:becks.lin@ec-base.com"><FONT color=#0000ff>becks.lin@ec-base.com</FONT></A></P> <P><A href="http://www.winterxy.com/blog/000128.html"><FONT color=#0000ff>http://www.winterxy.com/blog/000128.html</FONT></A></P> <P><FONT color=#0000ff></FONT> <P>前言<BR>screen 是什么</P> <P>根据其man介绍,screen是个多元化多功能的全屏窗口管理器,每个虚拟终端都可以为你提供DEC VT100 terminal的功能, 也许你会问:DEC VT100 terminal又是什么?如果你登陆过某些字符界面的BBS,或许你会记得在注册时,其要求你输入你的终端机型别,而一般预设就是我…… </P></DIV></TD></TR> <TR height=20> <TD align=right colSpan=3><A class=list1 href="http://blog.chinaunix.net/u/10604/showart.php?id=59573" target=""><U><FONT style="FONT-SIZE: 10pt" color=#02368d><B>查看全文</B></FONT><FONT color=#0000ff> </FONT></U></A></TD></TR> <TR height=20> <TD><U><FONT color=#0000ff></FONT></U></TD> <TD align=right colSpan=2>发表于:2005-12-01 14:05:09 ┆ <A class=list1 href="http://blog.chinaunix.net/u/10604/showart.php?id=59573" target=""><U><FONT color=#0000ff>阅读(422) </FONT></U></A>┆ <A class=list1 href="http://blog.chinaunix.net/u/10604/showart.php?id=59573" target=""><FONT color=#0000ff><U>评论(2) </U></FONT></A></TD></TR></TBODY></TABLE></TD></TR> <TR> <TD width=7 height=7><FONT color=#0000ff><U><IMG alt="" src="http://blog.chinaunix.net/templates/tech/images/w_left_buttom.gif" border=0></U></FONT></TD> <TD bgColor=#f3f3f3><FONT color=#0000ff><U></U></FONT></TD> <TD width=7 height=7><FONT color=#0000ff><U><IMG alt="" src="http://blog.chinaunix.net/templates/tech/images/w_right_buttom.gif" border=0></U></FONT></TD></TR></TBODY></TABLE><BR> <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="96%" border=0> <TBODY> <TR> <TD width=7 height=7><FONT color=#0000ff><U><IMG alt="" src="http://blog.chinaunix.net/templates/tech/images/w_left_top.gif" border=0></U></FONT></TD> <TD width="100%" bgColor=#f3f3f3><FONT color=#0000ff><U></U></FONT></TD> <TD width=7 height=7><FONT color=#0000ff><U><IMG alt="" src="http://blog.chinaunix.net/templates/tech/images/w_right_top.gif" border=0></U></FONT></TD></TR> <TR> <TD align=middle bgColor=#f3f3f3 colSpan=3> <TABLE style="TABLE-LAYOUT: fixed; BORDER-COLLAPSE: collapse; WORD-WRAP: break-word" cellSpacing=0 cellPadding=0 width="100%" bgColor=#f3f3f3 border=0> <TBODY> <TR height=25> <TD align=middle width=25><FONT color=#0000ff><U><IMG height=8 alt="" src="http://blog.chinaunix.net/templates/tech/images/dot.gif" width=8 border=0></U></FONT></TD> <TD width="90%"><A class=list1 href="http://blog.chinaunix.net/u/10604/showart.php?id=59490" target=""><FONT style="FONT-SIZE: 10pt" color=#02368d><B><U>一个自动ftp的脚本 </U></B></FONT></A></TD> <TD align=middle width=25><U><IMG title=收起 onclick="ShowHideDiv('art59490',this);" src="http://blog.chinaunix.net/templates/tech/images/dot2.gif" border=0></U> </TD></TR> <TR> <TD width=25></TD> <TD style="MARGIN: 5px; LINE-HEIGHT: 120%" colSpan=2> <DIV id=art59490 style="MARGIN-TOP: 5px; HEIGHT: 100%"> <P>简单,但实用</P> <P> <P>#!/bin/sh</P> <P>ftp -i -n<<EOF<BR />open 192.168.0.5 # 打开ftp服务器192.168.0.5<BR>user USERNAME PASSWORD # 用于登录服务器的用户名和密码<BR>bin &nbs…… </P></DIV></TD></TR> <TR height=20> <TD align=right colSpan=3><A class=list1 href="http://blog.chinaunix.net/u/10604/showart.php?id=59490" target=""><U><FONT style="FONT-SIZE: 10pt" color=#02368d><B>查看全文</B></FONT><FONT color=#0000ff> </FONT></U></A></TD></TR> <TR height=20> <TD><U><FONT color=#0000ff></FONT></U></TD> <TD align=right colSpan=2>发表于:2005-11-30 17:20:23 ┆ <A class=list1 href="http://blog.chinaunix.net/u/10604/showart.php?id=59490" target=""><U><FONT color=#0000ff>阅读(416) </FONT></U></A>┆ <A class=list1 href="http://blog.chinaunix.net/u/10604/showart.php?id=59490" target=""><U><FONT color=#0000ff>评论(0) </FONT></U></A></TD></TR></TBODY></TABLE></TD></TR> <TR> <TD width=7 height=7><U><FONT color=#0000ff><IMG alt="" src="http://blog.chinaunix.net/templates/tech/images/w_left_buttom.gif" border=0></FONT></U></TD> <TD bgColor=#f3f3f3><U><FONT color=#0000ff></FONT></U></TD> <TD width=7 height=7><U><FONT color=#0000ff><IMG alt="" src="http://blog.chinaunix.net/templates/tech/images/w_right_buttom.gif" border=0></FONT></U></TD></TR></TBODY></TABLE><BR> <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="96%" border=0> <TBODY> <TR> <TD width=7 height=7><U><FONT color=#0000ff><IMG alt="" src="http://blog.chinaunix.net/templates/tech/images/w_left_top.gif" border=0></FONT></U></TD> <TD width="100%" bgColor=#f3f3f3><U><FONT color=#0000ff></FONT></U></TD> <TD width=7 height=7><U><FONT color=#0000ff><IMG alt="" src="http://blog.chinaunix.net/templates/tech/images/w_right_top.gif" border=0></FONT></U></TD></TR> <TR> <TD id=pagelist align=middle bgColor=#f3f3f3 colSpan=3>共有文章3篇 第(1/1)页 首页 上一页 <FONT color=#ff0000>1</FONT> 下一页 末页</TD></TR> <TR> <TD width=7 height=7><IMG alt="" src="http://blog.chinaunix.net/templates/tech/images/w_left_buttom.gif" border=0></TD> <TD bgColor=#f3f3f3></TD> <TD width=7 height=7><IMG alt="" src="http://blog.chinaunix.net/templates/tech/images/w_right_buttom.gif" border=0></TD></TR></TBODY></TABLE></TD></TR> <TR> <TD width=11 height=11><IMG alt="" src="http://blog.chinaunix.net/templates/tech/images/g_left_bottom.gif" border=0></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV>
查看全文
发表于:2009-01-11 ┆
阅读(363)
┆
评论(0)
centos/redhat 上安装邮件系统(extmail) V0.1
<DIV> <H1>在centos/redhat 上安装邮件系统(extmail) V0.1 </H1><BR>Author:fengyong 2008-08-31 <P class=STYLE1>请尊重作者劳动,复制转载此文档时,请保留或添加文档来源。版权:开源易有(<A href="http://www.yiyou.org/"><FONT color=#800080>http://www.yiyou.org</FONT></A>)</P> <H2>一、简介:</H2><BR>本文以最简单,最方便的方法在centos 5.2 上安装一个全功能的邮件系统,此文适合REDHAT所有系列,在文中,能用RPM 安装的,我们将采用rpm 安装,如果rpm没有的,我们将创建自己的rpm。部分软件简介:<BR>1、AMP ---apache(web服务) 、mysql(数据库)、php(非必需) 的简称<BR>2、postfix --mta 邮件系统核心<BR>3、courier-authlib--一个为courier-imap,maildrop,sasl2 提供用户信息的后台进程序<BR>4、courier-imap --提供pop3,pop3s,imap,imaps 服务的程序<BR>5、amavisd-new --提供内容过滤<BR>6、clamav -- 著名的杀毒软件<BR>7、extmail --一个著名的webmail程序<BR>8、extman --与extmail集成的后台管理程序<BR>9、slockd --一个基于smtp阶段的反垃圾邮件程序<BR>10、vhmgr --由本文作者编写,用于管理apache,ftp,mysql 的虚拟主机管理程序。<BR><BR>安装环境:<BR>centos 5.2 <BR>域名机器名:mail.yiyou.org<BR>域名:yiyou.org<BR> <H2>二、安装系统</H2>安装系统时,选择“customize software selection”(自定义安装),在package group selection 对话框里选择:<BR><PRE>[*]base [*]devlopment libraries [*]development tools [*]editors [*]text-base internet </PRE>其它不选择。<BR>在setup agnet(或进入系统后运行setup) 里选择firewall configuration 将security level 与SELinux 改为disabled,目的是为了避免在安装调试时产生不必要的麻烦,在系统安装完成后,可以自己去调试安全部分,在这里将不作详细介绍。 <BR>配置yum,在本文中使用的是网通线路,所以选择了http://mirrors.ta139.com/ 作为安装镜像。<BR><PRE>[root@localhost ~]# cd /etc/yum.repos.d/ [root@localhost yum.repos.d]# wget http://mirrors.ta139.com/CentOS-Base.repo.ta139 [root@localhost yum.repos.d]# mv CentOS-Base.repo CentOS-Base.repo.bak [root@localhost yum.repos.d]# mv CentOS-Base.repo.ta139 CentOS-Base.repo </PRE><BR> <H2>三、安装软件</H2><BR> <H3>1、安装AMP</H3><BR><PRE> [root@localhost ~]# yum -y install httpd httpd-devel mysql mysql-devel mysql-server php php-xml php-cli php-pdo php-mbstring php-mcrypt php-gd php-common php-devel php-mysql </PRE>修改启动配置并启动<BR><PRE>[root@localhost ~]# chkconfig --level 345 mysqld on [root@localhost ~]# chkconfig --level 345 httpd on [root@localhost ~]# service mysqld start [root@localhost ~]# service httpd start </PRE> <H3>2、安装phpmyadmin</H3>注意:可以选择自己需要的版本<BR><PRE>[root@localhost ~]# wget http://nchc.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-2.11.9-all-languages-utf-8-only.tar.bz2 [root@localhost ~]# tar xjf phpMyAdmin-2.11.9-all-languages-utf-8-only.tar.bz2 [root@localhost ~]# mv phpMyAdmin-2.11.9-all-languages-utf-8-only /var/www/html/phpmyadmin [root@localhost phpmyadmin]# cp config.sample.inc.php config.inc.php </PRE>编辑config.inc.php 改为下面,字符串是任意的。 <PRE>$cfg['blowfish_secret'] = 'skssiwksksie'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ </PRE>进入phpmyadmin 请马上修改mysql root 用户的密码。<BR> <H3>3、导入extman 后台数据库</H3>将extmail/extman/slockd 上传到服务器,可以使用ftp/winscp 上传<BR><PRE>[root@localhost ~]# tar zxf extman-0.2.5b1.tar.gz [root@localhost ~]# cd extman-0.2.5b1/docs/ [root@localhost docs]# mysql -uroot -p <extmail.sql Enter password: [root@localhost docs]# mysql -uroot -p <init.sql Enter password: </PRE>如何使用了phpmyadmin改了root 密码,记得输入密码,如果密码为空,请按回车。<BR> <H3>4、RPM 简介</H3>下面我们将采用rpm 的方式安装软件<BR>/usr/src/redhat/SPEC spec 文件夹,通常是rpm文件夹<BR>/usr/src/redhat/RPMS 是生成rpm 的文件,下面还有i368,i486 等子文件夹,一般我们用i386 架构<BR>/usr/src/redhat/SOURCE 源文件文件夹<BR>为了安装时切换目录的方便,我们将目录存放到一个shell变量里。<BR><PRE>[root@localhost ~]# export RPMS=/usr/src/redhat/RPMS [root@localhost ~]# export SOURCE=/usr/src/redhat/SOURCES [root@localhost ~]# export SPEC=/usr/src/redhat/SPECS </PRE>在下面安装过程中,大家要记住cd $RPMS 与cd /usr/src/redhat/RPMS 的目的是一样的,只是shell变量的替换。<BR> <H3>5、安装authlib</H3> <H4>A、安装依懒的包</H4><PRE>[root@localhost ~]# yum -y install postgresql-devel expect libtool-ltdl-devel [root@localhost ~]# wget http://prdownloads.sourceforge.net/courier/courier-authlib-0.61.0.tar.bz2 [root@localhost ~]# tar xjf courier-authlib-0.61.0.tar.bz2 [root@localhost ~]# cd courier-authlib-0.61.0 [root@localhost courier-authlib-0.61.0]# cp courier-authlib.spec $SPEC [root@localhost courier-authlib-0.61.0]# cd .. [root@localhost ~]# cp courier-authlib-0.61.0.tar.bz2 $SOURCE [root@localhost ~]# cd $SPEC [root@localhost SPECS]# rpmbuild -bb courier-authlib.spec (创建rpm文件) </PRE> <H4>B、安装生成的rpm</H4><PRE>[root@localhost SPECS]# cd $RPMS/i386 [root@localhost i386]# rpm -ivh courier-authlib-0.61.0-1.i386.rpm [root@localhost i386]# rpm -ivh courier-authlib-devel-0.61.0-1.i386.rpm [root@localhost i386]# rpm -ivh courier-authlib-mysql-0.61.0-1.i386.rpm </PRE> <H4>C、配置authlibdaemon</H4><PRE>[root@localhost i386]# cd /etc/authlib/ [root@localhost authlib]# mv authdaemonrc authdaemonrc.bak [root@localhost authlib]# vim authdaemonrc </PRE><B>输入下面的内容:</B> <PRE>authmodulelist="authmysql" authmodulelistorig="authmysql" daemons=10 authdaemonvar=/var/spool/authdaemon DEBUG_LOGIN=2 DEFAULTOPTIONS="wbnodsn=1" LOGGEROPTS="" </PRE><B>D、配置authmysqlrc</B> <PRE>[root@localhost authlib]# mv authmysqlrc authmysqlrc.bak [root@localhost authlib]# vim authmysqlrc </PRE><B>输入下面的内容:</B> <PRE>MYSQL_SERVER localhost MYSQL_USERNAME extmail MYSQL_PASSWORD extmail MYSQL_PORT 0 MYSQL_SOCKET /var/lib/mysql/mysql.sock MYSQL_OPT 0 MYSQL_DATABASE extmail MYSQL_SELECT_CLAUSE SELECT username,password,"",uidnumber,gidnumber,\ CONCAT('/home/data/domains/',homedir), \ CONCAT('/home/data/domains/',maildir), \ quota, \ name \ FROM mailbox \ WHERE username = '$(local_part)@$(domain)' </PRE> <H4>E、启动authlib</H4><PRE>[root@localhost ~]# service courier-authlib start Starting Courier authentication services: authdaemond [root@localhost ~]# chmod 777 /var/spool/authdaemon/ </PRE> <H3>6、安装courier-imap</H3>由于courier-imap 不能用root身份生成rpm那么我们新建一个普通用户,并创建一个rpm环境<BR><PRE>[root@localhost ~]# useradd yiyou </PRE>软件包依懒需要安装openldap-server,rpm创建完成后可以删除<BR><PRE>[root@localhost ~]# yum -y install openldap-servers [root@localhost ~]# su - yiyou [yiyou@localhost ~]$ mkdir -p rpm/{BUILD,RPMS,SOURCES,SPECS,SRPMS} [yiyou@localhost ~]$ vim ~/.rpmmacros </PRE>输入内容: <PRE>%_topdir /home/yiyou/rpm </PRE><PRE>[yiyou@localhost ~]$ wget http://prdownloads.sourceforge.net/courier/courier-imap-4.4.1.tar.bz2 [yiyou@localhost ~]$ cp courier-imap-4.4.1.tar.bz2 rpm/SOURCES/ [yiyou@localhost ~]$ tar xjf courier-imap-4.4.1.tar.bz2 [yiyou@localhost ~]$ cd courier-imap-4.4.1 [yiyou@localhost courier-imap-4.4.1]$ cp courier-imap.spec ../rpm/SPECS/ [yiyou@localhost courier-imap-4.4.1]$ cd ../rpm/SPECS/ </PRE>编辑courier-imap.spec 将下面的内容: <PRE>%if %suse_version BuildPreReq: rpm >= 3.0.5 /usr/bin/sed openldap2 openldap2-devel %([ %{suse_version} -gt 819 ] && echo /usr/include/fam.h) %else BuildPreReq: rpm >= 4.0.2 sed /usr/include/fam.h openldap-devel openldap-servers %endif </PRE>改为:<BR><PRE>%if %suse_version BuildPreReq: rpm >= 3.0.5 /usr/bin/sed openldap2 openldap2-devel %else BuildPreReq: rpm >= 4.0.2 sed openldap-devel openldap-servers %endif </PRE>创建rpm <PRE>[yiyou@localhost SPECS]$ rpmbuild -bb courier-imap.spec </PRE>完成rpm后,输入exit退出当前用户。<BR><PRE>[root@localhost ~]# rpm -ivh /home/yiyou/rpm/RPMS/i386/courier-imap-4.4.1-1.i386.rpm [root@localhost ~]# service courier-imap start </PRE> <H3>7、安装cyrus-sasl</H3> <H4>A、安装SRPM</H4><PRE>[root@localhost ~]# wget ftp://194.199.20.114/linux/fedora/updates/8/SRPMS/cyrus-sasl-2.1.22-8.fc8.src.rpm [root@localhost ~]# rpm -ivh cyrus-sasl-2.1.22-8.fc8.src.rpm [root@localhost ~]# cd $SPEC </PRE>编辑cyrus-sasl.spec 将下面:<BR><PRE># Bundling copy of Berkeley DB, for sasldb support. topdir=`pwd` pushd db-%{db_version}/build_unix ../dist/configure \ --with-mutex=UNIX/fcntl --disable-shared --enable-static --with-pic \ --with-uniquename=_cyrus_sasl_sasldb_rh \ --prefix=${topdir}/db-instroot \ --includedir=${topdir}/db-instroot/include \ --libdir=${topdir}/db-instroot/lib </PRE>改为:<BR><PRE># Bundling copy of Berkeley DB, for sasldb support. topdir=`pwd` pushd db-%{db_version}/build_unix ../dist/configure \ --with-mutex=UNIX/fcntl --disable-shared --enable-static --with-pic \ --with-uniquename=_cyrus_sasl_sasldb_rh \ --prefix=${topdir}/db-instroot \ --includedir=${topdir}/db-instroot/include \ --libdir=${topdir}/db-instroot/lib \ --with-authdaemond=/var/spool/authdaemon </PRE> <H4>B、生成rpm</H4><PRE>[root@localhost SPECS]# rpmbuild -bb cyrus-sasl.spec [root@localhost RPMS]# cd $RPMS/i386 [root@localhost i386]# rpm -e --nodeps cyrus-sasl-devel cyrus-sasl-plain cyrus-sasl cyrus-sasl-lib (如果这些包存在) [root@localhost i386]# rpm -ihv cyrus-sasl-lib-2.1.22-8.i386.rpm [root@localhost i386]# rpm -ihv cyrus-sasl-2.1.22-8.i386.rpm [root@localhost i386]# rpm -ihv cyrus-sasl-plain-2.1.22-8.i386.rpm </PRE> <H4>C、配置sasl2</H4>创建/usr/lib/sasl2/smtpd.conf 文件,输入下面的内容: <PRE>pwcheck_method:authdaemond log_level:3 mech_list:PLAIN LOGIN authdaemond_path:/var/spool/authdaemon/socket </PRE> <H3>8、安装postfix</H3> <H4>A、下载软件包</H4><PRE>[root@localhost i386]# cd [root@localhost ~]# wget http://ftp.wl0.org/official/2.5/SRPMS/postfix-2.5.4-2.src.rpm [root@localhost ~]# rpm -ivh postfix-2.5.4-2.src.rpm [root@localhost ~]# cd $SPEC </PRE>编辑postfix.spec 修改下面的选项 <PRE>%define distribution rhel-5.0 %define with_mysql_redhat 1 %define with_sasl 2 %define with_vda 1 </PRE> <H4>B、创建rpm </H4><PRE>[root@localhost SPECS]# rpmbuild -bb postfix.spec [root@localhost RPMS]# cd $RPMS/i386 [root@localhost i386]# rpm -ivh postfix-2.5.4-2.rhel4.i386.rpm </PRE> <H4>C、切换mta </H4><PRE>[root@localhost i386]# alternatives --config mta (选择2,postfix) [root@localhost i386]# rpm -e sendmail [root@localhost i386]# cd /usr/sbin/ [root@localhost sbin]# mv sendmail sendmail.bak [root@localhost sbin]# newaliases [root@localhost sbin]# ln -s sendmail.postfix sendmail </PRE> <H4>D、配置postfix </H4><PRE>[root@localhost ~]# cd /etc/postfix/ [root@localhost postfix]# mv main.cf main.cf.bak [root@localhost postfix]# vim main.cf </PRE>输入下面的内容: <PRE>queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix mail_owner = postfix unknown_local_recipient_reject_code = 550 debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/sendmail.postfix newaliases_path = /usr/bin/newaliases.postfix mailq_path = /usr/bin/mailq.postfix setgid_group = postdrop html_directory = /usr/share/doc/postfix-2.5.2-documentation/html manpage_directory = /usr/share/man sample_directory = /etc/postfix readme_directory = /usr/share/doc/postfix-2.5.2-documentation/readme alias_database = hash:/etc/postfix/aliases alias_maps = hash:/etc/postfix/aliases myhostname = mail.yiyou.org mydomain = yiyou.org mydestination = $myhostname smtpd_banner = yiyou.org ESMTP Mail System message_size_limit = 14680064 virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf virtual_mailbox_base = /home/data/domains virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_limit_maps.cf virtual_transport = maildrop: maildrop_destination_recipient_limit = 1 #sasl smtpd_sasl_auth_enable = yes smtpd_sasl2_auth_enable = yes smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients = yes smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_unauth_pipelining, reject_invalid_hostname </PRE>复制extman/docs 目录的cf 文件到/etc/postfix <PRE>[root@localhost postfix]# cp /root/extman-0.2.5b1/docs/mysql_virtual_* . </PRE>因为配置文件的用户、密码与数据库时一样,所以不用修改。 <PRE>[root@localhost postfix]# service postfix start </PRE> <H3>9、安装maildrop </H3> <H4>A、下载生成RPM</H4><PRE>[root@localhost postfix]# cd [root@localhost ~]# wget http://prdownloads.sourceforge.net/courier/maildrop-2.0.4.tar.bz2 [root@localhost ~]# cp maildrop-2.0.4.tar.bz2 $SOURCE [root@localhost ~]# tar xjf maildrop-2.0.4.tar.bz2 [root@localhost ~]# cd maildrop-2.0.4 [root@localhost maildrop-2.0.4]# cp maildrop.spec $SPEC [root@localhost maildrop-2.0.4]# cd $SPEC </PRE>编辑maildrop.spec 把下面: <PRE>BuildRequires: /usr/include/fam.h gdbm-devel pcre-devel </PRE>改为: <PRE>BuildRequires: gdbm-devel pcre-devel </PRE>把下面: <PRE>%configure --with-devel --enable-userdb --enable-maildirquota \ --enable-syslog=1 --enable-trusted-users='root mail daemon postmaster qmaild mmdf' \ --enable-restrict-trusted=0 \ --enable-sendmail=/usr/sbin/sendmail </PRE>改为: <PRE>%configure --with-devel --enable-userdb --enable-maildirquota \ --enable-syslog=1 --enable-trusted-users='root mail daemon postmaster qmaild mmdf' \ --enable-restrict-trusted=0 --enable-sendmail=/usr/sbin/sendmail \ --enable-authlib </PRE> <H4>B、创建安装maildrop rpm </H4><PRE>[root@localhost SPECS]# yum -y install pcre-devel [root@localhost SPECS]# rpmbuild -bb maildrop.spec [root@localhost SPECS]# cd $RPMS/i386 [root@localhost i386]# rpm -ivh maildrop-2.0.4-1.i386.rpm </PRE> <H4>C、添加虚似用户及创建目录 </H4><PRE>[root@localhost i386]# cd [root@localhost ~]# groupadd -g 1000 vgroup [root@localhost ~]# useradd -g 1000 -u 1000 -s /sbin/nologin -d /dev/null vuser </PRE>编辑/etc/postfix/master.cf ,加入下面的内容: <PRE>maildrop unix - n n - - pipe flags=DRhu user=vuser argv=/usr/bin/maildrop -d ${user}@${nexthop} ${recipient} ${user} ${extension} ${nexthop} </PRE> <H4>D、创建邮件存储目录 </H4><PRE>[root@localhost ~]# mkdir -p /home/data/domains/extmail.org/postmaster [root@localhost ~]# maildirmake /home/data/domains/extmail.org/postmaster/Maildir [root@localhost ~]# chown -R vuser:vgroup /home/data/domains/ </PRE> <H4>E、测试maildrop </H4><PRE>[root@localhost ~]# echo "test" | maildrop -V 10 -d postmaster@extmail.org maildrop: authlib: groupid=1000 maildrop: authlib: userid=1000 maildrop: authlib: logname=postmaster@extmail.org, home=/home/data/domains/extmail.org/postmaster, mail=/home/data/domains/extmail.org/postmaster/Maildir/ maildrop: Changing to /home/data/domains/extmail.org/postmaster Message start at 0 bytes, envelope sender=postmaster@extmail.org maildrop: Attempting .mailfilter maildrop: Delivery complete. </PRE>出现上以信息说明authlib,maildrop 工作正常<BR> <H4>F、测试pop3</H4><PRE>[root@localhost ~]# telnet localhost 110 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. +OK Hello there. user postmaster@extmail.org +OK Password required. pass extmail +OK logged in. list +OK POP3 clients that break here, they violate STD53. 1 6 . retr 1 +OK 6 octets follow. test . quit +OK Bye-bye. Connection closed by foreign host. </PRE> <H4>G、测试postfix </H4><PRE>[root@localhost ~]# perl -MMIME::Base64 -e 'print encode_base64("postmaster\@extmail.org");' cG9zdG1hc3RlckBleHRtYWlsLm9yZw== [root@localhost ~]# perl -MMIME::Base64 -e 'print encode_base64("extmail");' ZXh0bWFpbA== [root@localhost ~]# service postfix restart (重启一下) [root@localhost ~]# telnet localhost 25 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. 220 yiyou.org ESMTP Mail System ehlo test.com 250-mail.yiyou.org 250-PIPELINING 250-SIZE 14680064 250-VRFY 250-ETRN 250-AUTH LOGIN PLAIN 250-AUTH=LOGIN PLAIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN auth login 334 VXNlcm5hbWU6 cG9zdG1hc3RlckBleHRtYWlsLm9yZw== 334 UGFzc3dvcmQ6 ZXh0bWFpbA== 235 2.7.0 Authentication successful quit 221 2.0.0 Bye Connection closed by foreign host </PRE> <H3>10、安装amavisd-new</H3>编辑/etc/yum.repos.d/CentOS-Base.repo 加入下面的内容: <PRE>[dag] name=Dag RPM Repostory for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag gpgcheck=1 enabled=1 gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt </PRE><PRE>[root@localhost ~]# yum -y install clamav clamav-db clamd clamav-devel amavisd-new </PRE>编辑/etc/amavisd.conf,修改下面的内容 <PRE>$mydomain = 'yiyou.org'; # a convenient default for other settings </PRE>把下面内容去掉注释,并修改为下面 <PRE> ['ClamAV-clamd', \&ask_daemon, ["CONTSCAN {}\n", "/tmp/clamd.socket"], qr/\bOK$/, qr/\bFOUND$/, qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ], </PRE><PRE>[root@localhost ~]# usermod -G amavis clamav [root@localhost ~]# service clamd start </PRE>在/etc/postfix/master.cf 增加下面的内容: <PRE>smtp-amavis unix - - n - 4 smtp -o smtp_data_done_timeout=1200 -o smtp_send_xforward_command=yes -o disable_dns_lookups=yes 127.0.0.1:10025 inet n - n - - smtpd -o content_filter= -o local_recipient_maps= -o relay_recipient_maps= -o smtpd_restriction_classes= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o strict_rfc821_envelopes=yes -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000 -o receive_override_options=no_header_body_checks </PRE>在/etc/postfix/main.cf 加入下面的内容 <PRE>content_filter = smtp-amavis:[localhost]:10024 </PRE><PRE>[root@localhost ~]# service postfix reload </PRE> <H3>11、安装extman/extmail</H3> <H4>A、配置apache</H4>修改/etc/httpd/conf/httpd.conf,将下面的选项改为: <PRE>User vuser Group vgroup </PRE><PRE>[root@localhost ~]# cd /etc/httpd/conf.d/ [root@localhost conf.d]# vim extmail.conf </PRE>输入下面的内容: <PRE>Alias /extman/cgi/ /var/www/extsuite/extman/cgi/ Alias /extman /var/www/extsuite/extman/html/ <Location "/extman/cgi"> SetHandler cgi-script Options +ExecCGI </Location> # config for ExtMail Alias /extmail/cgi/ /var/www/extsuite/extmail/cgi/ Alias /extmail /var/www/extsuite/extmail/html/ <Location "/extmail/cgi"> SetHandler cgi-script Options +ExecCGI </Location> </PRE><PRE>[root@localhost ~]# mkdir /var/www/extsuite [root@localhost ~]# tar zxf extmail-1.0.5b1.tar.gz [root@localhost ~]# cp -r extmail-1.0.5b1 /var/www/extsuite/extmail [root@localhost ~]# cp -r extman-0.2.5b1 /var/www/extsuite/extman </PRE> <H4>B、配置extmail参数 </H4><PRE>[root@localhost ~]# cd /var/www/extsuite/extmail/ [root@localhost extmail]# cp webmail.cf.default webmail.cf </PRE>修改webmail.cf 下面的选项 <PRE>SYS_SESS_DIR = /tmp/extmail SYS_MAILDIR_BASE = /home/data/domains SYS_MYSQL_USER = extmail SYS_MYSQL_PASS = extmail </PRE> <H4>C、配置extman参数 </H4><PRE>[root@localhost extmail]# cd /var/www/extsuite/extman/ </PRE>修改webman.cf 下面的选项: <PRE>SYS_MAILDIR_BASE = /home/data/domains </PRE> <H4>D、创建session 目录 </H4><PRE>[root@localhost extman]# mkdir /tmp/{extman,extmail} [root@localhost extman]# chown vuser:vgroup /tmp/ext* </PRE> <H4>E、配置后台日志分析工具 </H4><PRE>[root@localhost addon]# cd /var/www/extsuite/extman/addon/ [root@localhost addon]# cp -r mailgraph_ext /usr/local/ </PRE>将下面的内容加入/etc/rc.local <PRE>/usr/local/mailgraph_ext/mailgraph-init start /usr/local/mailgraph_ext/qmonitor-init start </PRE>安装所依懒的软件包 <PRE>[root@localhost mailgraph_ext]# yum -y install rrdtool perl-rrdtool perl-GD perl-File-Tail </PRE> <H4>F、启动后台进程 </H4><PRE>[root@localhost mailgraph_ext]# /usr/local/mailgraph_ext/qmonitor-init start Starting queue statistics grapher: qmonitor [root@localhost mailgraph_ext]# /usr/local/mailgraph_ext/mailgraph-init start Starting mail statistics grapher: mailgraph_ext </PRE> <H4>G、访问extmail/extman</H4>打开浏览器,输入http://your_ip_address/extmail 注意:your_ip_address 为你实际的ip<BR>第一个测试用户为:postmaster 密码:extmail 域:extmail<BR><BR>打开浏览器,输入http://your_ip_address/extman <BR>extman root 用户为:root@extmail.org 密码为:extmail*123*<BR>注意:进入系统后要修改密码及找回密码的提示问题、答案。<BR> <H3>12、安装slockd</H3>slockd 是一个基于策略的垃圾邮件软件,很多用户反映使用后,反垃圾效果非常明显,但是有部分用户由于对该软件的使用,特性不了解,而产生了很多麻烦。<BR>所在在此建议,如果你对该软件不了解,或者系统里的垃圾邮件少,可以暂时不安装。 <PRE>[root@localhost ~]# tar zxf slockd-0.2beta1.tar.gz [root@localhost ~]# cp -r slockd-0.2beta1 /usr/local/slockd [root@localhost ~]# cd /usr/local/slockd </PRE>将下面的内容加入/etc/rc.local <PRE>/usr/local/slockd/slockd-init start </PRE>[root@localhost slockd]# vim config/main.cf (编辑slockd/config/main.cf)修改下面的内容 <PRE>setsid 1 (去掉注释,让程序成为后台进程) </PRE>修改/etc/postfix/main.cf 将原先的内容: <PRE>smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_unauth_pipelining, reject_invalid_hostname </PRE>改为: <PRE>smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_unauth_pipelining, reject_invalid_hostname, check_policy_service inet:127.0.0.1:10030 </PRE>重载postfix 配置文件 <PRE>[root@localhost slockd]# service postfix reload </PRE> <H3>13、安装vhmgr </H3>vhostmgr 是一款虚似主机管理软件,可以对apache,pure-ftp,mysql 进行管理,是管理员的好帮手。<BR>vhostmgr 有如下特点:<BR>a、只需要安装一个apache,ftp<BR>b、apache 不需要以root 运行。用普通用户身份运行就行了。<BR>c、可以通过web 进行重读配置文件,系统关机,等操作<BR>d、采用apache+cgi 方式运行,容易配置,安装、使用文档详细。<BR>e、如果你是一个管理员,每为一个用户添加主机而麻烦,使用该软件将为你节省大量时间。<BR>f、开通apache,ftp,mysql 都是即时生效。<BR>更多功能,更多方便,使用后才知道!!!<BR>g、支持freebsd ,linux 等多种系统<BR><BR>vhmgr 还有一个重要特点:<FONT color=#ff0000><SPAN class=STYLE1>开源并完全免费使用。</SPAN><BR><BR></FONT><A href="http://www.yiyou.org/56vhostmgr_001beta.html"><FONT color=#0000ff>软件地址</FONT></A><BR><BR>为了不重复劳功,将不再次叙述。<BR><BR>apache 改变运行id 后,php session功能将会出现问题,因为session 的存储目录权限没有跟着改变为新的,只要执行下面的命令即可解决问题。<BR><PRE>[root@localhost slockd]# chown -R vuser:vgroup /var/lib/php/session/ </PRE> <P><SPAN class=STYLE1><FONT color=#ff0000>请尊重作者劳动,复制此文档时,请保留或添加文档来源。版权:开源易有(</FONT><A href="http://www.yiyou.org/"><FONT color=#800080>http://www.yiyou.org</FONT></A><FONT color=#ff0000>)</FONT></SPAN></P></DIV>
查看全文
发表于:2009-01-03 ┆
阅读(236)
┆
评论(0)