CentOS安装部署Nginx
1、安装相关依赖
yum -y install gcc gcc-c++ zlib zlib-devel openssl openssl-devel pcre-devel
2、下载nginx
3、解压nginx
tar -zxvf nginx-1.18.0.tar.gz
4、编译安装
#进行环境配置configure
./configure --user=nginx --group=nginx --prefix=/usr/local/nginx --with-http_ssl_module --with-stream --with-stream_realip_module
#make编译安装
make && make install