MAMP未连接到本地主机 [英] MAMP not connecting to localhost

查看:85
本文介绍了MAMP未连接到本地主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

仅在优胜美地上将MAMP更新到版本3.2.1. Apache和MySQL服务器都是绿色的,但是当我进入本地主机时,我却不断得到:该网页在浏览器(Chrome)中不可用ERR_NAME_NOT_RESOLVED.我尝试了隐身浏览和Firefox,但结果相同,同时尝试了MAMP默认端口设置和端口80& 3306,尝试重新安装MAMP并回滚到以前的MAMP安装;一切都没有成功.

Just updated MAMP to version 3.2.1 on Yosemite. Both Apache and MySQL servers are green but when I go to my localhost I keep getting: This webpage is not available ERR_NAME_NOT_RESOLVED in browser (Chrome). I’ve tried incognito browsing and Firefox with the same result, tried both the MAMP default port settings and ports 80 & 3306, tried a reinstall of MAMP and rolling back to previous install of MAMP; all without success.

任何人都可以建议如何解决此问题……这开始让我发疯!

Can anyone suggest how to fix this…it’s starting to drive me crazy!

推荐答案

可能的想法;

  • 在/Applications/MAMP/htdocs/文件夹中,是否存在要加载的供浏览器使用的内容?某种index.html或index.php文件?会不会被意外删除?

  • In your /Applications/MAMP/htdocs/ folder, is there something in there for your browser to load? Some sort of index.html or index.php file? Could it have gotten removed accidentally?

启动MAMP并转到首选项"->端口"时,Apache端口是什么?您提到您尝试使用默认值(8888/8889)和80/3306,但是端口号是否可以以某种方式更改?

When you launch MAMP and go to Preferences -> Ports, what is the Apache port? You mentioned you tried the default (8888/8889) and 80/3306, but could the port number somehow have gotten changed?

是否有其他一些Apache服务正在运行?正如您提到的那样,这不太可能,因为MAMP将Apache状态显示为绿色,但是可能值得停止MAMP,打开终端并执行 sudo apachectl stop ,返回MAMP并将端口更改为80/3306,然后返回终端并执行 sudo apachectl restart .然后返回MAMP并重新启动服务.

Is there any chance that some other Apache service is running? This is unlikely as you mentioned that MAMP shows Apache status as green, but it could be worth stopping MAMP, opening Terminal and doing sudo apachectl stop, returning to MAMP and changing the ports to 80/3306, then returning to Terminal and doing sudo apachectl restart. Then return to MAMP and start services again.

如果上述所有方法均无效,那么将MAMP偏好设置中的Apache端口设置为随机值(例如8712),然后尝试

If none of the above work, what if you set the Apache port in MAMP's preferences to something random, like 8712, and then try http://localhost:8712/ to see if it loads.

让我们知道您是否已经尝试过这些!

Let us know if you've tried those already!

这篇关于MAMP未连接到本地主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆