在nginx.conf文件中添加: location ~ .*\.(js|css|jpg|png)$ { proxy_pass http://127.0.0.1:8089; } 注:8089是项目的端口号.