欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

.Net Core linux (Centos 7.0) 环境 线上安装

程序员文章站 2024-01-21 19:44:58
...

.Net Core 项目部署

在线安装

sudo rpm -Uvh http://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm

sudo yum -y update
sudo yum -y install dotnet-sdk-3.1
sudo yum -y install dotnet-sdk-2.2
dotnet --version

手动安装


https://dotnet.microsoft.com/download/dotnet-core/3.1

mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-3.1.201-linux-x64.tar.gz -C $HOME/dotnet
export DOTNET_ROOT=$HOME/dotnet
export PATH=$PATH:$HOME/dotnet

echo ~/.bashrc
/root/.bashrc

输入命令:yum install lttng-ust libcurl openssl-libs krb5-libs libicu zlib -y

相关标签: .NetCore c#