base vue3-h5-template
ui base vant
sudo yum install nginx
项目打包后放在
/var/www/res-sharing/dist
编辑 Nginx 配置文件(通常位于 /etc/nginx/nginx.conf中):
sudo vim /etc/nginx/nginx.conf
在配置文件中添加或修改以下内容
server { listen 80; server_name your-domain.com;
location / {
root /var/www/resource-sharing/dist;
try_files $uri $uri/ /index.html;
}
}
sudo systemctl restart nginx