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端口了,外部也能访问了。