1、首先找到host文件:C:\Windows\System32\drivers\etc

2、打开host文件:

  1. # Copyright (c) 1993-2009 Microsoft Corp.
  2. ## This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
  3. ## This file contains the mappings of IP addresses to host names. Each
  4. # entry should be kept on an individual line. The IP address should
  5. # be placed in the first column followed by the corresponding host name.
  6. # The IP address and the host name should be separated by at least one
  7. # space.## Additionally, comments (such as these) may be inserted on individual
  8. # lines or following the machine name denoted by a '#' symbol.
  9. ## For example:
  10. ## 102.54.94.97 rhino.acme.com
  11. # source server
  12. # 38.25.63.10 x.acme.com
  13. # x client host
  14.  
  15. # localhost name resolution is handled within DNS itself.
  16. # 127.0.0.1 localhost
  17. # ::1 localhost
  18. 0.0.0.0 account.jetbrains.com

3、找到 38.25.63.10 x.acme.com ,注意#为注释,在下方添加新的

  1. # Copyright (c) 1993-2009 Microsoft Corp.
  2. ## This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
  3. ## This file contains the mappings of IP addresses to host names. Each
  4. # entry should be kept on an individual line. The IP address should
  5. # be placed in the first column followed by the corresponding host name.
  6. # The IP address and the host name should be separated by at least one
  7. # space.## Additionally, comments (such as these) may be inserted on individual
  8. # lines or following the machine name denoted by a '#' symbol.
  9. ## For example:
  10. ## 102.54.94.97 rhino.acme.com
  11. # source server
  12. # 38.25.63.10 x.acme.com '
  13. 127.0.0.1 a.cn
  14. # x client host
  15.  
  16. # localhost name resolution is handled within DNS itself.
  17. # 127.0.0.1 localhost
  18. # ::1 localhost
  19. 0.0.0.0 account.jetbrains.com

4、进行cmd,ping发现指向127.0.0.1

windows设置本地域名解析的更多相关文章

  1. IIS怎么设置本地域名解析(本地域名测试配置)

    对于IIS相信大家都不陌生,可以用来作为网站服务器,可以解析网站内容,访问时可以用端口的方式访问,也可以用域名的方式访问.下面我就介绍一下,怎么在本地用域名的方式访问,怎么用IIS进行本地域名解析. ...

  2. 让APK 成功在 Windows 运行并可以设置本地文件

    让APK 成功在 Windows 运行并可以设置本地文件 安装 ARC Welder. 启动 ARC Welder 后选反apk 文件,下载 zip. 将 zip 解压修改 manifest.json ...

  3. 本地域名解析知识hosts

    get(本地域名解析知识点): Domain Name System: 域名系统 目的:互联网通过IP(10.223.146.45)定位浏览器建立连接,但是我们不易区别IP,为了方便用户辨识IP所代表 ...

  4. Java中的IP对象以及本地域名解析

    本地域名解析操作步骤: 1.打开C:\WINDOWS\system32\drivers\etc目录 2.找到host文件,用记事本打开 3.添加“空间IP  域名” package WebProgra ...

  5. windows 设置脚本IP

    毫无疑问,在windows设置IP非常方便,因为有操作简单,直观的界面.通过图形用户界面设置IP在一般情况下是足够.但是,对于那些谁经常出差,由人产生的转换工作,这样的变化IP无疑耗时且不方便.假设一 ...

  6. 本地安全策略命令行secedit设置本地账户安全策略

    我们日常运行的控制台程序secpol.msc里面的内容,实质可以通过命令行完成,下面演示通过secedit命令来设置本地账号密码策略,启用密码复杂性和强制长度至少8位操作办法. ==> 新建文本 ...

  7. [windows]设置使用空白密码进行远程登录

    前提:系统用户设置了空白密码 方法1步骤: 开始菜单--〉运行--〉输入:gpedit.msc--> 计算机配置--〉Windows设置--〉安全设置--〉本地策略--〉安全选项:帐户:使用空白 ...

  8. Windows设置VMware开机自动启动,虚拟机也启动

    很多用windows系统电脑开发的童鞋,会在自己电脑上装一个虚拟机,然后在装一个linux系统当作服务器来使用.但每次电脑开机都要去重启一下虚拟机电源,实在是不划算.下面博主教大家在windows系统 ...

  9. IDEA设置本地maven仓库

    IDEA设置本地maven仓库 1.下载apache-maven-3.3.9,解压 2.在系统”环境变量“,”系统变量“设置MVN_HOME,如图: 3.在PATH设置,如: %M2_HOME%\bi ...

随机推荐

  1. asp.net core mvc 之 DynamicApi

    这段时间闲赋在家,感觉手痒,故想折腾一些东西. 由于之前移植了一个c#版本的spring cloud feign客户端(https://github.com/daixinkai/feign.net), ...

  2. Centos 7 配置tomcat服务器

    1.首先查看当前系统版本 uname -a 2.安装之前查看系统是否安装了java rpm -qa |grep java rpm -qa |grep jdk rpm -qa |grep gcj 如果没 ...

  3. .Net Core 跨平台:一个简单程序的多平台(windows、Linux、osx)发布

    .Net Core 跨平台:一个简单程序的多平台(windows.Linux.osx)发布 .Net Core 3.0 已于2019年9月23日发布了,包含了一些新特性,具体参见Announcing ...

  4. Python2与Python3的map()

    1. map()函数 Python2中,map(func, seq1[,seq2[...[,seqn)将func作用于seq*的每个序列的索引相同的元素,并最终生成一个[func(seq1[0], s ...

  5. Spring 梳理-接收请求的输入(原)

    Spring MVC 允许一下方式将客户端的数据传送到控制器的处理方法中 查询参数(Query Parameter) 表单参数(Form  Parameter) 路径变量(Path  Variable ...

  6. win10下,打开oracle时出现 oracle initialization or shutdown in process 错误 的解决办法

    解决方法: 1)在dos窗口下输入:sqlplus /nolog 2)SQL>connect sys/sys as sysdba 提示:已连接. 3)SQL>shutdown normal ...

  7. 记录使用echarts的graph类型绘制流程图全过程(一)-x,y位置的计算

    先说下本次案例业务需求,输入2个节点,获取数据后绘制出2个节点间的路径,之前使用的是网状图,但是网状图的效果不佳,需要转换成流程图的模式: 那么如何在不修改数据的情况下,实现类似效果尼? 看了下ech ...

  8. TensorFlow2.0(五):张量限幅

    .caret, .dropup > .btn > .caret { border-top-color: #000 !important; } .label { border: 1px so ...

  9. ELK 学习笔记之 Logstash安装

    Logstash安装: https://www.elastic.co/downloads/logstash 下载解压: tar –zxvf logstash-5.6.1.tar.gz 在/usr/lo ...

  10. MongoDB 学习笔记之 索引选项和重建索引

    索引选项: {background:true}在后台创建索引,索引在构建过程中,其他客户端仍然可以查询数据,不会阻塞. db.comments.createIndex({anonymous: 1},{ ...