Linux安装Nginx

1、官方下载nginx压缩包 官网下载Nginx压缩包 http://nginx.org/en/download.html 或者wget https://nginx.org/download/nginx-1.25.5.tar.gz 2、安装nginx