我使用以下命令安装 nginx:
冲泡安装 nginx
在我的 nginx.conf 文件中使用模块 set_real_ip_from 后:
ginx: [emerg] unknown directive "set_real_ip_froxm" in /usr/local/etc/nginx/nginx.conf:26
我需要安装模块http_realip_module
但我不知道,我试试这个
brew reinstall nginx --with-http_realip_module
但不起作用...
如何安装一个nginx模块?
最佳答案
你可以使用 nginx-full。这允许您包含所需的模块。以下是说明:
brew tap homebrew/nginx
brew install nginx-full --with-realip
更多信息请访问 https://github.com/denji/homebrew-nginx
关于macos - 安装mac osx后安装nginx模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38000505/