08 2013 档案

摘要:1、下载安装sudoapt-getinstallbuild-essentialwgethttp://redis.googlecode.com/files/redis-2.2.13.tar.gztar -zxf redis-2.2.13.tar.gzcd redis-2.2.13makesudo make install这时Redis 的可执行文件被放到了/usr/local/bin2、下载配置文件和init启动脚本:wgethttps://github.com/ijonas/dotfiles/raw/master/etc/init.d/redis-serverwgethttps://githu 阅读全文
posted @ 2013-08-28 10:44 smallcoderhujin 阅读(223) 评论(0) 推荐(0)
摘要:sudo apt-get install mysql-serversudo apt-get install redis-serversudo apt-get install python-redissudo apt-get install python-setuptoolssudo apt-get install python-mysqldb 阅读全文
posted @ 2013-08-27 10:59 smallcoderhujin 阅读(220) 评论(0) 推荐(0)
摘要:sudo apt-get install curl git-corebash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) curl -L https://get.rvm.io | bash -s stable --ruby安装完成后, 配置启动环境,修改~/.bashrc 文件,加入[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/ 阅读全文
posted @ 2013-08-26 11:09 smallcoderhujin 阅读(1110) 评论(0) 推荐(0)
摘要:一、简介py2exe是一个将python脚本转换成windows上的可独立执行的可执行程序(*.exe)的工具,这样,你就可以不用装python而在windows系统上运行这个可执行程序。py2exe已经被用于创建wxPython,Tkinter,Pmw,PyGTK,pygame,win32com client和server,和其它的独立程序。py2exe是发布在开源许可证下的。二、安装py2exe从http://prdownloads.sourceforge.net/py2exe下载并运行与你所安装的Python对应的py2exe版本的 installer,这将安装py2exe和相应的例子; 阅读全文
posted @ 2013-08-22 13:59 smallcoderhujin 阅读(366) 评论(0) 推荐(0)
摘要:python的第三方模块越来越丰富,涉及的领域也非常广,如科学计算、图片处理、web应用、GUI开发等。当然也可以将自己写的模块进行打包或发布。一简单的方法是将你的类包直接copy到python的lib目录,但此方式不便于管理与维护,存在多个python版本时会非常混乱。现介绍如何编写setup.py来对一个简单的python模块进行打包。一、编写模块进入项目目录#cd /home/pysetup#vi Test.py# *__coding: UTF-8__*import socketimport uuiddef getinfo(): myip=socket.gethostbyname(... 阅读全文
posted @ 2013-08-22 13:42 smallcoderhujin 阅读(1649) 评论(0) 推荐(0)