localhost


  一个特殊的 DNS主机名, 代表分配给引用这个名称的计算机的 IP地址。 把这个名称看作是提供快速但是不可靠服务的无连接 协议
  localhost 指你所在的计算机本身。
  在 windows系统它成了  127.0.0.1的别名 ,在*nix系统下,查看网卡配置会发现作为本地回环的方式,一定程序上使用localhost比127.0.0.1要快一些。
  重要重申localhost和IIS, IE,windows无关,他就是指你使用的计算机本身。
  在 Hosts文件中 localhost指向的IP是127.0.0.1 这个关系是可以修改的
  windows 修改localhost指向
  打开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 (这里不让显示) # source server
  # 38.25.63.10 (这里不让显示) # x client host
  127.0.0.1 localhost
  最下面的:127.0.0.1 localhost,这两个参数你可以随意改。格式是IP空格域名
  localhost login 是什么意思?
  在 Linux系统中,系统 管理员在为用户建立新帐号时赋给用户一个用户名和一个初始的口令。另外,Linux系统给计算机赋予一个主机名。主机名用于在网络上识别独立的计算机(即使用户的计算机没有联网,也应该有一个主机名)。TurboLinux系统给出的缺省主机名为:localhost。
  在Linux系统成功启动后,屏幕会提示:localhost login ,意思就是系统要求输入 用户名,接着要求输入口令。否则将无法登录系统,也就无法使用。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值