1
2
3
4
5
6
7
8
9
10
11
|
我的博客已迁移到xdoujiang.com请去那边和我交流
一、通过windows的hosts文件(C:\Windows\System32\drivers\etc\hosts)
aaa.bbb.com 111.111.111.111
111.111.111.111 aaa.bbb.com
二、通过linux下的
/etc/hosts
(
cat
/etc/hosts
)
aaa.bbb.com 111.111.111.111
111.111.111.111 aaa.bbb.com
三、通过curl命令直接绑定访问
curl -H
"Host:aaa.bbb.com"
http:
//111
.111.111.111 >
/dev/null
|
本文转自 xdoujiang 51CTO博客,原文链接:http://blog.51cto.com/7938217/1677655,如需转载请自行联系原作者