zoukankan      html  css  js  c++  java
  • Centos+Nginx+NetCore3.1

    Centos+Nginx+NetCore3.1部署

     1 先将vs2019升级到,16.4.0版本

    2.新建一.netcore3.1的web程序

     3.编译后将项目上传到centos服务器

    4.配置nginx文件

    修改完后重新加载ngxin.   service nginx restart

    5.安装守护进程确保程序异常中断后能正常重启

    在 etc/systemd/system下新建  netcore.service,内容如下

    保存文件后执行

    systemctl enable netcore.service

    systemctl start netcore.service

    查看状态:systemctl status netcore.service

    此时如果kill掉netcore进程,过几秒后可以看到应用又自动重启了

  • 相关阅读:
    JS
    JS
    JS
    VUE
    element-ui 进入页面 message 自动触发的问题
    JS-数组中常用的方法
    CSS-transition简单过渡动画
    vue
    JS
    2021要买的书籍
  • 原文地址:https://www.cnblogs.com/pingyang/p/netcore31.html
Copyright © 2011-2022 走看看