homebrew安装的nginx重新编译添加mogilefs-nginx-module模块支持

如果是通过homebrew安装的nginx,那源码目录位置在:

/Library/Caches/Homebrew

如下图:

1

通过如下命令可以看到原先编译时候的编译参数:

2这样就可以把自己的参数加进去:

./configure --prefix=/usr/local/Cellar/nginx/1.4.4 --with-http_ssl_module --with-pcre --with-ipv6 --sbin-path=/usr/local/Cellar/nginx/1.4.4/bin/nginx --with-cc-opt=-I/usr/local/include --with-ld-opt=-L/usr/local/lib --conf-path=/usr/local/etc/nginx/nginx.conf --pid-path=/usr/local/var/run/nginx.pid --lock-path=/usr/local/var/run/nginx.lock --http-client-body-temp-path=/usr/local/var/run/nginx/client_body_temp --http-proxy-temp-path=/usr/local/var/run/nginx/proxy_temp --http-fastcgi-temp-path=/usr/local/var/run/nginx/fastcgi_temp --http-uwsgi-temp-path=/usr/local/var/run/nginx/uwsgi_temp --http-scgi-temp-path=/usr/local/var/run/nginx/scgi_temp --http-log-path=/usr/local/var/log/nginx/access.log --error-log-path=/usr/local/var/log/nginx/error.log --with-http_gzip_static_module --with-http_stub_status_module --add-module=/usr/local/Cellar/mogilefs-nginx-module/1.0.4/share/mogilefs-nginx-module/

mogilefs-nginx-module模板就编译进去了。

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注