安装虚拟机
VMware Workstation Pro
安装Linux(CentOS)系统
安装时启动网络
安装桌面程序
@L_301_0@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
参考网址:http://blog.csdn.net/cmzsteven/article/details/78161516?locationNum=10&fps=1
原文链接:https://www.f2er.com/netcore/375082.html