这是一个新的MAMP for PC安装。
当我启动mamp时,似乎是在0.0.0.0而不是localhost(127.0.0.1)上为apache和mysql设置套接字。因此,当尝试访问localhost上的站点时,它无法连接。 msql_error_log条目显示这对于mysql
是正确的150726 12:32:27 [Note] Server hostname (bind-address): '0.0.0.0'; port: 8889
150726 12:32:27 [Note] - '0.0.0.0' resolves to '0.0.0.0';
150726 12:32:27 [Note] Server socket created on IP: '0.0.0.0'.
并且apache生成错误,显示当使用localhost时,apache正在查找127.0.0.1处的文件:
http://localhost:8888/MAMP/htdocs
[Sun Jul 26 11:44:58 2015] [error] [client 127.0.0.1] File does not exist: C:/MAMP/htdocs/favicon.ico
[Sun Jul 26 11:44:58 2015] [error] [client 127.0.0.1] File does not exist: C:/MAMP/htdocs/favicon.ico
[Sun Jul 26 11:44:59 2015] [error] [client 127.0.0.1] File does not exist: C:/MAMP/htdocs/favicon.ico
[Sun Jul 26 11:44:59 2015] [error] [client 127.0.0.1] File does not exist: C:/MAMP/htdocs/favicon.ico
[Sun Jul 26 11:45:31 2015] [error] [client 127.0.0.1] File does not exist: C:/MAMP/htdocs/docs-assets, referer:
我使用默认端口8888和8889,netstat -a显示使用这些端口的套接字是0.0.0.0。
当我在浏览器上打开MAMP启动页面(localhost:8888 / MAMP /)时它打开就好了,但当我尝试连接到localhost:8888 / MAMP / htdocs /的站点时,我收到404错误
有没有人见过这个问题或知道解决方案?