Netcore API和Vue前后端项目 发布到Centos 步骤 Centos 安装 SqlSever 2017 Centos 安装 mysql Centos 安装.NET CORE 3.1 Centos 安装nodejs Centos 安装pm2 Vue 项目上线到 Centos 系统

1、Centos 安装 SqlSever 2017

2、Centos 安装 mysql

3、Centos 安装.NET CORE 3.1

4、Centos 安装nginx

5、Centos 安装nodejs

6、Centos 安装pm2

7、Vue 项目上线到 Centos 系统

8、NetCore API项目发布到Centos

1)上传 发布文件到 Nginx 网站文件目录

2)配置 Nginx 的 配置文件

进入目录 /etc/nginx 修改配置文件nginx.conf

扫描二维码关注公众号,回复: 11274974 查看本文章
server {
        listen 80;
        server_name 49.233.12.12;
        location / {
            proxy_set_header   Host      $http_host;
            proxy_pass         http://127.0.0.1:8081;
            proxy_redirect     off;
            proxy_set_header   X-Real-IP       $remote_addr;
            proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
        }
    }

重启 Nginx

service nginx restart

这样就OK了

猜你喜欢

转载自www.cnblogs.com/shuaichao/p/12969321.html