nginx 部署
Last updated on November 22, 2024 pm
🧙 Questions
☄️ Ideas
Note:
一定要切换到nginx启动的用户
使用yum安装的nginx的默认目录/usr/share/nginx/html
# 上传前端zip包
scp 74.zip root@isxcode:~/
# 切换nginx启动用户
su
# 解压zip
unzip 74.zip
# 备份
cd /usr/local/nginx/html/ispong-admin/
mv app ./app_0.18_bak
# 复制文件夹
cp -r /tmp/dist ./app
# 重载nginx
/sbin/nginx -s reload
🔗 Links
nginx 部署
https://ispong.isxcode.com/vue/nginx/nginx 部署/