Linux安装不同版本.netCore的shell命令

 #!/bin/sh
   echo '==========开始安装dontcore============'
   mkdir -p /home/dotcore3
   tar -vxf  /00-install/01-sdk/dotnet-sdk-3.1.402-linux-x64.tar.gz  -C /home/dotcore3
  ln -sf /home/dotcore3/dotnet /usr/bin/dotnet
 isInstall=$(command -v dotnet|wc -l)
#if [ $isInstall -eq 1 ];then
  dotnet dev-certs https
   echo '==========安装完成dontcore============'

  

 #!/bin/sh
   echo '==========开始安装dontcore============'
   mkdir -p /home/dotcore2
   tar -vxf  /00-安装文档/01-sdk/dotnet-sdk-2.2.401-linux-x64.tar.gz  -C /home/dotcore2
  ln -sf /home/dotcore2/dotnet /usr/bin/dotnet
 isInstall=$(command -v dotnet|wc -l)
#if [ $isInstall -eq 1 ];then
  dotnet dev-certs https
   echo '==========安装完成dontcore============'

  

上一篇:.NetCore引入Swagger自动生成接口说明


下一篇:.NetCore之接口缓存