2014年4月28日
摘要: #! /bin/sh# chkconfig: 2345 55 25# Description: Startup script for uwsgi webserver on Debian. Place in /etc/init.d and# run 'update-rc.d -f uwsgi defa... 阅读全文
posted @ 2014-04-28 17:44 jeffsun 阅读(783) 评论(0) 推荐(0) 编辑
摘要: [uwsgi]socket = 127.0.0.1:3032chdir = /data/www/yida/pythonpath = ..env = DJANGO_SETTINGS_MODULE=yida.settingsmodule = django.core.handlers.wsgi:WSGIH... 阅读全文
posted @ 2014-04-28 17:40 jeffsun 阅读(915) 评论(0) 推荐(0) 编辑
摘要: 1. yum installopenssl2. yum installopenssl-devel3.vim Setup.dist 修改ssl4. 重新编译python make && make install 阅读全文
posted @ 2014-04-28 15:07 jeffsun 阅读(2546) 评论(0) 推荐(0) 编辑
摘要: 1. wgethttp://python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2--no-check-certificate2.tar-jxvfPython-2.7.2.tar.bz23. cdPython-2.7.24. ./configrue 5. m... 阅读全文
posted @ 2014-04-28 14:30 jeffsun 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 1、wget http://effbot.org/downloads/Imaging-1.1.7.tar.gz2、tar xzvf Imaging-1.1.7.tar.gz3、cd Imaging-1.1.74、python ./setup.py make5、python ./setup.py in... 阅读全文
posted @ 2014-04-28 09:25 jeffsun 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 1、wget http://peak.telecommunity.com/dist/ez_setup.py2、chmod +x ez_setup.py3、python ez_setup.py或者yuminstallpython-setuptools 阅读全文
posted @ 2014-04-28 09:24 jeffsun 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 1、 端口开放 /sbin/iptables -I INPUT -p tcp –dport 80 -j ACCEPT2、 保存配置 /etc/rc.d/init.d/iptables save3、 重启防火墙 /etc/init.d/iptables restart 阅读全文
posted @ 2014-04-28 09:23 jeffsun 阅读(387) 评论(0) 推荐(0) 编辑
摘要: 1、建用户目录 mkdir /var/www/ftpuser2、建用户 useradd -s /sbin/nologin -d /var/www/ftpuser ftpuser3、设置用户密码 passwd ftpuser4、修改目前所有权 chown -R ftpuser:ftpuser /var... 阅读全文
posted @ 2014-04-28 09:23 jeffsun 阅读(2844) 评论(0) 推荐(0) 编辑
摘要: 1、 yum install postgresql-libs2、 yum install postgresql92-devel.i3863、 wget http://initd.org/psycopg/tarballs/PSYCOPG-2-5/psycopg2-2.5.1.tar.gz4、 tar ... 阅读全文
posted @ 2014-04-28 09:20 jeffsun 阅读(2027) 评论(0) 推荐(0) 编辑
摘要: rpm -ivh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm 阅读全文
posted @ 2014-04-28 09:20 jeffsun 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 1、下载最新稳定版uwsgi,地址为:wget http://projects.unbit.it/downloads/uwsgi-1.9.13.tar.gz2、解压 tar zxvf uwsgi-1.9.13.tar.gz3、cd uwsgi-1.9.13 && make4、移动uwsgi到bin目... 阅读全文
posted @ 2014-04-28 09:18 jeffsun 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 1、安装vsftp yum install vsftpd2、配置vsftp 配置文件在 /etc/vsftpd/vsftpd.conf,建议把匿名登录关闭 anonymous_enable=NO3、设置vsftp为开机启动 chkconfig vsftpd on 通过chkconfig –list可... 阅读全文
posted @ 2014-04-28 09:17 jeffsun 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1、确定你要下载的版本:下载地址2、进入你存放下载文件的目录运行wget http://yum.postgresql.org/9.2/redhat/rhel-5-i386/pgdg-centos92-9.2-6.noarch.rpm,我的是32bit的centos5,其他版本可以在上面的路径中找到相... 阅读全文
posted @ 2014-04-28 09:16 jeffsun 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 1、安装基本库yum install gccyum install makeyum install zlib-develyum install bzip2-develyum install openssl-develyum install ncurses-devel2、获得python2.7.4wg... 阅读全文
posted @ 2014-04-28 09:16 jeffsun 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 在ubuntn下通过agp-get install nginx就可以按照最新版本的nginx,很方便在ctentos和redhat下需要添加yum 仓库才能安装最新版的nginx,在/etc/yum.repos.d/目录下新建nginx.repo 文件输入以下内容就可以了:[nginx]name=n... 阅读全文
posted @ 2014-04-28 09:15 jeffsun 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 先下载postgresql的python包,选择合适自己的python版本和平台32位还是64位,http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml下载win环境下postgresql接口,http://www.stickpeople.com/projec... 阅读全文
posted @ 2014-04-28 09:14 jeffsun 阅读(418) 评论(0) 推荐(0) 编辑