Anolis系统安装nginx
一、下载安装包
登录https://nginx.org/en/download.html查看最新稳定版本,下载最新稳定版本
wget https://nginx.org/download/nginx-1.26.0.tar.gz
二、解压安装包并编译
#解压
tar -zvxf nginx-1.26.0.tar.gz
#进入文件夹
cd nginx-1.26.0
#配置并编译
./configure --with-http_ssl_module --with-http_gzip_static_module
make
make install
在配置时可能会遇到pcre的问题
./configure: error: the HTTP rewrite module requires the P