Fully Qualified Domain Names

本文介绍如何通过修改Windows系统的hosts文件来为localhost创建一个完全限定域名(FQDN)的别名,例如添加www.louisling.com作为localhost的别名。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Fully Qualified Domain Names (Create an alias for localhost)

1) Go to C:\WINDOWS\system32\drivers\etc and open the hosts file in a text editor.

2) Inside the hosts file it contains this line
127.0.0.1 localhost

create another alias for localhost that looks like a fully qualified domain name, like:
127.0.0.1 localhost www.louisling.com

or like this:
127.0.0.1 localhost
127.0.0.1 pclouis
127.0.0.1 www.louisling.com
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值