initial-import: 2026-04-11 21:18:55
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#!/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}")
|
||||
Reference in New Issue
Block a user