龙空技术网

.Net 7最稳定的服务器Debian

opendotnet 6103

前言:

今天你们对“稳定的centos”大概比较看重,小伙伴们都需要学习一些“稳定的centos”的相关文章。那么小编在网络上网罗了一些有关“稳定的centos””的相关资讯,希望咱们能喜欢,我们一起来了解一下吧!

前言:

如果你用.Net技术有服务端需求,比如web,DBA,集群等。那么Debian OS绝对是一个最佳的选择。


概括:

作为用过了

windows server,MXLinux,Centos,ArchLinux作为服务端之后,就停留在了Debian上面,被这个系统的stable版稳如老狗的表现,真的惊艳到了。

从.Net 6预览版到正式版,到.Net 7预览版到.Net 7正式版一次次的升级,一次次的把玩和调教,居然他没蹦过一次。中间还把Debian10升级成了Debian11。到目前为止已经运行了近三年的时间。


唯一的缺点就是Debian安装略显麻烦,可能需要手动:

DOTNET_FILE=dotnet-sdk-7.0.100-linux-x64.tar.gz

export DOTNET_ROOT=$(pwd)/.dotnet

mkdir -p "$DOTNET_ROOT" && tar zxf "$DOTNET_FILE" -C "$DOTNET_ROOT"

export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools


如果有TLS/SSL 证书错误

Processing post-creation actions...

Running 'dotnet restore' on /home/myhome/test/test.csproj...

Restoring packages for /home/myhome/test/test.csproj...

/snap/dotnet-sdk/27/sdk/2.2.103/NuGet.targets(114,5): error : Unable to load the service index for source . [/home/myhome/test/test.csproj]

/snap/dotnet-sdk/27/sdk/2.2.103/NuGet.targets(114,5): error : The SSL connection could not be established, see inner exception. [/home/myhome/test/test.csproj]

/snap/dotnet-sdk/27/sdk/2.2.103/NuGet.targets(114,5): error : The remote certificate is invalid according to the validation procedure. [/home/myhome/test/test.csproj]

BASH复制全屏

export SSL_CERT_FILE=[path-to-certificate-file]

export SSL_CERT_DIR=/dev/

结尾:

作者:江湖评谈

标签: #稳定的centos