当前位置: 首页 > Linux

八、在LinuxCentOS上安装.NetCore3.1

时间:2023-04-07 00:04:11 Linux

1.添加密钥将Microsoft包签名密钥添加到可信密钥列表中,并添加Microsoft包存储库。打开终端并运行以下命令:sudorpm-Uvhhttps://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm1,安装.NetCore3.1SDKsudoyuminstalldotnet-sdk-3.12、安装.NetCore3.1RunTimesudoyuminstallaspnetcore-runtime-3.13,查看是否安装成功运行命令:dotnet--list-runtimes