This is the seventh day of my participation in the First Challenge 2022. For details: First Challenge 2022.


  • 🤟 blogger introduction: CSDN, Toutiao, Zhihu and other platforms quality bloggers, the whole network fans 2W +
  • 💬 If the article is helpful to you, welcome to follow, like, bookmark (click three links) and subscribe

Nginx as a famous Http server, reverse proxy server, in daily work and study, we can not avoid contact with it, this article through personal practice, a complete and detailed explanation of Nginx installation process, hoping to help students in need.

1. Download the nginx package

Address: nginx.org/en/download…


2. Upload the file to the server

Use rz command to upload files to the server


Install nginx dependencies

Check whether gcc-C ++, pcre-devel, zlib-devel, and openSSL-devel exist on the Linux server

I. Inspection methods are as follows:

1, if use RPM to install, use RPM to qa to check, for example, RPM qa | grep GCC – c + + (software name)

2, if is to use yum to install, use the yum list installed to check, for example: yum list installed | grep pcre – devel (software name)

3, if deb is used to install, use the DBKG -l to check, for example: DBKG – l | grep pcre – devel (software name)

If you do not have all dependencies installed, you can use the following statement to install all dependencies:

yum -y install gcc pcre-devel zlib-devel openssl openssl-devel

If some dependencies are already installed, you can use the following statement to install the required dependencies:

1, yum install gcc-C ++

2, yum install pcre-devel

3、 yum install zlib-devel

4, yum install openssl openssl-devel


4. Decompress the package

Command: tat-xvf Name of the compressed package

Configure the installation address, and compile and install the software

1, configuration, installation address:. / configure — prefix = / usr/local/blog/nginxconf

2. Compile: make

3, Install: make install


5. Check and start Nginx

/nginx -t./nginx -t

Start nginx:./nginx

3, Access nginx in a browser (remember to allow port 80 in the firewall) :

(Optional) run vim /etc/rc.d/rc.local and add the sbin directory of nginx to the file


Write in the last

If you find the article helpful, please like, bookmark and follow the blogger. The following bloggers will bring more quality and quality articles.

To learn more and learn more about open source projects, please click below to add a blogger and enter the technical circle (all resources in the circle are free, but you are required to have a long-term interest in joining, if it is just an impulse, it is not recommended to join, after all, the quota is limited).

Join the technical circle, in addition to free guidance for building problems, but also the first time to receive the latest industry consultation and know the professional leaders!