如何选择网站开发,中山市企业网站seo哪里好,wordpress轻量博客主题,旅游网站ppt应做的内容文章目录一、nginx 操作流程1. nginx 安装启动2. nginx 配置3. nginx 重新启动二、前端项目编译2.1. 前端编译打包2.2. 静态复制迁移三、后端项目启动2.1. 我启动了6个服务2.2. 测试验证一、nginx 操作流程
1. nginx 安装启动
nginx#xff08;windows环境安装#xff09; … 文章目录一、nginx 操作流程1. nginx 安装启动2. nginx 配置3. nginx 重新启动二、前端项目编译2.1. 前端编译打包2.2. 静态复制迁移三、后端项目启动2.1. 我启动了6个服务2.2. 测试验证一、nginx 操作流程
1. nginx 安装启动
nginxwindows环境安装
2. nginx 配置
worker_processes 1;events {worker_connections 1024;
}http {include mime.types;default_type application/octet-stream;sendfile on;keepalive_timeout 65;server {listen 80;server_name localhost;location / {#root /home/ruoyi/projects/ruoyi-ui;root C:/Users/gblfy/Desktop/wfw/data/windows/dist;try_files $uri $uri/ /index.html;index index.html index.htm;}location /stage-api/{proxy_set_header Host $http_host;proxy_set_header X-Real-IP $remote_addr;proxy_set_header REMOTE-HOST $remote_addr;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_pass http://localhost:8080/;}error_page 500 502 503 504 /50x.html;location /50x.html {root html;}}
}
3. nginx 重新启动
选中nginx服务鼠标右击结束任务
二、前端项目编译
2.1. 前端编译打包
cd RuoYi-Cloud\ruoyi-ui
npm run build:stage2.2. 静态复制迁移
把编译后的dist文件夹复制到刚才nginx配置的路径
三、后端项目启动
只启动核心模块即可
2.1. 我启动了6个服务 2.2. 测试验证
http://localhost