centos7安装.NET8
# 1. 添加.NET 8的官方仓库
sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
# 2. 安装.NET 8 SDK
sudo yum install -y dotnet-sdk-8.0
# 或者,如果你只需要运行时
sudo yum install -y dotnet-runtime-8.0
# 1. 添加.NET 8的官方仓库
sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
# 2. 安装.NET 8 SDK
sudo yum install -y dotnet-sdk-8.0
# 或者,如果你只需要运行时
sudo yum install -y dotnet-runtime-8.0