1. View existing modules /usr/local/nginx/sbin/nginx -V Here I installed and configured SSL and wanted to add the FastDFS module 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/ 2. Recompile Nginx Re-execute the above in this location: Don't make install, otherwise it will be overwritten. make //Don't make install, otherwise it will be overwritten Back up first, a spare tire is still needed /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.bak Copy the compiled files to your original sbin directory cp ./objs/nginx /usr/local/nginx/sbin/ OK The new module is installed. How to use it is the same as before, just add a new module This is the end of this article about Nginx compiled nginx-add new module. For more related nginx compilation and adding new modules, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Using vue3 to implement counting function component encapsulation example
>>: Solutions to Mysql index performance optimization problems
Flex Layout Flex is the abbreviation of Flexible ...
1.Jenkins installation steps: https://www.jb51.ne...
After starting Docker, let's take a look at t...
Table of contents 1. MySQL master-slave replicati...
The img tag in XHTML should be written like this:...
This article uses an example to describe the simp...
Copy code The code is as follows: <html> &l...
Table of contents Purpose npm init and package.js...
This article example shares the specific code of ...
Table of contents 1. Check the number of Linux bi...
environment Linux 3.10.0-693.el7.x86_64 Docker ve...
1. Create a database authorization statement >...
Not only do different browsers behave differently...
Copy code The code is as follows: <!DOCTYPE ht...
Table of contents Environment Preparation start 1...