• 欢迎访问显哥博客,本网站纯属学习技术,绝无商业用途,欢迎小伙伴们共同学习!研究技术!QQ:52249909 加我QQ
  • 世界75亿人,这么小的概率,能认识你,是我一生的幸运,不妨加个QQ接触一下:52249909 加我QQ

Nginx编译安装依赖软件PCRE、OpenSSL、Zlib【显哥出品,必为精品】

技术栈 lixian 4年前 (2021-02-02) 23652次浏览 1个评论 扫描二维码

编译安装pcre

https://iweb.dl.sourceforge.net/project/pcre/pcre/8.36/pcre-8.36.zip
unzip pcre-8.36.zip
cd pcre-8.36/
./configure --prefix=/usr/local/pcre --enable-utf8 --enable-unicode-properties
make && make install

编译安装openssl

wget -c https://www.openssl.org/source/openssl-1.0.2p.tar.gz
tar xf openssl-1.0.2p.tar.gz 
cd openssl-1.0.2p/
./config 
make && make install

编译安装zlib

wget http://www.zlib.net/zlib-1.2.11.tar.gz
tar xf zlib-1.2.11.tar.gz 
cd zlib-1.2.11/
./configure
make && make install

编译安装nginx

wget http://nginx.org/download/nginx-1.8.1.tar.gz
tar xf nginx-1.8.1.tar.gz -C /usr/local/
 cd /usr/local/nginx-1.8.1/
./configure --prefix=/usr/local/nginx   --with-http_ssl_module --with-pcre=/root/pcre-8.36 --with-openssl=/root/openssl-1.0.2p --with-zlib=/root/zlib-1.2.11
make && make install

#设置环境变量
vim /etc/profile
export PATH=$PATH:/usr/local/nginx/sbin
source /etc/profile
nginx -t

本站博主 , 版权所有丨如未注明 , 均为原创
转载请注明原文链接:Nginx编译安装依赖软件PCRE、OpenSSL、Zlib【显哥出品,必为精品】
喜欢 (2)

您必须 登录 才能发表评论!

(1)个小伙伴在吐槽
  1. At the beginning, I was still puzzled. Since I read your article, I have been very impressed. It has provided a lot of innovative ideas for my thesis related to gate.io. Thank u. But I still have some doubts, can you help me? Thanks.