Files
website/stop-news-service.sh
2025-12-02 20:11:38 +08:00

24 lines
887 B
Bash
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# 停止新闻爬虫服务
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo " 🛑 停止 OmniVerse 新闻爬虫服务"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
if ! command -v pm2 &> /dev/null; then
echo "❌ PM2 未安装,无法停止服务"
exit 1
fi
pm2 stop omniverse-news 2>/dev/null && echo "✅ 服务已停止" || echo "ℹ️ 服务未运行"
pm2 status
echo ""
echo "💡 提示:"
echo " • 使用 'pm2 start omniverse-news' 重新启动"
echo " • 使用 'pm2 delete omniverse-news' 完全删除服务"
echo " • 使用 './start-news-service.sh' 重新配置并启动"
echo ""