一、官网下载源码http://nginx.org/en/download.html 二、上传到指定的安装目录 tar vxf nginx-1.16.1.tar.gzcd cd nginx-1.16.1
1、默认使用curl命令访问:# curl -I http://172.17.0.5 2、修改nginx.conf配置文件,在http配置段中新增如下代码:# vim /usr/local/nginx