摘要: sudo apt-get upgrade: 不会对系统产生重大的影响,可以在任何时候运行。 sudo apt-get dist-upgrade: 涉及核心的升级,通常会对系统功能产生实际的影响,可能在需要的情况下卸载一些已经安装的软件也可能安装一些额外的软件,通常应该谨慎操作,特别是有未完成的工作, 阅读全文
posted @ 2017-08-29 22:11 Go_Forward 阅读(1712) 评论(0) 推荐(0)
摘要: 前言:gevent是python的一个并发框架,以微线程greenlet为核心,使用了epoll事件监听机制以及诸多其他优化而变得高效.而且其中有个monkey类, 将现有基于Python线程直接转化为greenlet(类似于打patch).他和线程框架性能比高大概4倍(看下图,是gevent和pa 阅读全文
posted @ 2017-08-29 15:52 Go_Forward 阅读(10727) 评论(0) 推荐(0)
摘要: 3 实际应用 1 zeromq和gevent: zeromq的介绍请参看:http://www.infoq.com/cn/news/2010/09/introduction-zero-mq 假设你已经安装了zeromq,gevent_zeromq(https://github.com/travisc 阅读全文
posted @ 2017-08-29 15:52 Go_Forward 阅读(2210) 评论(0) 推荐(0)
摘要: from: https://stackoverflow.com/questions/19370436/get-errno-from-python-requests-connectionerror 当使用: try: request.get(url=url) except RequestExcepti 阅读全文
posted @ 2017-08-29 09:28 Go_Forward 阅读(911) 评论(0) 推荐(0)
摘要: from: https://superuser.com/questions/720851/connection-refused-vs-no-route-to-host/720860 "Connection refused" means that the target machine actively 阅读全文
posted @ 2017-08-29 09:25 Go_Forward 阅读(614) 评论(0) 推荐(0)