When compiling and installing Nginx, some modules are not installed by default, such as http_ssl_module. In order for Nginx to support HTTPS, this module must be added. The following explains how to add a new module after it has already been installed. 1. Find the source code root directory where nginx is installed (that is, the directory where the installation package is stored). If not, download the new source code and decompress it. cd software ls nginx-1.10.2 nginx-1.10.2.tar.gz 2. Check the nginx version and its compilation parameters /usr/local/nginx/sbin/nginx -V 3. Enter the nginx source directory cd nginx-1.10.2 4. Recompiled code and modules ./configure --prefix=/usr/local/nginx --with-http_ssl_module 5. Execute make (note: do not make install, otherwise the installation will be overwritten). After make, there will be an nginx in the /software/nginx-1.10.2/objs directory. This is the new version of the program. 6. Back up the old nginx program cd /usr/local/nginx/sbin/ mv nginx nginx_bak 7. Copy the new nginx program to /usr/local/nginx/sbin/ cp /software/nginx-1.10.2/objs/nginx /usr/local/nginx/sbin/ 8. Test whether the new nginx program is correct /usr/local/nginx/sbin/nginx -t nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful 9. Smooth service startup /usr/local/nginx/sbin/nginx -s reload Check if the module is installed /usr/local/nginx/sbin/nginx -V nginx version: nginx/1.10.2 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) built with OpenSSL 1.0.1e-fips 11 Feb 2013 TLS SNI support enabled configure arguments: --prefix=/usr/local/nginx --with-http_ssl_module Restart Nginx ./nginx -s quit ./nginx nginx reload module completed! The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: MySQL 8.0.11 Installation Tutorial under Windows
>>: JavaScript example code to determine whether a file exists
In this article, we will need to learn how to vie...
The textarea tag size is immutable Copy code The c...
Using Navicat directly to connect via IP will rep...
1. Log in to VPN using IE browser 2. Remote login...
mysql5.6.28 installation and configuration method...
After setting textarea input in Element UI to aut...
Table of contents 1. Add packaging command 2. Run...
Table of contents Preface 1. Background 2. Simula...
Table of contents 1. Parent-child component commu...
Mainly use the preserve-3d and perspective proper...
background Before we know it, a busy year is comi...
Directly code: select 'bigint unsigned' a...
Table of contents What is a headless browser? Why...
Detailed example of MySQL exchange partition Pref...
Table of contents 1. Check the MySQL status in th...