平滑升级Nginx至0.8.19

十月 11th, 2009 No Comments »

1.

wget http://sysoev.ru/nginx/nginx-0.8.19.tar.gz  

2.

tar zxvf nginx-0.8.19.tar.gz

3.

cd nginx-0.8.19

4.

./configure –user=www –group=www –prefix=/usr/local/nginx/ –with-http_stub_status_module –with-http_ssl_module

5.

make

6.#平滑升级可执行程序,使用新的 nginx 可执行程序替换旧的

kill -USR2 `cat /usr/loc[......]

Read more

Top SEO Techniques Revealed!

五月 2nd, 2009 No Comments »

 

What i am about to share with you will guarantee you top rankings in any niche and guarantee you your future, all white hat.

 

I am going to share with you the methods i use,

 

All OFF PAGE SEO

 

  1. Contact site owners, give them relevant articles in exchange for links. (When you contact[......]

Read more

Nginx 502错误的几种解决方法

四月 10th, 2009 No Comments »

Nginx 502 Bad Gateway错误是FastCGI有问题,造成NGINX 502错误的可能性比较多。将网上找到的一些和502 Bad Gateway错误有关的问题和排查方法列一下,先从FastCGI配置入手:

1.FastCGI进程是否已经启动

2.FastCGI worker进程数是否不够
运行 netstat -anpo | grep “php-cgi” | wc -l 判断是否接近FastCGI进程,接近配置文件中设置的数值,表明worker进程数设置太少
参见:http://blog.s135.com/post/361.htm

3.FastCGI执行时[......]

Read more

傻瓜式搭建Nginx+PHP+Mysql服务器

三月 26th, 2009 1 Comment »

1.下载 一键安装包LNMP

wget http://licess.googlecode.com/files/LNMP.zip

2. 64位机器

yum -y install libjpeg-devel

yum -y install libpng-devel

3.

unzip LNMP.zip

cd LNMP

chmod +x install.sh down.sh

./down.sh
./install.sh

4.安装Google的TCMalloc库
     64位系统安装libunwind库

wget http://download.savanna[......]

Read more

正则表达式例子

三月 24th, 2009 No Comments »

匹配中文字符的正则表达式: [u4e00-u9fa5]
评注:匹配中文还真是个头疼的事,有了这个表达式就好办了

匹配双字节字符(包括汉字在内):[^x00-xff]
评注:可以用来计算字符串的长度(一个双字节字符长度计2,ASCII字符计1)

匹配空白行的正则表达式:ns*r
评注:可以用来删除空白行

匹配HTML标记的正则表达式:]*.*?|
评注:网上流传的版本太糟糕,上面这个也仅仅能匹配部分,对于复杂的嵌套标记依旧无能为力

匹配首尾空白字符的正则表达式:^s*|s*$
评注:可以用来删除行首行尾的空白字符(包括空格、制表符、换页符等等),非常有用的表达式

匹配Email地址的[......]

Read more

无觅相关文章插件,快速提升流量