美文网首页Web前端之路
Mac Apache启动web服务

Mac Apache启动web服务

作者: 9eac842c3a81 | 来源:发表于2019-07-16 10:41 被阅读23次

启动Apache服务

sudo apachectl start

暂停Apache服务

sudo apachectl stop

重启Apache服务

sudo apachectl restart

打开finder =》 Command +Shift+G=》/资源库/WebServer 进入WebServer中的Document文件夹,将需要启动web服务的文件拖入Document文件夹下。sudo apachectl start 启动服务,通过127.0.0.1/文件名可以访问对应的文件了。

image.png
启动服务后就可以通过127.0.0.1/mobile-h5访问了,也可换成IP。

相关文章

网友评论

    本文标题:Mac Apache启动web服务

    本文链接:https://www.haomeiwen.com/subject/lfrzkctx.html