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服務
相關文章
相關標籤/搜索