编辑文件/etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
# Dev hosts
10.211.55.25 news.dev 360.dev
仅 news.dev 有效,找不到 360.dev。
尝试重新启动 Vagrant,但没有成功。我在 Vagrant 上使用 Parallels 运行 Ubuntu 14.04。
更新。
这是建议的输出:
##$
# Host Database$
#$
# localhost is used to configure the loopback interface$
# when the system is booting. Do not change this entry.$
##$
127.0.0.1^I^I^I^Ilocalhost$
255.255.255.255^I^I^I^Ibroadcasthost$
::1 localhost $
$
# Dev hosts$
10.211.55.24 sportus.dev$
10.211.55.25 news.dev 360.dev sc.dev test.dev$
10.211.55.25 ^Inodejs-default-1472407165669-12306.shared nodejs-default-1472407165669-12306 #prl_hostonly shared$