SoFunction
Updated on 2024-11-10

How to find the location of nginx on Linux

Finding the location of nginx on Linux

It is possible to use

ps -ef|grep nginx

Linux Finds and Starts nginx

The nginx configuration is placed in the file

Generally we can use the following command to view the files present in the server

locate 
  • maybe
ps aux|grep nginx

Get the path and go to the sbin directory

  • ./nginxactivate (a plan)
  • pkill -9 nginxforcible stop
  • ./nginx -s reloadreopen

summarize

The above is a personal experience, I hope it can give you a reference, and I hope you can support me more.