1.官网下载
Nginx官网
直接双击运行或者 终端 ./nginx.exe
5. 解压得到文件文件夹nginx-1.20.1 进入该文件夹执行命令./configure
6. 继续执行命令make
7. 执行命令make install
8. 执行命令 whereis nginx 找到nginx 安装位置
9. 进入该文件夹 得到如下目录 , 进入sbin 文件夹 执行./nginx 启动成功, 默认80端口
访问localhost 启动成功如下图
./nginx启动./nginx -s stop停止./nginx -s quit安全退出./nginx -s reload重新加载配置文件ps aux|grep nginx查看nginx进程
11.修改代理服务