2.1微服务-nginx
微服务1.0 nginx
1、创建基础.net core webapi项目,powershell启动三个站点5001 5002 5003
命令 dotnet run --urls="http://*:5001" --ip 127.0.0.1 --port=5001

2、打开nginx 文件夹conf/nginx.conf 文件编辑,指定转向三个站点

3、打开
nginx
命令 启动 start nginx
重启 nginx -s reload

三、postman 测试成功


浙公网安备 33010602011771号