Pylons: an address that is already in use when trying to execute

I run the pylons and I did this: paster server development.ini It works: 5000

But when I try to run the command again: Pasteur serves development.ini

I get this message: socket.error: [Errno 98] The address is already in use

Any ideas?

+3
source share
7 answers

This usually means that it is still running, but this should only happen in daemon mode. After you run it, will you get the command line, or do you need to stop it with Ctrl-C?

If you get a command prompt back to deamon mode, and you should stop it with

paster server development.ini stop

Ctrl-C ( Ctrl-Z, ), .

+3

:

, 5000

kill -9 `fuser -n tcp 5000`
+15

, - 5000. , (?), ? , .

, , netstat ( Windows UNIX- ). ​​

+2

, . , - , . , 30-60 , , .

+1

8080 . '-p 10000' 10000

0

netstat (netstat -an | grep 5000 linux).

.

Python [Errno 98]

sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)

, Python , .

0

, . .

sudo kill $(sudo lsof -t -i:5000)

, 5000.

0

Source: https://habr.com/ru/post/1711696/


All Articles