码迷,mamicode.com
首页 >  
搜索关键字:no module named yum yum更新    ( 35899个结果
centos更新python
第1步:更新gcc,因为gcc版本太老会导致新版本python包编译不成功yum -y install gcc 第2步:下载Python-3.3.0软件包第3步:解压已下载的二进制包并编译安装#tar -jxvf Python-3.3.0.tar.bz2#cd Python-3.3.0#./conf...
分类:编程语言   时间:2014-05-08 18:56:20    阅读次数:390
yum配置
我們需要用yum進行linux的更新或者軟件的安裝時,會發現速度比較慢,這時我們應該修改下mirror。vim /etc/yum.repos.d/CentOS-Base.repo (提示:有些系統中CentOS-Base.repo.save,其實是一樣的,只不過要在修改後把".save"去掉,因為只...
分类:其他好文   时间:2014-05-08 12:28:37    阅读次数:319
AttributeError: 'module' object has no attribute 'handlers'--Python子模块导入问题
想使用python的logging模块记录日志,并使用RotatingFileHandler来处理日志以便于在日志文件超过指定的大小后会重新生成新的日志文件。 基本代码如下: import logging logger = logging.getLogger('mylogger') logger.setLevel(logging.INFO) fh=logging.handlers.Ro...
分类:编程语言   时间:2014-05-08 00:25:12    阅读次数:457
POJ 1724 ROADS
点击打开链接 ROADS Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 10202   Accepted: 3786 Description N cities named with numbers 1 ... N are connected with o...
分类:其他好文   时间:2014-05-07 23:42:01    阅读次数:617
[Nginx]用Nginx实现与应用结合的访问控制 - 防盗链
应用场景:图片等资源需要设置权限,如:只有认证过的用户才能访问自己的图片。 解决办法:使用Nginx的防盗链模块http_secure_link可以实现,该模块默认情况下不包含,故在安装时要加上--with-http_secure_link_module 该模块根据两个参数控制权限访问,一个是过期时间(即该链接在这个时间之前可访问,过期后无法访问),该参数主要出于安全考虑。 另一个是通过md...
分类:其他好文   时间:2014-05-07 15:53:18    阅读次数:268
linux下DNS服务器之视图和轮询
案例4视图viwer拓扑图:1.查看帮助[root@centos~]#vim/usr/share/doc/bind-9.8.2/sample/etc/named.conf[root@host2~]#cd/var/named/chroot/etc2.[root@centosetc]#vimnamed.conf添加视图:36view"lan-view"37{38zone"."IN{39typehint;40file"named.ca";41};42zone"ab.com"{43t..
分类:系统相关   时间:2014-05-07 15:33:16    阅读次数:618
python tkinter学习
Downloading the module:sudo apt-get install python-tksimple example:#!/usr/bin/python# -*- coding: utf-8 -*-"""ZetCode Tkinter tutorialThis script sho...
分类:编程语言   时间:2014-05-07 14:46:05    阅读次数:454
操作系统_程序的链接
程序经过编译后,得到一组目标模块(Object Module),再经过链接程序将这组目标模块链接起来,形成一个完整的装入模块。如图。经过编译后得到三个目标模块A,B,C,它们的长度分别为L,M,N。其中B和C属于外部调用符号。根据链接时间的不同,程序的链接可分为三种方式:静态链接,装入时动态链接.....
分类:其他好文   时间:2014-05-07 13:57:13    阅读次数:368
LAMP架构之PHP-FPM 服务器
PHP简介安装PHP解决依赖关系# 请配置好yum源(系统安装源及epel源)后执行如下命令:yum -y groupinstall "Desktop Platform Development"yum -y install bzip2-devel libmcrypt-devel mhash-deve...
分类:Web程序   时间:2014-05-07 00:50:47    阅读次数:470
emacs run multiple eshell buffers (more then one eshell)
(defun buffer-exists (bufname) (not (eq nil (get-buffer bufname)))) (defun make-shell (name) "Create a shell buffer named NAME." (interactive "sName: ") (if (buffer-exists "*eshell*")...
分类:其他好文   时间:2014-05-06 19:40:04    阅读次数:262
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!