码迷,mamicode.com
首页 > Web开发 > 详细

centos7部署.net core2.1

时间:2018-09-30 20:11:10      阅读:247      评论:0      收藏:0      [点我收藏+]

标签:key   sudo   centos   one   .com   command   otn   pos   upd   

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

标签:key   sudo   centos   one   .com   command   otn   pos   upd   

原文地址:https://www.cnblogs.com/zwei1121/p/9732951.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!