在CentOS7.6下,可以通过如下命令安装和配置Nginx:
yum install gcc-C++yum -y install pcre openssl gcc* yum install -y pcre-devel yum install -y zlib-devel yum install -y openssl-devel tar -zxvf nginx-1.22.0.tar.gz cd nginx-1.22.0 #默认安装./configure #指定一些特定参数的安装./configure --with-http_ssl_module --prefix="/install/program/nginx" --with-http_stub_status_module make && make install
暂无评论