1、安装 dotnet core 运行时
cd /www/netcore/
yum install dnf
sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm //安装密钥
sudo dnf install dotnet-runtime-3.1 //安装运行时
dotnet ITGB.Apprentice.WebApi.dll --urls "http://*:5000" //启动netcore项目
image-20210804160125270.png
网友评论