centos下安装nginx
生活随笔
收集整理的這篇文章主要介紹了
centos下安装nginx
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
參考資料http://www.nginx.cn/install
centos平臺編譯環(huán)境使用如下指令
安裝make:
yum?-y?install?gcc?automake?autoconf?libtool?make安裝g++:
yum?install?gcc?gcc-c++安裝pcre
下載地址:ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/?
cd?/usr/local/src wget?ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.34.tar.gz? tar?-zxvf?pcre-8.34.tar.gz cd?pcre-8.34 ./configure make make?install安裝zlib
http://zlib.net/zlib-1.2.8.tar.gz tar?-zxvf?zlib-1.2.8.tar.gz cd?zlib-1.2.8 ./configure make make?install安裝ssl
cd?/usr/local/src wget?http://www.openssl.org/source/openssl-1.0.1j.tar.gz tar?-zxvf?openssl-1.0.1c.tar.gz安裝nginx
cd?/usr/local/src wget?http://nginx.org/download/nginx-1.6.2.tar.gz tar?-zxvf?nginx-1.4.2.tar.gz cd?nginx-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.34?\ --with-zlib=/usr/local/src/zlib-1.2.8?\ --with-openssl=/usr/local/src/openssl-1.0.1c make make?install --with-pcre=/usr/src/pcre-8.34?指的是pcre-8.34?的源碼路徑 --with-zlib=/usr/src/zlib-1.2.7?指的是zlib-1.2.7?的源碼路徑轉(zhuǎn)載于:https://blog.51cto.com/leboit/1582597
總結(jié)
以上是生活随笔為你收集整理的centos下安装nginx的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 整理大型网站架构必知必会的几个服务器知识
- 下一篇: OSChina 周五乱弹 —— 一句话证