usr/local/software
tar -zxvf nginx-1.14.0.tar.gz -C ../
cd /usr/local/nginx-1.14.0
檢查nginx所須要的安裝環境 ./configure
html
yum -y install gcc-c++
./configure
yum install -y pcre pcre-devel
yum install -y gcc-c++
yum install -y zlib zlib-devel
yum install -y pcre pcre-devel
yum install -y openssl openssl-devel
./configure
make && make install
vim /etc/profile
export NGINX_HOME=/usr/local/nginx
export PATH=$NGINX_HOME/sbin:$PATH
source /etc/profile
nginx
ps aux | grep nginx
nginx -t
nginx -s reopen
nginx -s reload
nginx -s stop
nginx -s quit
nginx