1. 安装 .net core到centos7nginx
2. 安装nginx vim
配置代理: vim /opt/nginx/conf/nginx.confcentos
server { listen 80; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; location / { proxy_pass http://127.0.0.1:5000; proxy_set_header Connection ""; proxy_http_version 1.1; } }
启动nginx: /opt/nginx/sbin/nginx并发
中止nginx: /opt/nginx/sbin/nginx -s stopcentos7
重启nginx:/opt/nginx/sbin/nginx -s reload.net
3. 用VS2015新建 .net core WEB项目。并发布。代理
4. COPY发布的文件到centos7server
5. dotnet TEST.WEB.dllblog
6. 打开链接 localhsot:5000io