Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to uninstall nginx on Mac OS X

Output of nginx -v: nginx version: nginx/1.14.0.

After running brew uninstall nginx or brew remove nginx, it gives error:

Error: No such keg: /usr/local/Cellar/nginx

I have tried :

rm -f /usr/local/sbin/nginx
rm -f -R /usr/local/etc/nginx
rm -r /usr/local/opt/nginx

But still nginx -v giving output: nginx version: nginx/1.14.0

How can I remove the nginx installation?

like image 305
Rahul Sagore Avatar asked Oct 30 '25 03:10

Rahul Sagore


1 Answers

Check path with which nginx
Then, you can remove from that path.

like image 54
Rohit Verma Avatar answered Nov 01 '25 12:11

Rohit Verma



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!