Nginx installation steps

1, nginx depends on the pcre library, you must install pcre.

yum -y install pcre pcre-devel

2, weget obtain the installation package

yum -y install wget
wget http://nginx.org/download/nginx-1.17.2.tar.gz

3, extract the installation package

tar -zvxf nginx-1.17.2.tar.gz

4, install zlib library

yum install -y zlib
yum install -y zlib-devel

5, install Nginx

make && make install

6, the installation directory introduce
cd / ulsr / local / nginx, see the following four directories
.... conf configuration file
... html web page file
... logs log file
... sbin main binaries

Guess you like

Origin www.cnblogs.com/feiqiangsheng/p/11297748.html
Recommended