?????????????????????nginx?????1??????????????????????????????nginx???о???te????????????????????????????????????????????????????????????????????????
??????????
????1.????????
???????????κ????????????????/usr/local/src
????cd/usr/local/src
????2.???PCRE??
????ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/?????μ?PCRE???????????????????????????PCRE????
 

cd/usr/local/src
wgetftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.33.tar.gz
tar-zxvfpcre-8.21.tar.gz
cdpcre-8.21
./configure
make
makeinstall

????3.???zlib??
????http://zlib.net/zlib-1.2.8.tar.gz?????μ?zlib???????????????????????????zlib????

cd/usr/local/src
wgethttp://zlib.net/zlib-1.2.8.tar.gz
tar-zxvfzlib-1.2.8.tar.gz
cdzlib-1.2.8
./configure
make
makeinstall

????4.???ssl???Щvps?????ssl)
????cd/usr/local/src
????wgethttp://www.openssl.org/source/openssl-1.0.1c.tar.gz
????tar-zxvfopenssl-1.0.1c.tar.gz
????5.???nginx
????Nginx??????????汾?????????????????棬????????????????????????????汾??????????????????Nginx?????/usr/local/nginx???μ???????裺

 

cd/usr/local/src
wgethttp://nginx.org/download/nginx-1.4.2.tar.gz
tar-zxvfnginx-1.4.2.tar.gz
cdnginx-1.4.2
./configure--sbin-path=/usr/local/nginx/nginx
--conf-path=/usr/local/nginx/nginx.conf
--pid-path=/usr/local/nginx/nginx.pid
--with-http_ssl_module
--with-pcre=/usr/local/src/pcre-8.21
--with-zlib=/usr/local/src/zlib-1.2.8
--with-openssl=/usr/local/src/openssl-1.0.1c
make
makeinstall
--with-pcre=/usr/src/pcre-8.21?????pcre-8.21?????·????
--with-zlib=/usr/src/zlib-1.2.7?????zlib-1.2.7?????·????