linux如何查找nginx使用的配置文件

1、查找nginx进程

ps -aef | grep nginx

2、通过进程pid查找程序路径

pwdx <pid>

3、在上面得到的路径下执行

xxx/nginx -t

示例如下:

posted @ 2023-08-08 21:10  每天不emo  阅读(1454)  评论(0编辑  收藏  举报