## Centos7部署.NetCore3.1 ##
1、注册微软签名密码密钥及微软相关支持
*向微软提交,表明要用core*
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
2、安装指定版本
*安装SDK版本*
sudo yum install netcore-sdk-3.1
3、将项目发布并拷贝至centos中
1、选定项目,右键发布
2、拷贝至centos文件夹中
3、执行命令"dotnet xxx.dll"
如项目带输入参数,在dll后输入即可
"dotnet xxx.dll --name xx --env xx"
由于个人项目中设计的HttpRequest,执行时报如下异常
*原因:Consul地址不对,应指向consul地址*
Unhandled exception.System .Net.Http,HttpRequestException: Connection refused
---> System.Net.Sockets.SocketException (111): Connect ion refused
at System.Net .Http . ComnectHe lper . CommectAsync (String host, Int32 port,Cance1lationToken cancella
tionToken)--- End of inner exception stack trace
at Syst
Centos7部署.NetCore3.1
最新推荐文章于 2024-07-20 15:21:56 发布
