Installation Environment 1. gcc installation To install nginx, you need to compile the source code downloaded from the official website first Compilation depends on the gcc environment: yum install gcc-c++ 2. PCRE pcre-devel installation Install pcre-devel, which is a secondary development library developed using pcre. : yum install -y pcre pcre-devel 3. zlib Installation The zlib library provides many ways of compression and decompression. Nginx can use zlib to gzip the contents of http packets: yum install -y zlib zlib-devel 4. OpenSSL Installation A powerful secure socket layer cryptographic library that includes major cryptographic algorithms, commonly used key and certificate package management functions, and SSL protocols. Nginx needs to support https (transmit http over ssl protocol) yum install -y openssl openssl-devel Install Nginx Download using wget command wget -c https://nginx.org/download/nginx-1.9.9.tar.gz Unzip tar -zxvf nginx-1.9.9.tar.gz cd nginx-1.9.9/ Configuration Common configuration #./configure Configure https: ./configure --with-http_ssl_module Install make make install Find the installation path: whereis nginx Start and stop nginx cd /usr/local/nginx/sbin/ ./nginx ./nginx -s stop ./nginx -s quit ./nginx -s reload Notes: ./nginx -t: Check whether the nginx.conf configuration file is correct ./nginx -s quit: This method stops the nginx process after it has completed its processing tasks. ./nginx -s stop: This method is equivalent to first finding out the nginx process ID and then using the kill command to forcibly kill the process. To configure SSL, please check which server you are using and apply for an SSL certificate when applying for a domain name, and then configure it directly in the server load balancing. 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:
|
<<: The role of MySQL 8's new feature window functions
>>: js implements a simple shopping cart module
In the past, almost every website had a sitemap p...
Table partitioning is different from database par...
Problem description: Copy code The code is as fol...
Table of contents 1. Write an HTML, the first Vue...
For reference only for Python developers using Ub...
Here are some tips from training institutions and...
Table of contents 1. Demand 1. Demand 2. SDK para...
When checking the service daily, when I went to l...
1. 85% of ads go unread <br />Interpretatio...
This article records the complete uninstallation ...
XHTML Headings Overview When we write Word docume...
If we want to make a carousel, we must first unde...
Effect demo.html <html> <head> <me...
Execute the following command to report an error ...
Table of contents Application scenarios: Method 1...