0
点赞
收藏
分享

微信扫一扫

nginx/ubuntu/https/域名绑定 - dotnet 6 部署服务

准备条件

linux服务器(已安装Nginx),api程序

发布程序

vs 发布程序(文件夹)到某个文件夹,然后拷贝到Linux服务上(记住拷贝到的地址)。

配置nginx

nginx/ubuntu/https/域名绑定 - dotnet 6 部署服务_linux服务器


这里添加了域名和https。

启动服务

找到自己拷贝了服务代码的文件夹,执行命令:
dotnet MyBlog.API.dll urls=http://:5000
如果只是这样的话,关闭连接对话,服务就会被关闭,所以从网上找了一个简单的添加进程守护的方式,执行命令:
nohup dotnet MyBlog.API.dll urls=http://
:5000 &

添加进程守护

参考网址:
​​​https://www.bilibili.com/video/BV1pS4y1o7ou?spm_id_from=333.337.search-card.all.click&vd_source=d6e5994f52ee45ea5e1742f058761392​​

nginx/ubuntu/https/域名绑定 - dotnet 6 部署服务_linux服务器_02

查看结果

nginx/ubuntu/https/域名绑定 - dotnet 6 部署服务_linux服务器_03

举报

相关推荐

0 条评论