nginx config file in macOS



jelly@hangs-MacBook-Pro learn-nginx % brew uninstall nginx

Uninstalling /opt/homebrew/Cellar/nginx/1.27.0... (27 files, 2.4MB)


Warning: The following nginx configuration files have not been removed!

If desired, remove them manually with `rm -rf`:

  /opt/homebrew/etc/nginx

  /opt/homebrew/etc/nginx/fastcgi.conf

  /opt/homebrew/etc/nginx/fastcgi.conf.default

  /opt/homebrew/etc/nginx/fastcgi_params

  /opt/homebrew/etc/nginx/fastcgi_params.default

  /opt/homebrew/etc/nginx/koi-utf

  /opt/homebrew/etc/nginx/koi-win

  /opt/homebrew/etc/nginx/mime.types

  /opt/homebrew/etc/nginx/mime.types.default

  /opt/homebrew/etc/nginx/nginx.conf

  /opt/homebrew/etc/nginx/nginx.conf.default

  /opt/homebrew/etc/nginx/scgi_params

  /opt/homebrew/etc/nginx/scgi_params.default

  /opt/homebrew/etc/nginx/servers

  /opt/homebrew/etc/nginx/uwsgi_params

  /opt/homebrew/etc/nginx/uwsgi_params.default

  /opt/homebrew/etc/nginx/win-utf

jelly@hangs-MacBook-Pro learn-nginx % brew install nginx  

==> Downloading https://formulae.brew.sh/api/formula.jws.json

############################################################## 100.0%

==> Downloading https://formulae.brew.sh/api/cask.jws.json

############################################################## 100.0%

Warning: You are using macOS 15.

We do not provide support for this pre-release version.

It is expected behaviour that some formulae will fail to build in this pre-release version.

It is expected behaviour that Homebrew will be buggy and slow.

Do not create any issues about this on Homebrew's GitHub repositories.

Do not create any issues even if you think this message is unrelated.

Any opened issues will be immediately closed without response.

Do not ask for help from Homebrew or its maintainers on social media.

You may ask for help in Homebrew's discussions but are unlikely to receive a response.

Try to figure out the problem yourself and submit a fix as a pull request.

We will review it but may or may not accept it.


==> Downloading https://ghcr.io/v2/homebrew/core/nginx/manifests/1.27

Already downloaded: /Users/jelly/Library/Caches/Homebrew/downloads/b1f7869d448a737e20910bed829f1480658f1815a4ac4d3b4edb99e1ff7004ba--nginx-1.27.0.bottle_manifest.json

==> Fetching nginx

==> Downloading https://ghcr.io/v2/homebrew/core/nginx/blobs/sha256:6

Already downloaded: /Users/jelly/Library/Caches/Homebrew/downloads/f31c6a57141c3e98fdaf3eb27c2e1d67b9dcdee2d3df6a37108bb4f8c2bb2de9--nginx--1.27.0.arm64_sonoma.bottle.tar.gz

==> Pouring nginx--1.27.0.arm64_sonoma.bottle.tar.gz

==> Caveats

Docroot is: /opt/homebrew/var/www


The default port has been set in /opt/homebrew/etc/nginx/nginx.conf to 8080 so that

nginx can run without sudo.


nginx will load all files in /opt/homebrew/etc/nginx/servers/.


To start nginx now and restart at login:

  brew services start nginx

Or, if you don't want/need a background service you can just run:

  /opt/homebrew/opt/nginx/bin/nginx -g daemon\ off\;

==> Summary

🍺  /opt/homebrew/Cellar/nginx/1.27.0: 27 files, 2.4MB

==> Running `brew cleanup nginx`...

Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.

Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

Nhận xét