我怀疑某个程序正在侦听8000我机器上的端口。
当我运行以下命令时,出现此错误:
> python -m SimpleHTTPServer
# Lots of python error
socket.error: [Errno 98] Address already in use
Run Code Online (Sandbox Code Playgroud)
如果我使用另一个端口(8000是默认端口),则 Web 服务器运行良好。
如果我从命令行运行wget localhost:8000,它会返回404 Not Found.
我可以做什么(或有哪些工具可用)来查找正在侦听端口的程序8000,以及该程序的配置位置?