mac os x 10.12.6 系統(tǒng)默認(rèn)是安裝了 apache 的,要啟動 apache 服務(wù)需要手動通過命令行開啟。
(推薦學(xué)習(xí):apache從入門到精通)
具體步驟:
啟動Apache
sudo?apachectl?start
停止Apache
sudo?apachectl?stop
啟動后可以通過 http://127.0.0.1 訪問了。
另外,配置文件路徑為/etc/apache2/httpd.conf,站點(diǎn)的根目錄為/Library/WebServer/Documents/。
? 版權(quán)聲明
文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載。
THE END
喜歡就支持一下吧
相關(guān)推薦