In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces you how to find the location of the nginx configuration file, the content is very detailed, interested friends can refer to, hope to be helpful to you.
Here are several ways:
1. If the program is running
Ps-ef | grep nginx# ps-ef | grep nginx root 29514 10 Mar01? 00:00:00 nginx: master process / usr/sbin/nginx-g daemon on; master_process on;www-data 29515 29514 0 Mar01? 00:00:00 nginx: worker processroot 30276 28948 0 09:36 pts/1 00:00:00 grep-- color=auto nginx
Usually / usr/sbin/nginx
2. The program is not running.
View the software installation path
Whereis nginx
Query the path where the running file is located
Which nginx
Of course, there are other query methods.
If the rpm package is installed, you can query it with rpm-qa | grep "Software or package name".
Installed by the yum method, you can find it using yum list installed
Get profile location
Through some of the above methods, the path to the nginx executable file is found, and the location of the configuration file can be found through the functions of Nginx itself.
# / usr/sbin/nginx-tnginx: the configuration file / etc/nginx/nginx.conf syntax is oknginx: configuration file / etc/nginx/nginx.conf test is successful so much for the location of how to find the nginx configuration file. I hope the above can be helpful and learn more. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.