打開終端
重啟apache:sudo apachectl restart
關(guān)閉apache:sudo apachectl stop
開啟apache:sudo apachectl start