简体   繁体   English

我使用自制软件安装 nginx,如何添加第三个模块?

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

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我在我的 Mac 上 brew install nginx,但我不知道配置文件在哪里,我使用 'brew install nginx --add-module=xxxx' 添加模块不起作用...请帮助

The nginx-full brew formula has a number of options that enables you to install 3rd party modules. nginx-full brew公式有许多选项,可让您安装第三方模块。

See the output of brew info nginx-full . 查看brew info nginx-full的输出。

Eg the HttpHeadersMoreModule can be installed with the command 例如,可以使用该命令安装HttpHeadersMoreModule

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

At this time (April 2018) nginx-full is deprecated by default. 此时(2018年4月)默认情况下不推荐使用nginx-full To install 3rd party modules: 要安装第三方模块:

  1. brew tap denji/nginx
  2. brew install nginx-full --with-nchan-module (or some other modules) brew install nginx-full --with-nchan-module (或其他一些模块)

目前,添加模块的当前方法是通过url安装。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM