牛栏山

一个讨厌CSDN的家伙

导航

源码安装nginx可能需要的依赖

apt install gcc;
apt install make;
apt install libpcre3 libpcre3-dev;
apt install zlib1g-dev;
apt install openssl libssl-dev;

  

yum install pcre-devel
yum install gcc
yum -y install openssl openssl-devel
yum install zlib-devel

  

./configure --prefix=/home/local/nginx --conf-path=/home/local/nginx/nginx.conf --with-http_ssl_module --with-http_realip_module --with-http_dav_module --with-http_gzip_static_module --with-http_v2_module
make && make install
./home/local/nginx

  

  

posted on 2022-06-12 14:48  牛栏山  阅读(139)  评论(0编辑  收藏  举报