mac nginx php 补充说明

1.常用命令

nginx #启动nginx
nginx -s reload #重新加载配置文件 ,热加载配置文件
nginx -s quit #:推荐 待nginx进程处理任务完毕进行停止
nginx -s stop #:先查出nginx进程id再使用kill命令强制杀掉进程。

2.nginx的默认端口号是8080,可以修改为80

 /opt/homebrew/etc/nginx/nginx.conf 

请添加图片描述

参考博客:
MAC下安装nginx,php

猜你喜欢

转载自blog.csdn.net/baidu_40537062/article/details/125470590
今日推荐