wins下配置networks文件映射主机名和端口号

来源:互联网 发布:16年怎么打造淘宝爆款 编辑:程序博客网 时间:2024/04/29 04:15

小知识备忘录


1.修改以下目录的hosts文件

     C:\Windows\System32\drivers\etc\hosts

2.将想要映射的的ip地址以及主机名写入,保存后即可通过主机名访问

# 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 host127.0.0.1       localhost
XXX.XXX.XXX.XXX NN      <-------添加映射地址



0 0
原创粉丝点击