- 2025年05月12日
- 星期一
当我在 linux shell中运行我的 python服务器文件simplehttpwebsite.py,我做控制c并再次运行,我得到socket.error:[Errno 98]地址已经在使用. 当我执行ctrl c时,如何确保套接字关闭? simplehttpwebsite.py #!/usr/bin/env pythonimport SimpleHTTPServerimpor
我正在编写socket.io-client node.js机器人应用程序,以测试也在节点下运行的基于socket.io的服务器应用程序的性能.通常,服务器运行ubuntu linux,但我在本地开发机上也安装并配置了相同的服务器应用程序(node.js,nginx,socket.io).如果启动bot-“ script”脚本