This article is a mirror article of machine translation, please click here to jump to the original article.

View: 29936|Reply: 8

[linux] Install nginx service with CentOS source code

[Copy link]
Posted on 9/3/2021 1:43:38 PM | | | |
Nginx (engine x) is a high-performance HTTP and reverse proxy web server that also provides IMAP/POP3/SMTP services.

Review:

nginx adds third-party modules, as well as enabling modules that are natively supported by nginx
https://www.itsvse.com/thread-4713-1-1.html

Centos installation nginx-1.10.2 tutorial
https://www.itsvse.com/thread-3267-1-1.html

Centos installation nginx-1.14.0 tutorial
https://www.itsvse.com/thread-4855-1-1.html
First, install the necessary packages on CentOS with the following commands:



Download nginx-1.20.1

Download using the wget command, as follows:



Unzip nginx-1.20.1

The command is as follows:



Compile and install

configure the command is as follows:

prefix parameter is used to specify the installation directory after the nginx compilation, note thatThe compiled installation directory cannot be the same as the extracted directoryOtherwise, the error is as follows:

cp: ‘conf/koi-win‘ and ‘xxx/conf/koi-win‘ are the same file


Configure and launch

You can go to the conf directory and modify some nginx configurations, such as:


Implementation: Adding nginx to the systemctl service to auto-start under CentOS 7
https://www.itsvse.com/thread-4871-1-1.html




You can use the netstat command to view port occupancy, as shown in the following image:



(End)




Previous:.NET/C# MailKit Tutorial for Sending Mail [with Source Code]
Next:Nginx implements the function of adding watermark to images
 Landlord| Posted on 9/3/2021 1:43:54 PM |
nginx access issue connect() to 127.0.0.1:8080 failed (13: Permission den...
https://www.itsvse.com/thread-10048-1-1.html

Nginx configuration file multilogical operations
https://www.itsvse.com/thread-9949-1-1.html

Nginx implements TCP (FTP) proxy forwarding
https://www.itsvse.com/thread-9739-1-1.html

Nginx checks the connection through a web browser
https://www.itsvse.com/thread-9737-1-1.html

Practical configuration of NGINX High Availability Load Balancing
https://www.itsvse.com/thread-9260-1-1.html

Nginx log splitting and deletion
https://www.itsvse.com/thread-9259-1-1.html

Nginx customizes the 404 error page and returns a 200 status code solution
https://www.itsvse.com/thread-9221-1-1.html

Detailed explanation of Nginx configuration logs
https://www.itsvse.com/thread-9147-1-1.html

[Practical combat] Create a Docker image based on Nginx
https://www.itsvse.com/thread-8800-1-1.html

Alibaba Cloud OSS Nginx reverse proxy configuration
https://www.itsvse.com/thread-7862-1-1.html

Implement dynamic upstreams using Nginx's resolver
https://www.itsvse.com/thread-7861-1-1.html

nginx pseudo-static rules
https://www.itsvse.com/thread-7810-1-1.html

Use Nginx Reverse Proxy and Content Replacement Module to implement dynamic web content replacement
https://www.itsvse.com/thread-7359-1-1.html

Control file access using Nginx's X-Sendfile mechanism (php version)
https://www.itsvse.com/thread-5411-1-1.html

Docker creates an Nginx container
https://www.itsvse.com/thread-5119-1-1.html

Detailed explanation of how to use Nginx variables
https://www.itsvse.com/thread-5049-1-1.html

Implementation: Adding nginx to the systemctl service to auto-start under CentOS 7
https://www.itsvse.com/thread-4871-1-1.html

Centos installation nginx-1.14.0 tutorial
https://www.itsvse.com/thread-4855-1-1.html

php nginx uses X-Accel-Redirect to control file download permissions
https://www.itsvse.com/thread-4797-1-1.html

nginx obtains the user's real IP address
https://www.itsvse.com/thread-4776-1-1.html

CentOS nginx installation firewall ngx_lua_waf
https://www.itsvse.com/thread-4715-1-1.html

[Actual combat] Nginx 1.4.4 upgraded to 1.14.0
https://www.itsvse.com/thread-4714-1-1.html

nginx adds third-party modules, as well as enabling modules that are natively supported by nginx
https://www.itsvse.com/thread-4713-1-1.html

Nginx Lua's WAF Application Firewall Vulnerability
https://www.itsvse.com/thread-4711-1-1.html

nginx access_log logs are completely closed
https://www.itsvse.com/thread-4238-1-1.html

nginx+php security hardening configuration
https://www.itsvse.com/thread-3999-1-1.html

nginx returns the specified content when visiting the specified page
https://www.itsvse.com/thread-3988-1-1.html

ngx_lua_waf is a web application firewall based on lua-nginx-module (openresty).
https://www.itsvse.com/thread-3416-1-1.html

nginx is DDOS protected according to http_user_agent
https://www.itsvse.com/thread-3413-1-1.html

nginx sets up proxy caching
https://www.itsvse.com/thread-3381-1-1.html

Implementation: The nginx dynamic addition module has been installed
https://www.itsvse.com/thread-3380-1-1.html

nginx: [error] open() /nginx.pid failed (2: No such file or directory)
https://www.itsvse.com/thread-3379-1-1.html

Nginx reverse proxy Google
https://www.itsvse.com/thread-3378-1-1.html

nginx cross-domain resource sharing CORS to add response headers
https://www.itsvse.com/thread-3377-1-1.html

Centos installation nginx-1.10.2 tutorial
https://www.itsvse.com/thread-3267-1-1.html

nginx 1.10.2 ./configure: error: invalid option --with-http_spdy_module
https://www.itsvse.com/thread-3265-1-1.html

nginx blocks spider crawler access
https://www.itsvse.com/thread-3208-1-1.html

nginx prevents CC attacks against the original user's IP
https://www.itsvse.com/thread-2947-1-1.html

nginx obtains real access IP logs from 360 Website Guard CDN
https://www.itsvse.com/thread-2945-1-1.html

Is it better to install wordpress under linux with apache or nginx?
https://www.itsvse.com/thread-2534-1-1.html

Nginx domain name access judgment
https://www.itsvse.com/thread-2448-1-1.html

Define the php.ini parameters of PHP-FPM in Nginx's CONF
https://www.itsvse.com/thread-2152-1-1.html

Nginx self-startup failed
https://www.itsvse.com/thread-2028-1-1.html

nginx server restart command, close
https://www.itsvse.com/thread-1748-1-1.html
 Landlord| Posted on 11/1/2021 3:50:51 PM |
Create an nginx soft link

 Landlord| Posted on 11/18/2021 10:45:39 PM |
centos 8 install using yum, directory/usr/lib/systemd/system/nginx.serviceProfile:



 Landlord| Posted on 11/28/2021 5:57:55 PM |
nginx.conf configuration worker_processes is recommended to be set to auto:

 Landlord| Posted on 2/28/2022 9:21:00 PM |
The default request body in Nginx is 1M, edit the nginx.conf configuration file, and add the following configuration to http{}:

 Landlord| Posted on 5/7/2022 3:06:12 PM |
Practical use of Nginx reverse proxy for Windows Remote Desktop
https://www.itsvse.com/thread-10163-1-1.html
 Landlord| Posted on 5/7/2022 3:06:39 PM |
nginx.conf can be configured as follows:



 Landlord| Posted on 5/7/2022 3:16:02 PM |
default.conf default site configuration:

Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com