阿里云服务器:Linux - centos 8 软件:.netcore 2.2
通过ssh工具远程到服务器
1.注册Microsoft密钥
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc sudo sh -c 'echo -e "[packages-microsoft-com-prod]\nname=packages-microsoft-com-prod \nbaseurl=https://packages.microsoft.com/yumrepos/microsoft-rhel7.3-prod\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/dotnetdev.repo'2.安装 netcore环境及依赖项
sudo yum update sudo yum install libunwind libicu sudo yum install dotnet-sdk-2.2会列出所需要安装的组件,输入 y 确认 安装好后是这样的 如果安装后出现以下错误 A fatal error occurred, the folder [/usr/lib64/dotnet/host/fxr] does not contain any version-numbered child folders
请安装以下环境 .netcore3.1
yum install -y aspnetcore-runtime-3.1.x86_64 dotnet --info dotnet (要运行的.dll)1.centos+netcore 2msdn如何在centos上安装.netcore