Linux 部署 NetCore6.0 API

来自一搜便知
跳到导航 跳到搜索

安装环境

sudo rpm -Uvh https://packages.microsoft.com/config/centos/8/packages-microsoft-prod.rpm
sudo yum install aspnetcore-runtime-6.0
sudo yum install dotnet-sdk-6.0 //如果只是发布的话,这个可以不安装

运行api项目

dotnet api.dll

本文参考:https://blog.csdn.net/yexuanbaby/article/details/123983146