找回密码
 立即注册

QQ登录

只需一步,快速开始

QQximen
初级会员   /  发表于:2023-10-17 19:41  /   查看:1614  /  回复:0
本帖最后由 QQximen 于 2023-10-17 20:30 编辑

etc/system-release:CentOS Stream release 9
dotnet path: /bin/dotnet.
Current installed .NetCore version is:Microsoft.AspNetCore.App 7.0.10 [/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.10 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]
Forguncy server support Ubuntu 16.04, Ubuntu 18.04, Ubuntu 22.04, Centos 7, RHEL 7, UnionTech OS Server 20, Ubuntu Kylin 20.04, Kylin Linux . If you want to install to other OS ,please contact our technical support .
If you receive an error message similar to Unable to locate package aspnetcore-runtime-6.0e[31m, see the APT troubleshooting section.https://docs.microsoft.com/en-us ... apt-troubleshooting



2.支持的Linux系统支持以下几个Linux系统:
  • Ubuntu 16.04
  • Ubuntu 18.04
  • CentOS 7(1804)
  • RedHat 7.6
  • 中标麒麟




安装方法:https://learn.microsoft.com/en-u ... orted-distributions
                      https://learn.microsoft.com/zh-c ... orted-distributions



CentOS Stream 9 ✔️.NET is included in the AppStream repositories for CentOS Stream 9.
Install the SDK
The .NET SDK allows you to develop apps with .NET. If you install the .NET SDK, you don't need to install the corresponding runtime. To install the .NET SDK, run the following command:
Bash               
sudo dnf install dotnet-sdk-7.0Install the runtime
The ASP.NET Core Runtime allows you to run apps that were made with .NET that didn't provide the runtime. The following command installs the ASP.NET Core Runtime, which is the most compatible runtime for .NET. In your terminal, run the following command:
Bash               
sudo dnf install aspnetcore-runtime-7.0As an alternative to the ASP.NET Core Runtime, you can install the .NET Runtime, which doesn't include ASP.NET Core support: replace aspnetcore-runtime-7.0 in the previous command with dotnet-runtime-7.0:
Bash               
sudo dnf install dotnet-runtime-7.0

/etc/centos-release:CentOS Stream release 9
/etc/os-release:NAME="CentOS Stream"
/etc/os-releaseRETTY_NAME="CentOS Stream 9"
/etc/os-release:REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"
/etc/redhat-release:CentOS Stream release 9
/etc/system-release:CentOS Stream release 9
/etc/centos-release:CentOS Stream release 9
/etc/os-release:NAME="CentOS Stream"
/etc/os-releaseRETTY_NAME="CentOS Stream 9"
/etc/os-release:REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"
/etc/redhat-release:CentOS Stream release 9
/etc/system-release:CentOS Stream release 9
dotnet path: /bin/dotnet.
Current installed .NetCore version is:Microsoft.AspNetCore.App 6.0.21 [/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.10 [/usr/lib64/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.21 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.10 [/usr/lib64/dotnet/shared/Microsoft.NETCore.App]
Forguncy server support Ubuntu 16.04, Ubuntu 18.04, Ubuntu 22.04, Centos 7, RHEL 7, UnionTech OS Server 20, Ubuntu Kylin 20.04, Kylin Linux . If you want to install to other OS ,please contact our technical support .
If you receive an error message similar to Unable to locate package aspnetcore-runtime-6.0e[31m, see the APT troubleshooting section.https://docs.microsoft.com/en-us ... apt-troubleshooting




删除命令
sudo dnf remove 'dotnet*' 'aspnet*' 'netstandard*'

0 个回复

您需要登录后才可以回帖 登录 | 立即注册
返回顶部