linux如何查找nginx使用的配置文件
1、查找nginx进程
ps -aef | grep nginx
2、通过进程pid查找程序路径
pwdx <pid>
3、在上面得到的路径下执行
xxx/nginx -t
示例如下:
本文来自博客园,作者:每天不emo,转载请注明原文链接:https://www.cnblogs.com/duanlvxin/p/17615416.html
1、查找nginx进程
ps -aef | grep nginx
2、通过进程pid查找程序路径
pwdx <pid>
3、在上面得到的路径下执行
xxx/nginx -t
示例如下:
本文来自博客园,作者:每天不emo,转载请注明原文链接:https://www.cnblogs.com/duanlvxin/p/17615416.html