Difference between revisions of "Flask"

From Wiki2
Line 1: Line 1:
==flask==
==flask==
{{:adress already in use}}
{{:address already in use}}
http://flask.pocoo.org/docs/0.10/api/#module-flask.json
http://flask.pocoo.org/docs/0.10/api/#module-flask.json


==flask socketio==
==flask socketio==
https://flask-socketio.readthedocs.org/en/latest/
https://flask-socketio.readthedocs.org/en/latest/

Revision as of 09:41, 22 May 2015

flask

finding port of address already in use

  $ sudo netstat -nlp | grep 80
  tcp  0  0  0.0.0.0:80  0.0.0.0:*  LISTEN  125004/nginx

or

 # sudo lsof -i :25
 COMMAND  PID        USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
 exim4   2799 Debian-exim    3u  IPv4   6645      0t0  TCP localhost:smtp (LISTEN)
 exim4   2799 Debian-exim    4u  IPv6   6646      0t0  TCP localhost:smtp (LISTEN)

http://flask.pocoo.org/docs/0.10/api/#module-flask.json

flask socketio

https://flask-socketio.readthedocs.org/en/latest/