美文网首页
Mac自带Apache

Mac自带Apache

作者: 择一城终老_347e | 来源:发表于2020-11-16 10:13 被阅读0次

### 启动Apache

* sudo apachectl start

### 停止Apache

* sudo apachectl stop

### 重启Apache

* sudo apachectl restart

### 启动后可以通过 http://127.0.0.1 访问了。

另外,配置文件路径为

* /etc/apache2/httpd.conf

### 站点的根目录为

* /Library/WebServer/Documents/

### 查看内网IP

* ifconfig

* ifconfig en0

相关文章

网友评论

      本文标题:Mac自带Apache

      本文链接:https://www.haomeiwen.com/subject/uxyabktx.html