1、centos 7.0及以上服务器2、.NET SDK 安装2.1 安装https://www.microsoft.com/net/download/linux-package-manager/centos/sdk-current Add the dotnet product feedBefore installing .NET, youll need to ...

1、centos 7.0及以上服务器
2、.NET SDK 安装
2.1 安装
https://www.microsoft.com/net/download/linux-package-manager/centos/sdk-current
Add the dotnet product feed
Before installing .NET, you'll need to register the Microsoft key, register the product repository, and install required dependencies. This only needs to be done once per machine.
Open a command prompt and run the following commands:
sudo rpm -Uvh https://packages.microsoft.com/config/rhel/7/packages-microsoft-prod.rpm
Install the .NET SDK
Update the products available for installation, then install the .NET SDK.
In your command prompt, run the following commands:
sudo yum update sudo yum install dotnet-sdk-2.1
2.2 测试
dotnet --version
2.1.402
本文标题为:centos7部署.net core2.1


基础教程推荐
- C#中 Json 序列化去掉null值的方法 2022-11-18
- C# 解析XML和反序列化的示例 2023-04-14
- C#中的Linq to JSON操作详解 2023-06-08
- Unity 如何获取鼠标停留位置下的物体 2023-04-10
- Unity shader实现高斯模糊效果 2023-01-16
- C#获取指定目录下某种格式文件集并备份到指定文件夹 2023-05-30
- c# – USING块在网站与Windows窗体中的行为不同 2023-09-20
- 实例详解C#实现http不同方法的请求 2022-12-26
- C#调用摄像头实现拍照功能的示例代码 2023-03-09
- C#通过标签软件Bartender的ZPL命令打印条码 2023-05-16