安装.net core2.1 by centos

1、下载依赖包libunwind,地址:
https://centos.pkgs.org/7/centos-x86_64/libunwind-1.2-2.el7.x86_64.rpm.html
2、libunwind安装
rpm -ivh libunwind-1.2-2.el7.x86_64.rpm
3、下载.net core sdk 安装包,地址:
https://dotnet.microsoft.com/en-us/download/dotnet/2.1
4、安装.net core
mkdir -p HOME/dotnet
5、配置环境
在/etc/profile文件末尾加上两行:
export DOTNET_ROOT=PATH:$HOME/dotnet
6、检查是否成功
dotnet --info

你可能感兴趣的:(安装.net core2.1 by centos)