exclude排除文件– rsync详解

August 31st, 2010 by admin No comments »

问题:如何避开同步指定的文件夹?  –exclude

参考这篇:

» Read more: exclude排除文件– rsync详解

nginx 每天定时切割Nginx日志的脚本

August 30th, 2010 by admin No comments »

每天定时切割Nginx日志的脚本

1、创建脚本/usr/local/nginx/sbin/cut_nginx_log.sh,输入以下内容:

» Read more: nginx 每天定时切割Nginx日志的脚本

yum升级rsync 3 0

August 27th, 2010 by admin No comments »

安裝 for CenOS 5 i386 版的 rpmforge-release package

» Read more: yum升级rsync 3 0

CentOS 5.x 系统下使用yum 升级php到5.2.x 最方便方法

August 27th, 2010 by admin No comments »

先将以下地址导入。

# rpm –import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

# vi /etc/yum.repos.d/CentOS-Base.repo 增加下面信息

» Read more: CentOS 5.x 系统下使用yum 升级php到5.2.x 最方便方法

nginx ajax 上传文件问题

August 19th, 2010 by admin No comments »

proxy_hide_header Content-Type;

本行注销掉,否则,firefox和chrome ajax上传会出错误。

» Read more: nginx ajax 上传文件问题

PHP 数组排序(sort)

August 18th, 2010 by admin No comments »

数字索引数组排序:
函数:sort(array, [sort type])
说明:sort()函数按升序对指定数组(第一个参数)进行排序。
sort函数第二参数作用为指定排序类型,是可选参数,可能的值为:
SORT_REGULAR: 默认值,不改变类型进行排序;
SORT_NUMERIC: 把值作为数字进行排序;
SORT_STRING: 把值作为字符串进行排序;
如数组中有4和”37″,按数字排序,4小于”37″;按字符串排序,4大于”37″; » Read more: PHP 数组排序(sort)

[转]Nginx 0.8.x + PHP 5.2.13(FastCGI)搭建胜过Apache十倍的Web服务器(第6版)

August 10th, 2010 by admin No comments »

前言:本文是我撰写的关于搭建“Nginx + PHP(FastCGI)”Web服务器的第6篇文章。本系列文章作为国内最早详细介绍 Nginx + PHP 安装、配置、使用的资料之一,为推动 Nginx 在国内的发展产生了积极的作用。本文可能不断更新小版本,请记住原文链接“http://blog.s135.com/nginx_php_v6/”,获取最新内容。第6篇文章主要介绍了Nginx 0.8.x新的平滑重启方式,将PHP升级到了5.2.14,修正了PEAR问题。另将MySQL 5.1.x升级到了5.5.x系列,配置文件变更较大。

Transfer-Encoding:chunked与nginx 0.6.34[转]

August 10th, 2010 by admin No comments »

自从Labs主站换Nginx方式做分布以后,一直有一个困扰着我们的问题,就是页面无法访问和找不到的时候,显示的前后多了一些数字。因为之前一直没有时间去调查这个问题,所以就这么放着,最近终于找到机会研究了一把。

» Read more: Transfer-Encoding:chunked与nginx 0.6.34[转]

MX Lookup

August 10th, 2010 by admin No comments »

This test will list MX records for a domain in priority order. The MX lookup is done directly against the domain’s authoritative name server, so changes to MX Records should show up instantly. You can click Diagnostics , which will connect to the mail server, verify reverse DNS records, perform a simple Open Relay check and measure response time performance. You may also check each MX record (IP Address) against 147 DNS based blacklists . (Commonly called RBLs, DNSBLs)

» Read more: MX Lookup

The SPF Setup Wizard

August 10th, 2010 by admin No comments »

Most domains send outbound mail through a relatively small number of servers. Domains should describe that set of servers in an SPF record in their DNS. Internet email receivers can then reject forged messages which don’t come from an envelope sender domain’s approved servers. This wizard helps domain owners identify all the servers which could be expected to send mail from their domain.

» Read more: The SPF Setup Wizard