一、Debian 11 安装配置 nginx
1.下载并解压nginx
sudo wget https://nginx.org/download/nginx-1.22.0.tar.gz -o nginx-1.22.0.tar.gz
sudo tar -zxvf nginx-1.22.0.tar.gz
2.安装依赖
sudo apt install make libtool gcc g++ zlib1g zlib1g-dev openssl libssl-dev libpcre3 libpcre3-dev -y
3.配置nginx,预备编译
cd nginx-1.22.0
./configure –prefix=/usr/local/nginx-1.22.0 –with-http_stub_status_module –with-http_ssl_module –with-pcre
4.编译安装nginx
sudo make
sudo make install
原创文章,作者:,如若转载,请注明出处:https://blog.ytso.com/268220.html