首页 > 其他 > 详细

OSError: [Errno 98] Address already in use

时间:2019-03-08 22:47:06      阅读:1005      评论:0      收藏:0      [点我收藏+]

 

 

 1 root@iZbp1aivbpv57jydq4j31iZ:~/python_WLJ/love# python3 run.py
 2 Traceback (most recent call last):
 3   File "run.py", line 10, in <module>
 4     httpd = make_server(‘‘, 8080, application)
 5   File "/usr/lib/python3.6/wsgiref/simple_server.py", line 153, in make_server
 6     server = server_class((host, port), handler_class)
 7   File "/usr/lib/python3.6/socketserver.py", line 453, in __init__
 8     self.server_bind()
 9   File "/usr/lib/python3.6/wsgiref/simple_server.py", line 50, in server_bind
10     HTTPServer.server_bind(self)
11   File "/usr/lib/python3.6/http/server.py", line 136, in server_bind
12     socketserver.TCPServer.server_bind(self)
13   File "/usr/lib/python3.6/socketserver.py", line 467, in server_bind
14     self.socket.bind(self.server_address)
15 OSError: [Errno 98] Address already in use

 

root@iZbp1aivbpv57jydq4j31iZ:~/python_WLJ/love# ps -fA | grep python
root     24551 24527  0 23:38 pts/0    00:00:00 python3 run.py
root     24686 24648  0 23:58 pts/3    00:00:00 grep --color=auto python
root@iZbp1aivbpv57jydq4j31iZ:~/python_WLJ/love# kill 24551
root@iZbp1aivbpv57jydq4j31iZ:~/python_WLJ/love# ps -fA | grep python
root     24691 24648  0 23:59 pts/3    00:00:00 grep --color=auto python
root@iZbp1aivbpv57jydq4j31iZ:~/python_WLJ/love# python3 run.py
Serving HTTP on port 8080 ...

 

OSError: [Errno 98] Address already in use

原文:https://www.cnblogs.com/wanglinjie/p/9321159.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!