打开终端,开启Apache:
开启apache: sudo apachectl start
重启apache: sudo apachectl restart
关闭apache: sudo apachectl stop
服务器文件路径
前往Apache服务器的文件路径(/Library/WebServer/Documents)
本地服务器地址
http://127.0.0.1
开启apache: sudo apachectl start
重启apache: sudo apachectl restart
关闭apache: sudo apachectl stop
服务器文件路径
前往Apache服务器的文件路径(/Library/WebServer/Documents)
本地服务器地址
http://127.0.0.1