Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upgrade NGNIX version on MacOS

I have the current version of ngnix of:

nginx -v
nginx version: nginx/1.15.6
  • now I want to upgrade it, but do not know how?

  • I have found these resources: https://medium.com/@soban1193/upgrading-nginx-to-the-latest-version-on-ubuntu-c0ad9116cf87 and https://www.digitalocean.com/community/questions/how-to-update-nginx-and-should-i-update-it but they seem for upgrade using ubuntu commands.

  • I want to know how I can make the upgrade using macos

like image 334
devgirl Avatar asked Sep 02 '25 17:09

devgirl


1 Answers

To upgrade nginx on macOS, use Homebrew:

  1. Update Homebrew

    brew update
    
  2. Upgrade nginx

    brew upgrade nginx
    
  3. Cleanup old artifacts

    brew cleanup
    

Reference

like image 154
braebdeb Avatar answered Sep 05 '25 09:09

braebdeb