首页  >  问答  >  正文

macos - MaxOS El Capitan本地Apache2.4停止服了,为什么 localhost 还可以访问It Works ?

故事这么开始的,本意在 mac 本地起个 apache,然后塞点 html docs 到 www 里,测测调试用。

但是在MaxOS X10.11 El Capitan,自带的Apache2.4下发现,
无论怎么用 apache 命令,localhost 依然没有变化,停止服务也能工作?

而且即使在 httpd.conf中改了路径

然后重启,开始,停止,重启...localhost 依然没变化,

自带的默认 html 仍然在 /Library/WebServer/Documents 中

在此请教环境大神帮忙。

某草草某草草2713 天前574

全部回复(1)我来回复

  • 阿神

    阿神2017-05-16 17:02:36

    $ sudo lsof -iTCP -sTCP:LISTEN -n

    回复
    0
  • 取消回复