步驟:
第一步:
1.下載壓縮包,2安裝配置
第二步:
2準備工作:啟用ROOT賬號,重置密碼
解壓目錄:/home/bizuser/soft/dotnet/dotnet8
1.下載
直接🔗
https://download.visualstudio.microsoft.com/download/pr/14951030-5b4e-45ce-af0b-3d4aa613a70b/25acaeb050bbba6950a55960c5d3ad73/dotnet-sdk-8.0.400-linux-x64.tar.gz
校驗和 (SHA512)
8a4c637746177c4da6ceec63e23a1f499d61d050aa72bc599841550557ff7b1a15a034044c3987b230fdca4e5113de12b1676f5a2366e9946bd94aec1e51a42b
2.安裝
原版命令(進貢參考):
檔案解壓:
mkdir -p $HOME/dotnet && tar zxf dotnet-sdk-8.0.400-linux-x64.tar.gz -C $HOME/dotnet
環境配置:
cd /etc
vi prifole
export DOTNET_ROOT=$HOME/dotnet export PATH=$PATH:$HOME/dotnet
export PATH=$PATH:$HOME/dotnet
source profile
當前命令:
檔案解壓:
mkdir -p /home/bizuser/soft/dotnet/dotnet8 && tar zxf dotnet-sdk-8.0.400-linux-x64.tar.gz -C /home/bizuser/soft/dotnet/dotnet8
環境配置:
cd /etc
vi prifole
export DOTNET_ROOT=“/home/bizuser/soft/dotnet/dotnet8”
#export DOENET_ROOT=$HOME/dotnet
export PATH=$PATH:$DOTNET_ROOT
source profile
配置生效:
cd /etc
source profile
注意:環境變數配置需要ROOT許可權。
3.驗證
4.至此,安裝結束
官方參考:https://dotnet.microsoft.com/zh-cn/download/dotnet/thank-you/sdk-8.0.400-linux-x64-binaries