1.npm run build打包
2.xshell进入nginx配置文件中(whereis nginx -> cd /etc/nginx(文件位置不一定,一般是这个))
vim nginx.conf打开文件修改 自定义服务器端口号,IP,root,index(网址中加粗部分)
3.配置文件修改后重启sudo nginx -s reload
vue项目打包部署到NGINX
最新推荐文章于 2024-05-12 19:23:22 发布
1.npm run build打包
2.xshell进入nginx配置文件中(whereis nginx -> cd /etc/nginx(文件位置不一定,一般是这个))
vim nginx.conf打开文件修改 自定义服务器端口号,IP,root,index(网址中加粗部分)
3.配置文件修改后重启sudo nginx -s reload