Locate the nginx.conf file my nginx is actually using

前端 未结 6 1470
南方客
南方客 2021-01-29 23:57

Working on a client\'s server where there are two different versions of nginx installed. I think one of them was installed with the brew package manager (its an osx box) and the

6条回答
  •  一生所求
    2021-01-30 00:25

    % ps -o args -C nginx
    COMMAND
    build/sbin/nginx -c ../test.conf
    

    If nginx was run without the -c option, then you can use the -V option to find out the configure arguments that were set to non-standard values. Among them the most interesting for you are:

    --prefix=PATH                      set installation prefix
    --sbin-path=PATH                   set nginx binary pathname
    --conf-path=PATH                   set nginx.conf pathname
    

提交回复
热议问题