nginx在macOS中的配置文件路径
2021/11/11 7:09:44
本文主要是介绍nginx在macOS中的配置文件路径,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
首先,我用
brew list nginx
查到了用brew的方式安装的nginx所有目录:
/opt/homebrew/Cellar/nginx/1.21.3/.bottle/etc/ (15 files)
/opt/homebrew/Cellar/nginx/1.21.3/bin/nginx
/opt/homebrew/Cellar/nginx/1.21.3/homebrew.mxcl.nginx.plist
/opt/homebrew/Cellar/nginx/1.21.3/homebrew.nginx.service
/opt/homebrew/Cellar/nginx/1.21.3/html -> ../../../var/www
/opt/homebrew/Cellar/nginx/1.21.3/share/man/man8/nginx.8
/opt/homebrew/Cellar/nginx/1.21.3/share/nginx/ (2 files)
这时候你需要注意,目录:
/opt/homebrew/Cellar/nginx/1.21.3/.bottle/etc/ (15 files)
下有一个配置文件:
nginx.conf
并不是你需要修改的(假设你在/opt/homebrew/Cellar/nginx/1.21.3/html -> ../../../var/www 这里配置了一个vue工程)
你需要去修改
/opt/homebrew/etc/nginx/nginx.conf
两个配置文件并不一样!!!如果你修改错了那会浪费很多时间
这篇关于nginx在macOS中的配置文件路径的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-03-29fail2ban nginx
- 2024-03-18install nginx proxy manager
- 2024-01-2444从零开始用Rust编写nginx,命令行参数的设计与解析及说明
- 2024-01-22比Nginx更好用的Gateway!
- 2024-01-17nginx daemon off
- 2023-12-30Nginx Vhost Traffic Status 是什么意思-icode9专业技术文章分享
- 2023-12-26使用nginx搭建creates.io镜像(稀疏索引)
- 2023-11-18centos7编译安装Nginx教程。
- 2023-11-02nginx启动命令和停止命令
- 2023-10-25Centos7系统Nginx负载均衡如何安装和配置?