mac apache常用命令

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

/etc/apache2/httpd.conf

虚拟host配置文件是:

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

启动服务

# sudo apachectl start      // 启动Apache服务
# sudo apachectl stop       // 停止Apache服务
# sudo apachectl restart    // 重启Apache服务

评论

暂无评论