nginx部署前端

在server里面 配置对应的前端路径

location / { 
root /usr/local/nginx/html/dist;
index index.html inden.htm;
}

  


重新加载配置文件

cd /usr/local/nginx/sbin
./nginx -s reload

  

posted @ 2020-05-11 22:38  崛起吧少年  阅读(142)  评论(0编辑  收藏  举报