某日,看到网友上传一幅自己拍摄的作品。

不禁想到,在深圳奥运火炬传递期间出现的一位史上最牛看客。 更多 »
无留言世道
乐队
健康
公正
公民
吉他
哲学
团队
大学
奸商
安全
家庭
常识
往事
心得
摄影
教程
教育
新疆
方言
旅游
服务器
烹调
硬件
礼仪
策划
精彩视频
素质
网络
论文
音乐
baby
Bugs
Car
cms
Excel
Firefox
Linux
Mac
MySQL
Office
SEO
Tips
Windows
Wordpress Graphics (4)
Linux (48)
Media (11)
OS X (134)
Tools (14)
学海无涯 (56)
平凡生活 (123)
朝花夕拾 (23)
轻拂琴弦 (45)
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.
dns: Use the DNS service to resolve the address. This makes sense only for host address resolution, not network address resolution. This mechanism uses the fs file that we’ll describe later in the chapter.
files: Search a local file for the host or network name and its corresponding address. This option uses the traditional /etc/hosts and /etc/networks files.
Sample nsswitch.conf file
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# Information about this file is available in the `libc6-doc’ package.
hosts: dns files
networks: files
[ [!] status = action … ]
Actions
用-r参数查看内核路由表:
# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
218.56.183.64 0.0.0.0 255.255.255.192 U 0 0 0 eth1
58.57.65.0 0.0.0.0 255.255.255.128 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 58.57.65.1 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 218.56.183.65 0.0.0.0 UG 0 0 0 eth1
-n参数以十进制加点的方式显示IP地址。不加时的效果:
# netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
218.56.183.64 * 255.255.255.192 U 0 0 0 eth1
58.57.65.0 * 255.255.255.128 U 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 eth1
default 58.57.65.1 0.0.0.0 UG 0 0 0 eth0
default 218.56.183.65 0.0.0.0 UG 0 0 0 eth1
主机文件/etc/hosts
#
# Hosts file for Virtual Brewery/Virtual Winery
#
# IP FQDN aliases
#
127.0.0.1 localhost
#
172.16.1.1 vlager.vbrew.com vlager vlager-if1
172.16.1.2 vstout.vbrew.com vstout
172.16.1.3 vale.vbrew.com vale
#
172.16.2.1 vlager-if2
172.16.2.2 vbeaujolais.vbrew.com vbeaujolais
172.16.2.3 vbardolino.vbrew.com vbardolino
172.16.2.4 vchianti.vbrew.com vchianti
安装Vista SP1时会备份所有替换的文件,这是为了能够卸载SP1。不过升级后一般不会想要卸载SP1,而备份文件占用的硬盘空间大约有600~800MB,浪费了硬盘空间。
清理办法如下,在命令行,输入:
vsp1cln
无留言Rico's ordinary days is Digg proof thanks to caching by WP Super Cache