Where is the nginx file?

藏色散人
Release: 2019-10-24 11:32:53
Original
4939 people have browsed it

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template