apachectl start
打开Safari/Chrome,地址栏中输入http://localhost:8000/
(其他设备需要将localhost改成Mac的IP地址,比如我的就是192.168.1.104)
python -m SimpleHTTPServer