在安装 MAMP 并在 htdocs 文件中复制 WordPress 后,尝试转到 localhost:888/wordpress 时出现错误

在安装 MAMP 并在 htdocs 文件中复制 WordPress 后,尝试转到 localhost:888/wordpress 时出现错误

因此,在安装 MAMP 并在 htdocs 文件中复制 WordPress 后,尝试转到 localhost:888/wordpress,因为 youtube 上的所有视频都显示它应该带我到我的仪表板,但却出现错误:无法访问此站点/localhost 拒绝连接。

答案1

可能是 MAMP 上的端口不起作用。有时其他服务正在使用您 apache2 (MAMP) 系统上的端口。

另外,也许你试图访问错误的端口,MAMP 的默认端口是 8888。尝试http://127.0.0.1:8888http://127.0.0.1:8888/wordpress

尝试更改服务端口:

- Open up MAMP and hit the Preferences button
- Click on the Ports tab
- Click on “Set to default Apache and MySQL ports
- Click OK

在此处输入图片描述

相关内容