Netbeans IDE mac osx Localhost not working


Netbeans IDE mac osx Localhost not working

我在osx上的Netbeans IDE上收到以下错误:

Firefox can't establish a connection to the server at localhost:8888

URL是:

http://localhost:8888/PhpProject_130208/index.php

代码为:

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Hope this works</title>
</head>
<body>
    <?php
    // put your code here
        echo "My first PHP script!";
    ?>
</body>
</html>

当我运行MAMP时,它说MAMP已安装并工作>

不用说,我是一个十足的n00b,我甚至不知道该怎么问这个问题。我正在尝试在我的mac上学习PHP,并且已经走到了这一步。

我做错了什么,我在哪里可以学会如何正确设置?

阅读Netbeans的PHP学习教程,这将帮助您掌握基本知识。

有用的文章:

  • NetBeans IDE PHP快速入门教程
  • 设置PHP项目
  • 在MAC OS X中为PHP开发配置PHP、Apache、MySQL和Xdebug