I am unable to stop nginx server by the command
sudo /etc/init.d/nginx stop
tried killing it through pid
First I check the process which is listening to a port via this
command.
lsof -Pnl +M -i4
Then I kill it by
sudo kill -9 pid
The app is still running!!.
After that when i again do
lsof -Pnl +M -i4
I see that a new process is now listening on the same port, for which
i tried to kill the process.
Regards,
Pankaj
Best Answer
Did you try stopping the process as root?