1.安装 .net Core

参考官方网站

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

2.发布应用程序服务

.net Core 安装在linux上

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

.net Core 安装在linux上

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

   2.文件位置不要随便放

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

.net Core 安装在linux上

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

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

.net Core 安装在linux上

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

 

相关文章:

  • 2021-08-06
  • 2022-12-23
  • 2021-06-14
  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-19
  • 2021-06-23
  • 2021-06-17
  • 2021-08-25
  • 2022-02-28
相关资源
相似解决方案