2014年6月5日
摘要: 1、备份 pg_dump-h hostip -Upostgresdatabasename>C:\databasename.bak 2、恢复 psql-hhostip -Upostgres-ddatabasename<C:\databasename.bak 阅读全文
posted @ 2014-06-05 17:27 jeffsun 阅读(157) 评论(0) 推荐(0) 编辑
  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) 编辑