执行mitmweb -s ./get_data.py报错OSError: [WinError 10048]
来源:12-3 mitmproxy和python结合
慕粉1504263447
2021-02-20
C:\Users\klsml\Desktop\常用文件\ImoocInterface\Study>mitmweb -s ./get_data.py
Traceback (most recent call last):
File “d:\python\lib\runpy.py”, line 193, in _run_module_as_main
"main", mod_spec)
File “d:\python\lib\runpy.py”, line 85, in run_code
exec(code, run_globals)
File "D:\Python\Scripts\mitmweb.exe_main.py", line 7, in
File “d:\python\lib\site-packages\mitmproxy\tools_main.py”, line 173, in mitmweb
run(web.master.WebMaster, cmdline.mitmweb, args)
File “d:\python\lib\site-packages\mitmproxy\tools_main.py”, line 132, in run
master.run()
File “d:\python\lib\site-packages\mitmproxy\tools\web\master.py”, line 108, in run
http_server.listen(self.options.web_port, self.options.web_host)
File “d:\python\lib\site-packages\tornado\tcpserver.py”, line 151, in listen
sockets = bind_sockets(port, address=address)
File “d:\python\lib\site-packages\tornado\netutil.py”, line 161, in bind_sockets
sock.bind(sockaddr)
OSError: [WinError 10048] 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。
1回答
-
Mushishi
2021-02-22
说明 8080端口被占用,你可以在启动的时候指定一下端口 -p就ok
00
相似问题