问一下,ubuntu下如何配置类似windows的host文件?
发表于 : 2011-03-22 19:13
在windows里,我可以在 windows/system32/dervers/ect/下找到host文件,在里面添加ip = 域名的。
比方说我写
127.0.0.1 www.xxx.com
那么我访问这个域名就会访问127.0.0.1这个ip的http内容。
在ubuntu里,怎么实现这个?
比方说我写
127.0.0.1 www.xxx.com
那么我访问这个域名就会访问127.0.0.1这个ip的http内容。
在ubuntu里,怎么实现这个?