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 阅读(172) 评论(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 阅读(819) 评论(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 阅读(941) 评论(0) 推荐(0)
摘要: 1. yum installopenssl2. yum installopenssl-devel3.vim Setup.dist 修改ssl4. 重新编译python make && make install 阅读全文
posted @ 2014-04-28 15:07 jeffsun 阅读(2626) 评论(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 阅读(216) 评论(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 阅读(169) 评论(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 阅读(155) 评论(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 阅读(2944) 评论(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 阅读(400) 评论(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 阅读(175) 评论(0) 推荐(0)