Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nginx wont leave! how to remove it [closed]

I've run nginx once and now I cannot get rid of it. when I run apache on my server localhost still point to that welcome to nginx i dont know why. I'm on windows 7.

like image 616
Nicolas Manzini Avatar asked Sep 02 '12 21:09

Nicolas Manzini


People also ask

How do I disable nginx on Mac?

The correct way to do this for Nginx installed via MacPorts: Start: sudo port load nginx. Stop: sudo port unload nginx.


1 Answers

To kill nginx process.

If you are sure nginx is actually running, You just need to kill nginx.exe process and re-run apache.

Open Run (Window key + R) OR commend prompt (cmd.exe) and Paste below command,

taskkill /F /IM nginx.exe


To find which process is holding port 80.

Here is netstat command & output to find which process is holding port 80.

C:\> netstat -n -a -o | findstr "0.0.0.0:80"
  TCP    0.0.0.0:80             0.0.0.0:0              LISTENING       1588

^ Here, 1588 is PID of process holding port 80.

So, below is sample command to get Process name from PID 1588.

C:\> tasklist /svc /FI "PID eq 1588"

Image Name                     PID Services
========================= ======== ============================================
nginx.exe                     1588 N/A

So, it shows that nginx.exe is holding port 80.

like image 93
Mayura Avatar answered Oct 14 '22 22:10

Mayura