cd /etc/nginx/conf.d/sudo vim meiduo_mis.conf
1 server { 2 server_name www.meiduo.site; 3 listen 8080; 4 location / { 5 root /home/python/Desktop/meiduo_mall_admin/dist; 6 index index.html; 7 } 8 9 10 }
sudo nginx -t
sudo nginx -s reload
原文:https://www.cnblogs.com/chao666/p/12340769.html