brew info nginx: 可以查看我用brew install 安装nginx后的信息
nginx: stable 1.15.7 (bottled), HEAD
HTTP(S) server and reverse proxy, and IMAP/POP3 proxy server
https://nginx.org/
Not installed
From: https://mirrors.ustc.edu.cn/homebrew-core.git/Formula/nginx.rb
==> Dependencies
Required: openssl ✔, pcre ✘
Optional: passenger ✘
==> Options
--with-passenger
Compile with support for Phusion Passenger module
--HEAD
Install HEAD version
==> Caveats
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/.
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
==> Analytics
install: 44,965 (30 days), 105,474 (90 days), 432,223 (365 days)
install_on_request: 41,982 (30 days), 99,205 (90 days), 396,427 (365 days)
build_error: 0 (30 days)
brew search nginx: 查询要安装的软件是否存在
参考文献:
mac下安装nginx: https://www.cnblogs.com/meng1314-shuai/p/8335140.html
网友评论