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
Table of contents 1 Background 2 Create a contain...
1. MySQL's own stress testing tool - Mysqlsla...
Table of contents Preface On-site investigation C...
Problem Description Since we don't log in to ...
The frame and rules attributes of the table tag c...
1. es startup command: docker run -itd -e TAKE_FI...
This article shares the specific code of React to...
This article shares the specific code of JavaScri...
Environment Preparation Docker environment MySQL ...
Table of contents Preface 1. EndPoint 2. Connecti...
How to turn a jar package into a docker container...
Copy code The code is as follows: <form method...
Responsive design is to perform corresponding ope...
Table of contents 01 What is the essence of a con...
01. Overview Absolute paths and relative paths ar...