Build nginx service on Linux environment

Nginx installation
Upload nginx-1.1.15.tar.gz and pcre-8.12.tar.gz to the server and extract
tar -zxvf pcre-8.12.tar.gz
cd pcre-8.12
execute ./configure --prefix= /home/pntclub /apps/pcre-8.20
Execute make
and execute make install
to check whether the installation is successful ls –l /home/pntclub/apps/pcre-8.20/lib/libpcre.so
tar –zxvf nginx-1.1.15.tar.gz
cd nginx-1.1 .15
Execute ./configure --prefix=/home/pntclub/apps/nginx/proxy --with-pcre=/home/pntclub/apps/pcre-8.20 --with-http_stub_status_module
It is best to create a new directory proxy as the installation directory
Execute make
Execute make install
cd proxy/bin Start ./nginx Close ./nginx –s stop
Cd proxy/conf
Nginx.conf is the parameter file configuration, the configuration can refer to this file After the
configuration is complete, start nginx
to access the address after the nginx proxy, deploy Finish

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326427032&siteId=291194637