• Linux Ubuntu上手动安装.NET Core SDK


    今天重装了一台Linux服务器的Ubuntu 14.04系统,需要重新安装.NET Core 1.0。

    按照官网上的文档用apt-get命令进行安装:

    sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
    sudo apt-key adv --keyserver apt-mo.trafficmanager.net --recv-keys 417A0893
    sudo apt-get update
    sudo apt-get install dotnet-dev-1.0.0-preview2-003121

    安装后运行dotnet -v命令却提示找不到命令:

    dotnet: command not found

    whereis dotnet一看,只在 /usr/share/dotnet/sdk/1.0.0-preview2-003121 中有文件,/usr/share/dotnet 中竟然连dotnet可执行文件都没有。

    后来在dotnet cli的github主页上找到了.NET Core SDK Binary压缩包的下载地址,于是自己手工进行安装。

    先创建并进入dotnet文件夹:

    mkdir /usr/share/dotnet && cd $_

    然后下载并解压.NET Core SDK Binary安装包:

    curl -sSl https://dotnetcli.blob.core.windows.net/dotnet/Sdk/rel-1.0.0/dotnet-dev-ubuntu-x64.latest.tar.gz | tar zxfv -

    最后创建一个软链接就可以了:

    ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet 
  • 相关阅读:
    nodejs cookie与session
    nodejs body-parser 解析post数据
    js四舍五入
    escape()、encodeURI()、encodeURIComponent()区别详解
    nodejs 搭建简易服务器
    ejs常用语法
    window.location
    response.writeHead
    response.write
    git 常用指令
  • 原文地址:https://www.cnblogs.com/dudu/p/5727155.html
Copyright © 2020-2023  润新知