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服务

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论