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进程,过几秒后可以看到应用又自动重启了

最新文章

  1. js 正则表达式 转至(七郎's Blog)
  2. [VM workstation]VM workstation 中的虚拟机连不上网络
  3. html 网页文本设计
  4. IOS- DocumentInteraction Controllerl的使用
  5. Hive2 jdbc test
  6. 【云计算】Dockerfile示例模板
  7. 【技术宅4】如何把M个苹果平均分给N个小朋友
  8. Linux C 语言 获取系统时间信息
  9. PHP PDO 安装使用
  10. Android 开发笔记 “Android 的消息队列模型”
  11. QQ connect client request's parameters are invalid, invalid openid 问题的解决
  12. QTL定位相关
  13. git pull request 流程
  14. 剑指offer(18)二叉搜索树的后续遍历
  15. 为什么fork()2次会避免产生僵尸进程
  16. 十五、springcloud(一)注册中心Eureka
  17. iOS - 常用本机URL跳转设置
  18. 【struts2】action中使用通配符
  19. ECNU 3247 - 铁路修复计划
  20. Python安装Windows的pip包

热门文章

  1. 开源WPF控件库MaterialDesignInXAML推荐
  2. IEnumerable和IEnumerator详解
  3. Linux01机和Linux02机的切换 和秘钥的配置
  4. 几种常见设计模式在项目中的应用<Singleton、Factory、Strategy>
  5. UVA439 骑士的移动 Knight Moves
  6. css隐藏页面元素的多种方法
  7. MySQL主从扩展知识
  8. Nginx 配置整理
  9. String类中常用的方法
  10. 新一代数据安全的制胜法宝-UBA