Home>Article>Operation and Maintenance> Where is the nginx file?

Where is the nginx file?

藏色散人
藏色散人 Original
2019-10-24 11:32:53 4767browse

Where is the nginx file?

Where is the nginx file?How to find the location of nginx configuration file under Linux?

How to find the location of the nginx configuration file under Linux, the method is as follows:

First find the path of the nginx executable file

ps -ef | grep nginx

Return

[root@localhost /data/nginx/logs 09:47:00&&23]#ps -ef | grep nginx root 1734 1 0 Oct28 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

Then /usr/local/nginx/conf/nginx.conf is the configuration file.

Recommended tutorial:Nginx tutorial

The above is the detailed content of Where is the nginx file?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:What is the nginx port? Next article:What is the nginx port?