OSError: [Errno 98] Address already in use

 

 

 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 ...

 

posted @ 2019-03-08 22:01  王琳杰  阅读(1650)  评论(0编辑  收藏  举报