1,下载Nginx
https://nginx.org/en/download.html
2,安装依赖
# yum -y install pcre-devel openssl-devel
3,编译安装Nginx
# tar -zxvf nginx-1.26.1.tar.gz
# cd nginx-1.26.1
# ./configure –prefix=/usr/local/nginx –with-http_ssl_module
# make
# make install
4,启动Nginx
# /usr/local/nginx/sbin/nginx &