flask 故障处理集合

 

#Address already in use 

 #处理办法

➜ ~ lsof -i tcp:5000
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
Python 27014 telking 3u IPv4 0x94120630c1e32415 0t0 TCP localhost:commplex-main (LISTEN)
~ kill 27014

 

#AttributeError: 'function' object has no attribute 'name'

 sudo bash -c "echo '127.0.0.1 localhost' >> /etc/hosts"

#处理办法

 

posted @ 2022-04-19 23:33  Chiffon1996  阅读(43)  评论(0)    收藏  举报