.net Core 安装在linux上

it2022-05-05  73

1.安装 .net Core

参考官方网站

https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install

2.发布应用程序服务

3.将包放到 Linux上面并解压:文件夹自己定义 如 : /var/www/WetTest

注意:1.linux系统上的 .net Core 版本要高于发布的web版本

   2.文件位置不要随便放

4.到相应的目录下面:启动网站

 5.配置外网可以访问 添加以下代码:

因为此时 .Net Core 监听的是:Now listening on: http://localhost:5000

这样就能监听到本机以外的5000端口了,外部也能访问了。

 

转载于:https://www.cnblogs.com/leolzi/p/11157119.html

相关资源:各显卡算力对照表!

最新回复(0)