首先参考博客
新手如何在mac上配置Apache服务器_wanxue0804的博客-CSDN博客_apache mac
一路配置,启动apache,
sudo apachectl start
出现如下警报:
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using hailingdeiMac.local. Set the 'ServerName' directive globally to suppress this message
但不影响html 文件的打开
接着参考了此文章
解决httpd: Could not reliably determine the server's fully qualified domain name - 52linux - 博客园
vi /etc/httpd/conf/httpd.conf