Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache 如何在ubuntu中合并localhost和127.0.0.1_Apache_Ubuntu_Merge_Localhost - Fatal编程技术网

Apache 如何在ubuntu中合并localhost和127.0.0.1

Apache 如何在ubuntu中合并localhost和127.0.0.1,apache,ubuntu,merge,localhost,Apache,Ubuntu,Merge,Localhost,我在ubuntu上看不到我的项目http://127.0.0.1,但我可以通过http://localhost。 如何在ubuntu中合并localhost和127.0.0.1 我在hosts中设置了127.0.0.1 localhost,但仍然不起作用您的hostfile(/etc/hosts)的第一行应该有这样一个条目: 127.0.0.1本地主机 我会确保这些条目存在 我们在(/etc/hosts)中有127.0.0.1localhost

我在ubuntu上看不到我的项目http://127.0.0.1,但我可以通过
http://localhost
。 如何在ubuntu中合并localhost和127.0.0.1

我在hosts中设置了
127.0.0.1 localhost
,但仍然不起作用

您的hostfile(/etc/hosts)的第一行应该有这样一个条目:

127.0.0.1本地主机


我会确保这些条目存在

我们在(/etc/hosts)中有
127.0.0.1localhost