mac apache经常使用命令

Mac是自带Apache的,咱们想使用Apache服务直接进行配置就能够了。
配置前须知
Apache的主配置文件是:apache

/etc/apache2/httpd.conf

虚拟host配置文件是:rest

/private/etc/apache2/extra/httpd-vhosts.conf

启动服务code

# sudo apachectl start      // 启动Apache服务
# sudo apachectl stop       // 中止Apache服务
# sudo apachectl restart    // 重启Apache服务
相关文章
相关标签/搜索