【发布时间】:2013-10-04 23:25:19
【问题描述】:
我正在尝试从 mac 终端使用 python 设置服务器。
我导航到文件夹位置并使用:
python -m SimpleHTTPServer
但这给了我错误:
socket.error: [Errno 48] Address already in use
我之前使用相同的命令打开了一个连接 用于我机器中不同位置的不同网站。
【问题讨论】:
-
杀死另一个进程或使用不同的端口运行这个进程:
python -m SimpleHTTPServer 8081
标签: python macos simplehttpserver