mac 启动apache + php

 

一、启动Apache

  1. 在终端里输入命令,启动 Apache: sudo apachectl start

    关闭 Apache: sudo apachectl stop

    重启 Apache:sudo apachectl restart

    查看 Apache 版本:httpd -v

    Mac OS X 10.9.X 中的 Apache 版本信息:

    Server version: Apache/2.4.16 (Unix)

    Server built:   Jul 22 2015 21:03:09

  2. 启用 Apache 之后,在浏览器中访问 http://localhost 或 http://127.0.0.1,如果出现“It works!”就表示运行正常。

posted @ 2016-11-01 15:24  半天的半天  阅读(195)  评论(0编辑  收藏  举报