#!/usr/bin/env python3
import socket

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
try:
    result = s.bind(('0.0.0.0', 8008))
    print("✅ 端口8008空闲，可以绑定")
    s.close()
except OSError as e:
    print(f"❌ 端口8008被占用: {e}")
