CentOS7部署NET Core应用程序
1 将发布好的.net core 程序ftp上传到/home/netcore 目录 , 执行下面的命令 dotnet WebMVC.dll 2.测试程序是否运行正常 curl http://localhost:5000 3.配置nginx /etc/nginx/nginx.conf user nginx; worker_processes auto; error_log /var/log/nginx/error.log; pid /run/nginx.pid; # Load dynamic modules. See /usr/share/nginx/README.dynamic. include /usr/share/nginx/modules/*.conf; events { worker_connections 1024; } http { log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; sendfile on