docker .net Core 之路 Cent OS 7 安装.NET Core SDK 注意事项

Install .NET Core SDK https://www.microsoft.com/net/core#linuxcentos

Before you start, please remove any previous preview versions of .NET Core from your system.

In order to install .NET Core on CentOS or Oracle Linux, first you need to get the prerequisites and then you download the .NET Core SDK binaries, extract them onto your system and put dotnet onto your PATH for the current terminal session.

 Note, a user-controlled directory must be used when installing from tar.gz on Linux systems.

  1. sudo yum install libunwind libicu
  2. curl -sSL -o dotnet.tar.gz https://aka.ms/dotnet-sdk-2.0.0-linux-x64
  3. mkdir -p ~/dotnet && tar zxf dotnet.tar.gz -C ~/dotnet
  4. export PATH=$PATH:$HOME/dotnet
  5. 分别执行上述命令  默认安装到如下目录,可以通过第7步添加软连接,可以在全局使用
  6. ln -s ~/dotnet/dotnet /usr/local/bin
  7. 貌似.Core版本不兼容,高版本不兼容底板的原有程序,要重新安装对应的版本的

 

Linux Docker 下载资源慢DaoCloud

curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://686535b.m.daocloud.io

I.执行命令并且重启

原文地址:https://www.cnblogs.com/ccsu/p/7388332.html