www.youtube.com在安装Apache后重定向到localhost

时间:2016-01-14 21:27:52

标签: apache youtube-api localhost

我记得将localhost和www.youtube.com添加到文档中是为了让Youtube API启动并运行,我可能不应该这样做。

有谁知道该做什么或我应该编辑什么文件?

screenshot of browser with YouTube's URL in the address bar and a plain white page that just says "It works!" in the window

最后......

screenshot of browser with localhost in the address bar and a plain white page that just says "It works!" in the window

2 个答案:

答案 0 :(得分:1)

主机文件必须是。 C:\ Windows \ System32下\驱动程序\等

答案 1 :(得分:1)

如果您使用的是 Windows ,请修改C:\Windows\System32\drivers\etc\hosts文件。

如果您使用 Linux ,请修改/etc/hosts文件。

如果您使用 Mac ,请修改/private/etc/hosts文件。