nginx快速查看配置文件的方法
来源:互联网 发布:.win域名微信打开 编辑:程序博客网 时间:2024/05/24 04:41
nginx的配置放在nginx.conf文件中,一般我们可以使用以下命令查看服务器中存在的nginx.conf文件。
locate nginx.conf/usr/local/etc/nginx/nginx.conf/usr/local/etc/nginx/nginx.conf.default...
如果服务器中存在多个nginx.conf文件,我们并不知道实际上调用的是哪个配置文件,因此我们必须找到实际调用的配置文件才能进行修改。
查看nginx实际调用的配置文件
1.查看nginx路径
ps aux|grep nginxroot 352 0.0 0.0 2468624 924 ?? S 10:43上午 0:00.08 nginx: worker process root 232 0.0 0.0 2459408 532 ?? S 10:43上午 0:00.02 nginx: master process /usr/local/opt/nginx/bin/nginx -g daemon off; root 2345 0.0 0.0 2432772 640 s000 S+ 1:01下午 0:00.00 grep nginx
nginx的路径为:/usr/local/opt/nginx/bin/nginx
2.查看nginx配置文件路径
使用nginx的 -t 参数进行配置检查,即可知道实际调用的配置文件路径及是否调用有效。
/usr/local/opt/nginx/bin/nginx -tnginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is oknginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
测试可知,nginx的配置文件路径为:/usr/local/etc/nginx/nginx.conf 且调用有效。
阅读全文
1 0
- nginx快速查看配置文件的方法
- 查看nginx配置文件目录
- linux中查看nginx、apache、php、mysql配置文件路径的方法
- linux中查看nginx、apache、php、mysql配置文件路径的方法
- linux中查看nginx、apache、php、mysql配置文件路径的方法
- linux中查看nginx、apache、php、mysql配置文件路径的方法
- linux中查看nginx、apache、php、mysql配置文件路径的方法
- linux中查看nginx、apache、php、mysql配置文件路径的方法
- linux中查看nginx、apache、php、mysql配置文件路径的方法
- linux中查看nginx、apache、php、mysql配置文件路径的方法
- linux中查看nginx、apache、php、mysql配置文件路径的方法
- linux中查看nginx、apache、php、mysql配置文件路径的方法
- nginx搭建虚拟主机的配置文件方法
- 如何查看LNAMP配置文件路径的方法
- nginx查看配置文件nginx.conf路径
- nginx查看配置文件是否正确 查看nginx.conf路径
- 快速查看NFO文件的方法
- Nginx的配置文件nginx.conf
- 2017年多校联合训练 第七场(杭二中)
- [leetcode] 31. Next Permutation
- ZOJ2110 HDU1010 搜索 Tempter of the Bone
- 单例模式
- 杭电暑期多校集训—Kolakoski
- nginx快速查看配置文件的方法
- hive之分析窗函数(二)
- 1052: 数列求和4
- Python流程控制(if,for,while)
- [设计模式](六):装饰器模式(Decorator)和代理模式(Proxy)|委托模式(Delegater )
- 致即将迈入大三的自己
- 广义线性模型(Generalized Linear Models, GLM)
- JZOJ2017.08.15 C组
- HTML初步认识