查看 MacOS 自带 Apache2 版本
$ apachectl -v
启动 Apache2 后,浏览器打开http://localhost ,显示It works!
说明Apache已经启动。
$ apachectl start
Apache的默认根目录/Library/WebServer/Documents
查看 MacOS 自带 Apache2 版本
$ apachectl -v
启动 Apache2 后,浏览器打开http://localhost ,显示It works!
说明Apache已经启动。
$ apachectl start
Apache的默认根目录/Library/WebServer/Documents