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

View: 15653|Reply: 0

[Web] Centos installation nginx-1.10.2 tutorial

[Copy link]
Posted on 10/24/2016 9:57:56 AM | | | |


Install nginx-1.10.2 tutorial

--Install gcc
yum install gcc
--install prce (redirect support) and openssl (https support, if https is not needed, you can not install it. )
yum -y install pcre*
yum -y install openssl*
--Create Directory
mkdir -p /service/nginx-1.10.2
--install nginx
--1: Download
wget http://nginx.org/download/nginx-1.10.2.tar.gz
--2: Decompression
tar -zxvf nginx-1.10.2.tar.gz
--3: Enter
cd nginx-1.10.2
--4: Installation
./configure --prefix=/service/nginx-1.10.2 \
--with-http_ssl_module --with-http_v2_module \
--with-http_stub_status_module --with-pcre

--5: Compilation
make
--6: Installation
make install

All shell scripts



--Go to the folder
/service/nginx-1.10.2/sbin
--test profile
./nginx -t
--start command
./nginx

--Set environment variables and modify the file /etc/profile
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL
export PATH="$PATH:/service/nginx-1.10.2/sbin"

--Reload or restart
source /etc/profile








Previous:nginx 1.10.2 ./configure: error: invalid option --with-http_spdy_module
Next:WEB API TEST plugin
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