windows 安装.net6core webapi

随笔8小时前发布 黑夜行走
4 0 0

windows 安装.net6core webapi:

1.下载安装dotnet-hosting-6.0.0-win.exe (Windows Hosting Bundle –runtime)
https://dotnet.microsoft.com/en-us/download/dotnet/6.0
2..netcore webapi 右键发布 publish,复制发布的文件到windows服务器iis站点 webapi
3. 启动windows powershell 3个窗口,分别启动
dotnet xxx.Api.dll –urls=http://8081
dotnet xxx.Api.dll –urls=http://
8082
dotnet xxx.Api.dll –urls=http://*8083
4.放开8081–8083端口外网访问权限
5.购买华为云弹性负载均衡ELB 配置负责均衡,将第3不配置的Ip:8081,Ip:8082,Ip:8083 添加到负责均衡
(填写购买基本信息hwy-gz-elb-calculator,
添加监听器(http,https),给每个监听器添加后端服务器Ip:8081,Ip:8082,Ip:8083
分配策略类型 加权轮询算法
配置健康检查5秒查一次)

© 版权声明

相关文章

暂无评论

您必须登录才能参与评论!
立即登录
暂无评论...