Chinaunix首页 | 论坛 | 博客
  • 博客访问: 26140721
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: LINUX

2010-01-20 11:27:12

----------reload_nginx.sh--------------
#!/bin/bash

NGDIR="/usr/local/nginx/logs"
PIDFILE="$NGDIR/nginx.pid"

if [ -f $PIDFILE ]; then
    kill -HUP `cat -- $PIDFILE`
fi

----------start_nginx.sh-------------
#!/bin/bash

NGINX="/usr/local/nginx/sbin/nginx"
exec $NGINX

----------shut_fastcgi.sh----------
#!/bin/bash

PROJDIR="/Applications/xampp/xamppfiles/htdocs/Adanmoo"
PIDFILE="$PROJDIR/django.pid"
PORT="8001"
HOST="127.0.0.1"

cd $PROJDIR

kill `cat -- $PIDFILE`
rm -f -- $PIDFILE

-----------reload_fastcgi.sh----------
#!/bin/bash

PROJDIR="/Applications/xampp/xamppfiles/htdocs/Adanmoo"
PIDFILE="$PROJDIR/django.pid"
PORT="8001"
HOST="127.0.0.1"

cd $PROJDIR

if [ -f $PIDFILE ]; then
    kill `cat -- $PIDFILE`
    rm -f -- $PIDFILE
fi

exec python manage.py runfcgi method=threaded host=$HOST port=$PORT pidfile=$PIDFILE
阅读(971) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-01-25 23:10:59

Pylons 框架学习