在Linux安装ASP.Net Core的运行时(Runtime)

在部署的时候,如果您不想在您的Linux服务器上安装.Net Core SDK,您可以只安装Runtime,接下来我们看看该如何安装运行时Runtime。

下载运行时文件

下载页面:https://www.microsoft.com/net/download/linux

先获取一下对应的下载链接,可以使用浏览器点击链接来获取具体文件的下载链接

 

获取完链接以后,就可以使用命令下获取和安装了

以Centos 7,Ubuntu 16.04为例安装ASP.Net Core 2.0.5的运行时:

wget -O dotnet-runtime.tar.gz https://download.microsoft.com/download/1/1/0/11046135-4207-40D3-A795-13ECEA741B32/dotnet-runtime-2.0.5-linux-x64.tar.gz
wget -O aspnetcore-store.tar.gz https://download.microsoft.com/download/1/1/0/11046135-4207-40D3-A795-13ECEA741B32/aspnetcore-store-2.0.5-linux-x64.tar.gz
mkdir dotnet
tar zxf dotnet-runtime.tar.gz -C dotnet
tar zxf aspnetcore-store.tar.gz -C dotnet
还需要安装 libunwind

Centos 7

yum update -y && yum install libunwind libicu -y

Ubuntu 16.04

apt-get update -y && apt-get install libunwind-dev -y

原文地址:https://www.zkea.net/codesnippet/detail/post-85

转载于:https://www.cnblogs.com/seriawei/p/8438126.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值