下载地址
https://www.microsoft.com/net/download/dotnet-core/2.1
安装符合服务器CPU架构的二进制包。
如果架构不对,会出现一下错误:
-bash: /usr/bin/dotnet: cannot execute binary file
下载(比如:SDK 2.1.300)
安装
mkdir -p /usr/share/dotnet && tar zxf dotnet-sdk-2.1.300-linux-x64.tar.gz -C /usr/share/dotnet
配置
ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
验证
异常处理
FailFast: Couldn't find a valid ICU package installed on the system.
yum install icu -y
所有评论(0)