lighttpd fastcgi配置例子和一些备份脚本
来源:互联网 发布:苦瓜知乎 编辑:程序博客网 时间:2024/05/22 01:38
global{
server.modules +=("mod_fastcgi")
}
$SERVER["socket"]=="222.73.42.76:81"{
#$HTTP["host"]=="db.huiin.com"{
server.name="huiin.com"
server.document-root="/var/www/phpmyadmin"
fastcgi.server=(
".php"=>
((
"bin-path"=>"/usr/bin/php-cgi -c /etc/php5/cgi/php.ini",
"socket"=>"tmp/php.socket",
"max-procs"=>1,
"idle-timeout"=>20,
"bin-environment"=>(
"PHP_FCGI_CHILDREN"=>"1",
"PHP_FCGI_MAX_REQUESTS"=>"10"
),
"bin-copy-environment"=>("PATH","SHELL","USER"),
"broken-scriptfilename"=>"enable"
))
)
}
$HTTP["host"]=~"(^|/.)xxxx/.com/.cn"{
#server.name="xxxxxx"
server.document-root="/home/sjpotowww/web"
fastcgi.server=(
"/poto.fcgi" =>
("main"=>(
#"host" =>"127.0.0.1",
#"port" =>3040,
"socket"=>"/tmp/poto.sock",
"check-local" =>"disable",
"bin-path"=>"/home/sjpotowww/web/poto.fcgi",
#"max-procs"=>10,
#"min=procs"=>2,
#"max-children"=>100,
))
)
#alias.url+=("/media/" => "/usr/lib/python2.5/site-packages/django/contrib/admin/media")
url.rewrite-once=(
#"^(/media.*)$"=>"$1/media/",
"^(/.*)$"=>"/poto.fcgi$1",
)
server.error-handler-404="/poto.fcgi"
}
-----------------------------
手动备份网站和数据库例子
BAK_DIR=/home/bak/
DATE=`date +%Y%m%d-%H%M%S`
SQL_FILE=$DATE-SQLDATA.tgz
WEB_FILE=$DATE-WEBDATA.tgz
tar -zcvf $BAK_DIR$WEB_FILE /home/xxx
#tar -zcvf $BAK_DIR$SQL_FILE /home/xxxx
echo "...web备份名称:/home/bak/"$WEB_FILE
echo "...mysql备份名称:/home/bak/"$SQL_FILE
mysqldump -uxxxx -pxxxxxx --default-character-set=utf8 --opt --extended-insert=false --triggers -R --hex-blob -x sjpoto >$BAK_DIR$DATE-SQLDATA-SQL.sql
- lighttpd fastcgi配置例子和一些备份脚本
- Lighttpd 配置fastcgi
- Lighttpd fastcgi相关配置
- lighttpd fastcgi
- 安装配置Linux+lighttpd+mysql+PHP(FastCGI)
- RedHat 上安装 lighttpd 并配置 fastcgi + django 的记录
- 安装配置Linux+lighttpd+mysql+PHP(FastCGI)
- FreeBSD + Lighttpd + Django + FastCGI
- lighttpd + fastcgi + ssl (openssl)
- Lighttpd PHP fastcgi configuration
- libjson + lighttpd + fastcgi 编译
- lighttpd+fastcgi EventSource测试
- 说说lighttpd的fastcgi
- FastCGI+lighttpd开发之介绍和环境搭建
- lighttpd编译完成后的一些配置
- 优化lighttpd的 FastCGI 性能
- lighttpd通过fastcgi调用gsoap
- lighttpd 配置全接触(2)——fastcgi php配置
- 一段debian 下面Iptables脚本控制ip访问的例子。
- 我的java之路
- zoj3204 Connect them
- VB6支持96个1的二进制与十进制的互相转换程序
- 增大肌肉块的14大秘诀
- lighttpd fastcgi配置例子和一些备份脚本
- Windows Phone 7 Series 开发问答
- .Net compact framework 界面自适应输入法
- arm linux 下中断流程简要分析
- ABAP:执行本机的外部程序
- 4.35中图4-201库存/需求清单中有的为空
- asp文件操作 存下
- Android的源代码结构
- python myql类库MySQLdb在数据过量情况下巨慢无比的原因分析