mac nginx外网无法访问

#添加并允许
$sudo /usr/libexec/ApplicationFirewall/socketfilterfw --add /usr/local/Cellar/nginx/1.17.0/bin/nginx
$/usr/libexec/ApplicationFirewall/socketfilterfw --unblockapp /usr/local/Cellar/nginx/1.17.0/bin/nginx

#重启nginx
nginx -s reload

你可能感兴趣的:(mac nginx外网无法访问)