centos6.5下安装nginx
程序员文章站
2023-12-31 13:58:58
...
1.安装pcre-8.36.tar.gz
2.安装zlib-1.2.8.tar.gz
3.安装openssl-1.0.2.tar.gz
4.安装nginx-1.6.2.tar.gz
tar -zxvf pcre-8.36.tar.gz cd pcre-8.36 ./configure --prefix=/usr/local/pcre make make install
2.安装zlib-1.2.8.tar.gz
tar -zxvf zlib-1.2.8.tar.gz cd zlib-1.2.8 ./configure --prefix=/usr/local/zlib make make install
3.安装openssl-1.0.2.tar.gz
tar -zxvf openssl-1.0.2.tar.gz
4.安装nginx-1.6.2.tar.gz
./configure --prefix=/usr/local/nginx --conf-path=/usr/local/nginx/nginx.conf --pid-path=/usr/local/nginx/nginx.pid --with-http_ssl_module --with-pcre=/usr/local/soft/pcre-8.36 --with-zlib=/usr/local/soft/zlib-1.2.8 --with-openssl=/usr/local/soft/openssl-1.0.2 make make install