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