Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. >>> import beanstalkc
  2. >>> ben = beanstalkc.Connection(host='127.0.0.1', port=11300)
  3. Traceback (most recent call last):
  4. File "<stdin>", line 1, in <module>
  5. File "/Library/Python/2.7/site-packages/beanstalkc.py", line 59, in __init__
  6. self.connect()
  7. File "/Library/Python/2.7/site-packages/beanstalkc.py", line 65, in connect
  8. SocketError.wrap(self._socket.connect, (self.host, self.port))
  9. File "/Library/Python/2.7/site-packages/beanstalkc.py", line 43, in wrap
  10. raise SocketError(err)
  11. beanstalkc.SocketError: [Errno 61] Connection refused
  12.  
  13. beanstalkd -l localhost -p 11300
  14.  
  15. netstat -an | grep 11300
  16. tcp6 0 0 ::1.11300 *.* LISTEN
  17.  
  18. lsof -i:11300
  19. COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
  20. beanstalk 25420 fang 5u IPv6 0x3a0d6f5fe28b3a33 0t0 TCP localhost:11300 (LISTEN)
  21. Python 25441 fang 3u IPv4 0x3a0d6f5ff01e9343 0t0 TCP localhost:64519->localhost:11300 (CLOSED)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement