NGINX编译第三方动态模块

NGINX编译第三方动态模块


./configure --add-dynamic-module=…/nginx-hello-world-module
cp objs/ngx_http_hello_world_module.so /usr/local/nginx/modules
要将模块加载到NGINX,请将load_module指令添加到nginx.conf配置文件的主上下文中(不在http 或 stream上下文中):
load_module modules/ngx_http_hello_world_module.so;

猜你喜欢

转载自blog.csdn.net/qq_37705525/article/details/125473147