Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/macos/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 如何知道运行过程';s配置文件位置?_Macos_Apache - Fatal编程技术网

Macos 如何知道运行过程';s配置文件位置?

Macos 如何知道运行过程';s配置文件位置?,macos,apache,Macos,Apache,我可以通过以下方式在Mac中找到apache进程: $ ps -ef | grep httpd 0 96 1 0 五10上午 ?? 0:03.21 /usr/sbin/httpd -D FOREGROUND 70 256 96 0 五10上午 ?? 0:00.05 /usr/sbin/httpd -D FOREGROUND 70 4016 96 0 五03下午 ?? 0:00.01 /usr/sb

我可以通过以下方式在Mac中找到apache进程:

$ ps -ef | grep httpd
  0    96     1   0 五10上午 ??         0:03.21 /usr/sbin/httpd -D FOREGROUND
 70   256    96   0 五10上午 ??         0:00.05 /usr/sbin/httpd -D FOREGROUND
 70  4016    96   0 五03下午 ??         0:00.01 /usr/sbin/httpd -D FOREGROUND
 70  4017    96   0 五03下午 ??         0:00.04 /usr/sbin/httpd -D FOREGROUND
 70  4018    96   0 五03下午 ??         0:00.01 /usr/sbin/httpd -D FOREGROUND
501 11243 10710   0 11:40上午 ttys002    0:00.00 grep httpd
您可以看到,
/usr/sbin/httpd
正在运行,但是我如何知道
/usr/sbin/httpd
的配置文件呢?因为我的Mac电脑中安装了多个apache。

如下所示:

您可以使用:

$ /usr/sbin/httpd -V | grep SERVER_CONFIG_FILE