Apache - Firefox 无法与 localhost 上的服务器建立连接

Apache - Firefox 无法与 localhost 上的服务器建立连接

我无法通过 Firefox 访问我的本地主机服务器。我使用 Apache,并尝试运行以下命令

$ service apache2 status

 * apache2 is running

$ sudo service apache2 restart

 * Restarting web server apache2                                         [ OK ]

$ sudo netstat -nlp | grep apache

tcp6       0      0 :::81                   :::*                    LISTEN  
2658/apache2    

有什么帮助吗?

Firefox 显示此错误消息:

"Unable to connect

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

    The site could be temporarily unavailable or too busy. Try again in a few moments.
    If you are unable to load any pages, check your computer's network connection.
    If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web."

相关内容