Rocky系统安装.net core
sudo dnf update -y
sudo dnf install aspnetcore-runtime-8.0`
验证dotnet core runtime是否安装成功
dotnet –info
在RHEL 和 CentOS Stream安装.net core
sudo rpm -Uvh https://packages.microsoft.com/config/centos/8/packages-microsoft-prod.rpm
sudo dnf install aspnetcore-runtime-8.0
验证dotnet core runtime是否安装成功
dotnet –info
Ubuntu安装.NET Core
wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
sudo apt-get update; \
sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y aspnetcore-runtime-8.0
验证.NET Core运行时是否安装成功
dotnet –info
银河麒麟系统安装.net core 银河麒麟系统安装.net core
sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
sudo yum install aspnetcore-runtime-8.0
验证dotnet core runtime是否安装成功
dotnet –info
CPU 为 ARM64 架构
如果 ARM 架构的 CPU,我们需要进入Download .NET 8.0 (opens new window)页面,获取ASP.NET Core Runtime的下载地址 (opens new window),并通过 wget 命令下载。
下载后,我们运行以下命令安装.NET Core 运行时:
mkdir -p $HOME/dotnet && tar zxf aspnetcore-runtime-8.0.2-linux-arm64.tar.gz -C $HOME/dotnet
export DOTNET_ROOT=$HOME/dotnet
export PATH=$PATH:$HOME/dotnet
汤姆呼叫杰瑞
@汤姆 啥?