Удаление nginx
sudo apt-get purge nginx nginx-common
Terrible Tapir
sudo apt-get purge nginx nginx-common
sudo apt-get remove nginx* --purge
brew services stop nginx
brew remove nginx
rm -f -R /usr/local/nginx
rm -f /usr/local/sbin/nginx
rm -r /usr/local/var/run/nginx
rm -f -R /usr/local/etc/nginx
rm -r /usr/local/opt/nginx