I want to compile nginx with options，but as if it does not work.
brew options nginx，I got
--with-http2 and install with them.
brew reinstall nginx-full --with-debug --with-http2
==> Reinstalling homebrew/nginx/nginx-full --with-debug --with-http2
==> Downloading https://nginx.org/download/nginx-1.17.0.tar.gz
Already downloaded: /Users/zhangliao/Library/Caches/Homebrew/downloads/c9d05351a69d3b5c3087657cbf2f3d4fffdf8930a880a1101d7ae5782a5b58e9–nginx-1.17.0.tar.gz
==> ./configure --prefix=/usr/local/Cellar/nginx-full/1.17.0 --with-http_ssl_module --with-pcre --with-ipv6 --sbin-path=/usr/local/Cellar/nginx-full/1.17.0/bin/ngi
==> make install
Docroot is: /usr/local/var/www
The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that
nginx can run without sudo.
nginx will load all files in /usr/local/etc/nginx/servers/.
- Tips -
Run port 80:
sudo chown root:wheel /usr/local/opt/nginx-full/bin/nginx sudo chmod u+s /usr/local/opt/nginx-full/bin/nginx
nginx -s reload Reopen Logfile: nginx -s reopen
nginx -s stop Waiting on exit process nginx -s quit
To have launchd start homebrew/nginx/nginx-full now and restart at login:
brew services start homebrew/nginx/nginx-full
Or, if you don’t want/need a background service you can just run:
/usr/local/Cellar/nginx-full/1.17.0: 8 files, 1.2MB, built in 27 seconds