#!/bin/sh set -e cd /app # 测试 Nginx 配置是否正确 nginx -t # 启动 Nginx(后台运行) nginx # 启动 PM2(前台运行) exec pm2-runtime start ecosystem.config.js