Apache基本指令
查看當(dāng)前版本
httpd -v
配置文件與網(wǎng)站根目錄默認(rèn)所在位置
/etc/apache2/httpd.conf //配置文件
/Library/WebServer/Documents //網(wǎng)站根目錄
服務(wù)基本操作
sudo apachectl start // 開啟Apache
sudo apachectl stop // 關(guān)閉Apache
sudo apachectl restart // 重啟Apache
Apache的訪問
修改 /Library/WebServer/Documents 目錄的權(quán)限,放入外網(wǎng)需要訪問的文件,即可通過IP訪問。
如:http://127.0.0.1/weex/index.js