language
luckhouge
这个作者很懒,什么都没留下…
展开
-
ImportError: No module named _ssl
1.查看openssl安装包 [root@localhost ~]# rpm -aq|grep openssl 2.安装 yum install openssl -y yum install openssl-devel -y 3.重新编译python原创 2014-05-21 09:35:00 · 84 阅读 · 0 评论 -
nodejs 安装 及模块库
1.安装python wget http://python.org/ftp/python/2.7.2/Python-2.7.2.tgz tar -zxvf Python-2.7.2.tgz cd Python-2.7.2 ./configure --prefix=/usr/local/python27 make make install mv /usr/bin/p...原创 2014-03-07 09:31:03 · 163 阅读 · 0 评论 -
supervisor 配置与使用
1.创建配置文件: [code="java"]echo_supervisord_conf > /etc/supervisord.conf[/code] 2.修改配置文件 A.添加应用 [code="java"][program:listen] //listen应用名称 command=python /home/listen/app.py -log_file_prefix=/ho...原创 2014-03-14 15:22:21 · 236 阅读 · 0 评论 -
tornado 异步
def asynchronous(method): """Wrap request handler methods with this if they are asynchronous. This decorator is for callback-style asynchronous methods; for coroutines, use the ``@gen...原创 2015-07-13 14:29:13 · 128 阅读 · 0 评论 -
python 多进程 Threading Multiprocessing
参考[url]http://developer.51cto.com/art/201405/438178.htm[/url] 1. python多线程的局限性 2. 为何thread不能利用多核? 3. 如何利用多核? 4. 进程池[url]http://www.coder4.com/archives/3352[/url]...原创 2015-07-20 09:08:55 · 97 阅读 · 0 评论