首先要把你建立的那几个站点加上主机头
例如:
test1.abc.com
test2.abc.com
test3.abc.com
test4.abc.com
然后:打开这个文件
C:\WINDOWS\system32\drivers\etc\hosts
加入如下几句
127.0.0.1 test1.abc.com
127.0.0.1 test2.abc.com
127.0.0.1 test3.abc.com
127.0.0.1 test4.abc.com
例如:
test1.abc.com
test2.abc.com
test3.abc.com
test4.abc.com
然后:打开这个文件
C:\WINDOWS\system32\drivers\etc\hosts
加入如下几句
127.0.0.1 test1.abc.com
127.0.0.1 test2.abc.com
127.0.0.1 test3.abc.com
127.0.0.1 test4.abc.com
本文介绍如何通过修改hosts文件配置本地多个虚拟站点的方法,包括设置主机头和具体步骤。
6万+

被折叠的 条评论
为什么被折叠?



