一、环境
1、win10
2、nginx-1.18.0
二、配置
1、配置nginx.conf;如代理D盘的m2目录
注:路径代理须为root
2、启动Nginx
2.1、验证配置文件的语法等正确性
nginx -tc conf/nginx.conf
or
nginx -t -c conf/nginx.conf
2.2、启动服务
nginx -c conf/nginx.conf
exit
or
后台进程方式启动
start nginx
注:路径代理须为root
2.1、验证配置文件的语法等正确性
nginx -tc conf/nginx.conf
or
nginx -t -c conf/nginx.conf
2.2、启动服务
nginx -c conf/nginx.conf
exit
or
后台进程方式启动
start nginx