I use homebrew to install nginx, and how to add 3rd modules?

佐手、 提交于 2019-12-04 11:16:58

问题


I brew install nginx on my mac, but I don't know where is the configure file, and I use 'brew install nginx --add-module=xxxx' to add modules is not working... please help!!!


回答1:


The nginx-full brew formula has a number of options that enables you to install 3rd party modules.

See the output of brew info nginx-full.

E.g. the HttpHeadersMoreModule can be installed with the command

brew install nginx-full --with-headers-more-module



回答2:


At this time (April 2018) nginx-full is deprecated by default. To install 3rd party modules:

  1. brew tap denji/nginx
  2. brew install nginx-full --with-nchan-module (or some other modules)



回答3:


Right now, the current method for adding modules is to install by url.

brew install https://raw.github.com/marcqualie/homebrew-nginx/master/nginx.rb


来源:https://stackoverflow.com/questions/16332633/i-use-homebrew-to-install-nginx-and-how-to-add-3rd-modules

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!