Mac查看軟件安裝信息
brew nginx info
HTTP(S) server and reverse proxy, and IMAP/POP3 proxy server
https://nginx.org/
/usr/local/Cellar/nginx/1.15.2 (24 files, 1.4MB) *
Poured from bottle on 2018-07-26 at 23:16:41
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/nginx.rb
==> Dependencies
Required: openssl ?, pcre ?
==> Options
--HEAD
Install HEAD version
==> Caveats
Docroot is: /usr/local/var/www
默認(rèn)配置
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/.
To have launchd 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:
nginx
install: 37,647 (30 days), 98,622 (90 days), 436,123 (365 days)
install_on_request: 35,419 (30 days), 92,983 (90 days), 397,614 (365 days)
build_error: 0 (30 days)