acking
V2EX  ›  问与答

今天手欠,升级到 macos sierra 系统。现在 apache 服务正常启动, http://localhost 无法访问, chrome 提示

  •  
  •   acking · Oct 8, 2016 · 2673 views
    This topic created in 3530 days ago, the information mentioned may be changed or developed.
    无法访问此网站

    localhost 拒绝了我们的连接请求。
    您是想访问 http://locallhost.com/吗?
    请在 Google 中搜索“ localhost ”
    ERR_CONNECTION_REFUSED
    Supplement 1  ·  Oct 8, 2016
    到处是坑。
    开启 LoadModule php5_module libexec/apache2/libphp5.so

    出问题 sudo apachectl -k restart 看看错误信息

    反正 sudo apachectl restart 感觉很正常

    sudo apachectl -k restart 就可以了

    而且不知道为什么没有生成 apache 的日志信息,后面修改好了,可以查看日志信息
    6 replies    2016-10-09 09:18:31 +08:00
    wangkai123
        1
    wangkai123  
       Oct 8, 2016
    safari 我也一直不行...chrome 倒是可以(不行就还原下设置)
    yongzhong
        2
    yongzhong  
       Oct 8, 2016
    会不会是防火墙的缘故
    flysail
        3
    flysail  
       Oct 8, 2016
    用 ip 试试呗, 127.0.0.1
    lwbjing
        4
    lwbjing  
       Oct 8, 2016
    hosts ?防火墙? chrome 的代理?
    newbieo0O
        5
    newbieo0O  
       Oct 8, 2016
    @wangkai123 Safari 不行的原因可能是你改了 HOST
    wangkai123
        6
    wangkai123  
       Oct 9, 2016
    @newbieo0O 之前我也那么觉得,但是我还原过 Host= =
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5465 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 05:49 · PVG 13:49 · LAX 22:49 · JFK 01:49
    ♥ Do have faith in what you're doing.