摘要: 今天安装MySQLdb的时候提示这个错误,在此记录一下。error: command 'gcc' failed with exit status 1 的解决办法 yum install gcc libffi-devel python-devel openssl-devel 阅读全文
posted @ 2015-05-20 16:55 Monitor1989 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 1.安装步骤:解压源文件:1 tar zvxf httpd-2.2.21.tar.gz 2 cd httpd-2.2.213 ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite 4 make5 make insta... 阅读全文
posted @ 2015-05-15 16:37 Monitor1989 阅读(310) 评论(0) 推荐(0) 编辑
摘要: wsgi方式1.安装apache1.解压httpd并进行安装 # tar zxvf httpd-2.2.15.tar.gz# cd httpd-2.2.15#./configure --prefix=/opt/oracle/apache --enable-rewrite--enable-so(大约... 阅读全文
posted @ 2015-05-15 14:56 Monitor1989 阅读(1118) 评论(0) 推荐(0) 编辑
摘要: 初始化一个Git仓库,使用git init命令。添加文件到Git仓库,分两步:第一步,使用命令git add filename,注意,可反复多次使用,添加多个文件;第二步,使用命令git commit -m "message",完成。要随时掌握工作区的状态,使用git status命令。如果git ... 阅读全文
posted @ 2015-05-01 09:31 Monitor1989 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 安装python2.7wget https://www.Python.org/ftp/Python/2.7.8/Python-2.7.8.tgztar xvf Python-2.7.8.tgzcd Python-2.7.8./configure –prefix=/usr/local/python27... 阅读全文
posted @ 2015-04-28 13:37 Monitor1989 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 1.Redhat 系统按如下系统启动:加载内核执行init程序/etc/rc.d/rc.sysinit #由init执行的第一个脚本/etc/rc.d/rc${RUNLEVEL}d/* #$RUNLEVEL为缺省的运行模式/etc/rc.d/rc.local #相应级别服务启动之后、在执行该文件(其... 阅读全文
posted @ 2015-01-05 14:57 Monitor1989 阅读(155) 评论(0) 推荐(0) 编辑
摘要: sort [-fbMnrtuk] [file or stdin]选项与参数:-f :忽略大小写的差异,例如 A 与 a 视为编码相同;-b :忽略最前面的空格符部分;-M :以月份的名字来排序,例如 JAN, DEC 等等的排序方法;-n :使用『纯数字』进行排序(默认是以文字型态来排序的)... 阅读全文
posted @ 2014-12-31 10:58 Monitor1989 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 1.解决不能中文显示xshell 终端语言显示选择UTF-8#yum groupinstall chinese-support2.heredocument报错“unexpected end of file”使用了cat <<- _EOF_来忽略tab,但是在vimrc中已经设置了set expand... 阅读全文
posted @ 2014-10-22 22:00 Monitor1989 阅读(202) 评论(0) 推荐(0) 编辑
摘要: Python2 name Python3 nameurllib.urlopen() urllib.request.urlopen()urllib2.urlopen() urllib.request.urlopen()urllib.urlretrieve() urllib.request.urlret... 阅读全文
posted @ 2014-10-15 16:34 Monitor1989 阅读(592) 评论(0) 推荐(2) 编辑
摘要: 1.字符串的join与split方法>>>name = ['my','name','is','monitor']>>>' '.join(name)'my name is bob'>>>'_'.join(name)'my_name_is_monitor'>>> name = 'my..name..is... 阅读全文
posted @ 2014-10-15 13:48 Monitor1989 阅读(1345) 评论(0) 推荐(0) 编辑