一、安裝Nginx所需的pcre-devel庫nginx
yum install -y gcc gcc-c++
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.33.tar.gz
tar zxvf pcre-8.33.tar.gz
cd pcre-8.33
./configure --prefix=/usr/local/pcre
make
make installc++
二、安裝Tenginespa
yum install openssl openssl-devel
wget http://tengine.taobao.org/download/tengine-1.5.1.tar.gz
tar zxvf tengine-1.5.1.tar.gz
cd tengine-1.5.1
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-pcre=/usr/local/pcre-8.33
make
make install進程
注意:--with-pcre=/usr/local/software/pcre-8.33 指定的是源碼包解壓的路徑ssl
三、啓動get
1)啓動源碼
cd /usr/local/nginx/sbinopenssl
./nginxit
2)重啓module
cd /usr/local/nginx/sbin
./nginx -s reload
3)關閉
ps -ef | grep nginx
kill -9 進程號