https://github.com/cao7113/hello-nginx
https://github.com/cao7113/hello-nginx
hello nginx
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cao7113/hello-nginx
- Owner: cao7113
- Created: 2022-03-01T01:55:49.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-11-15T04:00:55.000Z (over 3 years ago)
- Last Synced: 2025-12-25T13:45:51.060Z (6 months ago)
- Topics: hello, nginx
- Language: HTML
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hello [Nginx](https://nginx.org/en/)
[Nginx Docs](https://docs.nginx.com/)
## MacOS M1
```
brew install nginx
==> 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 restart nginx after an upgrade:
brew services restart 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.23.2: 26 files, 2.2MB
==> Running `brew cleanup nginx`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Caveats
==> nginx
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 restart nginx after an upgrade:
brew services restart nginx
Or, if you don't want/need a background service you can just run:
/opt/homebrew/opt/nginx/bin/nginx -g daemon off;
```