我有10台电脑,想要在它们所有的系统上获取我的本地主机。我正在使用Ubuntu 12.04。我已经像这样更改了我的hosts文件
127.0.0.1 localhost
127.0.1.1 ri8-MS-7788
192.168.1.22 manojdhiman.com
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
如果我使用类似于http://192.168.1.22/的网址访问,我的项目可以在其他计算机上通过IP地址获得,但是如果我使用http://manojdhiman.com/,则无法访问。