LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 495|回复: 1

hosts的内容和怎么样写的。

[复制链接]
发表于 2006-10-17 13:18:02 | 显示全部楼层 |阅读模式
刚学不大懂,弱弱的问 /etc/hosts 是怎么样改的里面的内容我改得有点乱了,可否以自己系统上的hosts发出来说说哪里表示什么的说明一下嘛。
发表于 2006-10-17 15:51:45 | 显示全部楼层
windows下也有这种文件C:\Windows\system32\drivers\etc\hosts,格式也一样


# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

127.0.0.1       localhost
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表