当前位置: 移动技术网 > IT编程>开发语言>.net > 在Linux安装ASP.Net Core的运行时(Runtime)

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

2018年02月10日  | 移动技术网IT编程  | 我要评论

高考榀冠网,非诚勿扰杨文君,罗刹指环

在部署的时候,如果您不想在您的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

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网