View existing modules
(Recommended tutorial: nginx tutorial)
/usr/local/nginx/sbin/nginx -V
Here I installed and configured SSL I want to add the FastDFS module here
##Copy the red area and write it down in a small notebook./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --add-module=/usr/local/fastdfs-nginx-module/src/
make //千万不要make install,不然就真的覆盖了
/usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.bak
cp ./objs/nginx /usr/local/nginx/sbin/
The above is the detailed content of How to add new modules to compiled nginx. For more information, please follow other related articles on the PHP Chinese website!