利用Nginx部署Vue项目到腾讯云的Centos
先运行查看是否安装,如若没有请先安装
nginx -v
一般安装了的路径是/usr/local/nginx
cd进入后,将前端npm run build 后在dist文件下的static跟index.html复制到服务器当前文件路径下的html文件夹里
修改conf文件夹下的nginx.conf
#user nobody;
worker_processes 1;
#err...
原创
2020-04-22 15:43:08 ·
624 阅读 ·
0 评论