部署.net core到CentOS系统

安装虚拟机

VMware Workstation Pro

安装Linux(CentOS)系统

安装时启动网络

安装桌面程序

1. 开放端口命令:/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT

2.保存:/etc/rc.d/init.d/iptablessave

3.重启服务:/etc/init.d/iptablesrestart

4.查看端口是否开放:/sbin/iptables-L -n

查看进程:ps -ef | grep supervisord

干掉进程:kill id

安装Nginx

开启命令:/usr/local/Nginx/sbin/Nginx -c/usr/local/Nginx/conf/Nginx.conf

安装守护进程(Supervisor)

安装参考网址:https://www.cnblogs.com/sss-justdDoIt/p/5631513.html

指定配置文件地址启动命令:supervisord -c /etc/supervisord.conf

启动某个网站命令:supervisorctl stop TestCoreLinux

停止某个网站命令:supervisorctl start TestCoreLinux

[program:TestCoreLinux]

command=dotnet TestCoreLinux.dll

directory=/usr/workspace/TestCore/

autorestart=true

autostart=true

stderr_logfile=/var/log/TestCoreLinux.err.log

stdout_logfile=/var/log/TestCoreLinux.out.log

environment=ASPNETCORE_ENVIRONMENT=Production

user=root

stopsignal=INT

startsecs=1

安装DOTNET环境

参考网址:https://www.microsoft.com/net/learn/get-started/linuxcentos

安装mssql2017数据库

参考网址:http://blog.csdn.net/cmzsteven/article/details/78161516?locationNum=10&fps=1

相关文章

本文将从上往下,循序渐进的介绍一系列相关.NET的概念,先从...
基于 .NET 的一个全新的、好用的 PHP SDK + Runtime: Pe...
.NET 异步工作原理介绍。
引子 .NET 6 开始初步引入 PGO。PGO 即 Profile Guided Opti...
前言 2021/4/8 .NET 6 Preview 3 发布,这个版本的改进大多来...
前言 开头防杠:.NET 的基础库、语言、运行时团队从来都是相...