brew install nginx
1.启动
./nginx
2.退出
nginx -s quit
3.测试配置文件是否有误
nginx -t
4.查看nginx是否运行
pidof nginx ps -A | grep nginx
http://localhost:8080/
1.默认安装路径
/usr/local/etc/nginx
2.默认页面路径
/usr/local/var/www
[1] 题图: https://unsplash.com/
[1]
本文分享自 编程随想曲 微信公众号,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文参与?腾讯云自媒体同步曝光计划? ,欢迎热爱写作的你一起参与!