<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[神仙_乾子的上海筛沙生活]]></title> 
<link>http://www.6xuan.com/index.php</link> 
<description><![CDATA[记录乾子(tinkoko)在上海的生活点滴]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[神仙_乾子的上海筛沙生活]]></copyright>
<item>
<link>http://www.6xuan.com/read.php?399</link>
<title><![CDATA[使用nginx让你的网站全部变黑]]></title> 
<author>tinkoko &lt;admin@yourname.com&gt;</author>
<category><![CDATA[linux相关]]></category>
<pubDate>Sat, 08 May 2010 15:01:45 +0000</pubDate> 
<guid>http://www.6xuan.com/read.php?399</guid> 
<description>
<![CDATA[ 
	虽然很久不做技术了，但是还是在关注很多技术方面的资讯。<br/>一直很累，最近不仅仅是公司的还有自己的。<br/>团队很不错，创业很难很苦，但是还是坚持着。<br/>问题总是一个一个的出现，最后总是说这个问题是第一次出现也是最后一次出现，这么一直鼓励着自己和对方。<br/>NGINX让网站全部变黑<br/>================================<br/>1、重新编译Nginx，增加http_sub_module模块：<br/><br/>wget http://nginx.org/download/nginx-0.8.35.tar.gz<br/>tar zxvf nginx-0.8.35.tar.gz<br/>cd nginx-0.8.35<br/>./configure --user=www --group=www --prefix=/usr/local/webserver/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module<br/>make && make install<br/>pkill -9 nginx<br/>/usr/local/webserver/nginx/sbin/nginx<br/><br/><br/>--------------------------------------------------------------------------------<br/><br/>　　2、在nginx.conf配置文件的http &#123;...&#125;大括号内增加以下两行：<br/><br/>sub_filter&nbsp;&nbsp;'</head>'&nbsp;&nbsp;'<style type="text/css">html &#123;filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); &#125;</style></head>';<br/>sub_filter_once on;<br/><br/><br/>　　保存后，重新加载配置文件：<br/><br/>/usr/local/webserver/nginx/sbin/nginx -t<br/>/usr/local/webserver/nginx/sbin/nginx -s reload<br/><br/><br/>--------------------------------------------------------------------------------<br/><br/>　　3、如果某些带有Flash的页面仍显示彩色，或浏览器上下滚动条拖动时Flash FLV播放器变花（例如剑网3、剑侠世界官网分流页），将Flash改为JS输出（本例为SWFObject）：<br/><br/><script type="text/javascript" src="http://v.xoyo.com/site/v.xoyo.com/web/js/swf.js"></script><br/><div id="video_content"></div><br/><script type="text/javascript"> <br/><!--<br/>&nbsp;&nbsp;&nbsp;&nbsp;var video_player_so = new SWFObject("http://api.v.xoyo.com/external/player.swf?autostart=true&config=http://api.v.xoyo.com/external/video-542.swf", "sotester", "439", "246", "7");<br/>&nbsp;&nbsp;&nbsp;&nbsp;video_player_so.addParam("wmode", "opaque"); <br/>&nbsp;&nbsp;&nbsp;&nbsp;video_player_so.addParam("allowfullscreen","true");<br/>&nbsp;&nbsp;&nbsp;&nbsp;video_player_so.addParam("allowscriptaccess","always");<br/>&nbsp;&nbsp;&nbsp;&nbsp;video_player_so.write("video_content");<br/>//--><br/></script><br/><br/><br/>　　这样，整个页面，包括Flash播放器中的视频就都变灰色了。<br/>
]]>
</description>
</item><item>
<link>http://www.6xuan.com/read.php?396</link>
<title><![CDATA[安装MYSQL出现checking for termcap functions library…]]></title> 
<author>tinkoko &lt;admin@yourname.com&gt;</author>
<category><![CDATA[linux相关]]></category>
<pubDate>Sun, 28 Mar 2010 12:43:24 +0000</pubDate> 
<guid>http://www.6xuan.com/read.php?396</guid> 
<description>
<![CDATA[ 
	安装MYSQL出现checking for termcap functions library…<br/>如果编译时出现了以下错误： <br/>引用:<br/>checking for tgetent in -ltermcap… no<br/>checking for termcap functions library… configure: error: No curses/termcap library found<br/>说明 curses/termcap 库没有安装<br/>去下载一个ncurses-5.6.tar.gz， <br/>引用:<br/>wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz<br/>tar zxvf&nbsp;&nbsp;ncurses-5.6.tar.gz<br/>cd ncurses-5.6<br/>./configure –prefix=/usr –with-shared –without-debug<br/>make<br/>make install clean<br/>然后再重新编译Mysql进行安装。<br/>
]]>
</description>
</item><item>
<link>http://www.6xuan.com/read.php?392</link>
<title><![CDATA[shopex4.8.5在nginx下的rewrite规则，超简单~~]]></title> 
<author>tinkoko &lt;admin@yourname.com&gt;</author>
<category><![CDATA[linux相关]]></category>
<pubDate>Fri, 05 Feb 2010 08:42:25 +0000</pubDate> 
<guid>http://www.6xuan.com/read.php?392</guid> 
<description>
<![CDATA[ 
	<br/>在虚拟主机目录下添加以下代码即可！！<br/><div class="code"><br/>#~~~~~~rewrite~~<br/>location / &#123;<br/>if (!-e $request_filename) &#123;<br/>rewrite ^/(.+&#92;.(html&#124;xml&#124;json&#124;htm&#124;php&#124;jsp&#124;asp&#124;shtml))$ /index.php?$1 last;<br/>&#125;<br/>&#125;<br/>#~~~~~~~end rewrite~~~<br/></div>
]]>
</description>
</item><item>
<link>http://www.6xuan.com/read.php?391</link>
<title><![CDATA[使用Nginx的proxy_cache缓存功能取代Squid]]></title> 
<author>tinkoko &lt;admin@yourname.com&gt;</author>
<category><![CDATA[linux相关]]></category>
<pubDate>Fri, 05 Feb 2010 08:33:12 +0000</pubDate> 
<guid>http://www.6xuan.com/read.php?391</guid> 
<description>
<![CDATA[ 
	转自张燕BLOG~~<br/>====================<br/>Nginx从0.7.48版本开始，支持了类似Squid的缓存功能。这个缓存是把URL及相关组合当作Key，用md5编码哈希后保存在硬盘上，所以它可以支持任意URL链接，同时也支持404/301/302这样的非200状态码。虽然目前官方的Nginx Web缓存服务只能为指定URL或状态码设置过期时间，不支持类似Squid的PURGE指令，手动清除指定缓存页面，但是，通过一个第三方的Nginx模块，可以清除指定URL的缓存。<br/><br/>　　Nginx的Web缓存服务主要由proxy_cache相关指令集和fastcgi_cache相关指令集构成，前者用于反向代理时，对后端内容源服务器进行缓存，后者主要用于对FastCGI的动态程序进行缓存。两者的功能基本上一样。<br/><br/>　　最新的Nginx 0.8.32版本，proxy_cache和fastcgi_cache已经比较完善，加上第三方的ngx_cache_purge模块（用于清除指定URL的缓存），已经可以完全取代Squid。我们已经在生产环境使用了 Nginx 的 proxy_cache 缓存功能超过两个月，十分稳定，速度不逊于 Squid。<br/><br/>　　在功能上，Nginx已经具备Squid所拥有的Web缓存加速功能、清除指定URL缓存的功能。而在性能上，Nginx对多核CPU的利用，胜过Squid不少。另外，在反向代理、负载均衡、健康检查、后端服务器故障转移、Rewrite重写、易用性上，Nginx也比Squid强大得多。这使得一台Nginx可以同时作为“负载均衡服务器”与“Web缓存服务器”来使用。<br/>　　<br/>=======================<br/>1、Nginx 负载均衡与缓存服务器在 Linux 下的编译安装：<br/><div class="code"><br/>ulimit -SHn 65535<br/>wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.00.tar.gz<br/>tar zxvf pcre-8.00.tar.gz<br/>cd pcre-8.00/<br/>./configure<br/>make &amp;&amp; make install<br/>cd ../<br/><br/>wget http://labs.frickle.com/files/ngx_cache_purge-1.0.tar.gz<br/>tar zxvf ngx_cache_purge-1.0.tar.gz<br/><br/>wget http://nginx.org/download/nginx-0.8.32.tar.gz<br/>tar zxvf nginx-0.8.32.tar.gz<br/>cd nginx-0.8.32/<br/>./configure --user=www --group=www --add-module=../ngx_cache_purge-1.0 --prefix=/usr/local/webserver/nginx --with-http_stub_status_module --with-http_ssl_module<br/>make &amp;&amp; make install<br/>cd ../<br/></div><br/>　2、/usr/local/webserver/nginx/conf/nginx.conf 配置文件内容如下：<br/><br/><div class="code"><br/>user&nbsp;&nbsp;www www;<br/><br/>worker_processes 8;<br/><br/>error_log&nbsp;&nbsp;/usr/local/webserver/nginx/logs/nginx_error.log&nbsp;&nbsp;crit;<br/><br/>pid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/usr/local/webserver/nginx/nginx.pid;<br/><br/>#Specifies the value for maximum file descriptors that can be opened by this process. <br/>worker_rlimit_nofile 65535;<br/><br/>events <br/>&#123;<br/>&nbsp;&nbsp;use epoll;<br/>&nbsp;&nbsp;worker_connections 65535;<br/>&#125;<br/><br/>http <br/>&#123;<br/>&nbsp;&nbsp;include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mime.types;<br/>&nbsp;&nbsp;default_type&nbsp;&nbsp;application/octet-stream;<br/><br/>&nbsp;&nbsp;charset&nbsp;&nbsp;utf-8;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;server_names_hash_bucket_size 128;<br/>&nbsp;&nbsp;client_header_buffer_size 32k;<br/>&nbsp;&nbsp;large_client_header_buffers 4 32k;<br/>&nbsp;&nbsp;client_max_body_size 300m;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;sendfile on;<br/>&nbsp;&nbsp;tcp_nopush&nbsp;&nbsp;&nbsp;&nbsp; on;<br/><br/>&nbsp;&nbsp;keepalive_timeout 60;<br/><br/>&nbsp;&nbsp;tcp_nodelay on;<br/><br/>&nbsp;&nbsp;client_body_buffer_size&nbsp;&nbsp;512k;<br/>&nbsp;&nbsp;proxy_connect_timeout&nbsp;&nbsp;&nbsp;&nbsp;5;<br/>&nbsp;&nbsp;proxy_read_timeout&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 60;<br/>&nbsp;&nbsp;proxy_send_timeout&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5;<br/>&nbsp;&nbsp;proxy_buffer_size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;16k;<br/>&nbsp;&nbsp;proxy_buffers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;4 64k;<br/>&nbsp;&nbsp;proxy_busy_buffers_size 128k;<br/>&nbsp;&nbsp;proxy_temp_file_write_size 128k;<br/><br/>&nbsp;&nbsp;gzip on;<br/>&nbsp;&nbsp;gzip_min_length&nbsp;&nbsp;1k;<br/>&nbsp;&nbsp;gzip_buffers&nbsp;&nbsp;&nbsp;&nbsp; 4 16k;<br/>&nbsp;&nbsp;gzip_http_version 1.1;<br/>&nbsp;&nbsp;gzip_comp_level 2;<br/>&nbsp;&nbsp;gzip_types&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; text/plain application/x-javascript text/css application/xml;<br/>&nbsp;&nbsp;gzip_vary on;<br/><br/>&nbsp;&nbsp;#注：proxy_temp_path和proxy_cache_path指定的路径必须在同一分区<br/>&nbsp;&nbsp;proxy_temp_path&nbsp;&nbsp; /data0/proxy_temp_dir;<br/>&nbsp;&nbsp;#设置Web缓存区名称为cache_one，内存缓存空间大小为200MB，1天清理一次缓存，硬盘缓存空间大小为30GB。<br/>&nbsp;&nbsp;proxy_cache_path&nbsp;&nbsp;/data0/proxy_cache_dir&nbsp;&nbsp;levels=1:2&nbsp;&nbsp; keys_zone=cache_one:200m inactive=1d max_size=30g;<br/>&nbsp;&nbsp;<br/>&nbsp;&nbsp;upstream backend_server &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;server&nbsp;&nbsp; 192.168.8.43:80 weight=1 max_fails=2 fail_timeout=30s;<br/>&nbsp;&nbsp;&nbsp;&nbsp;server&nbsp;&nbsp; 192.168.8.44:80 weight=1 max_fails=2 fail_timeout=30s;<br/>&nbsp;&nbsp;&nbsp;&nbsp;server&nbsp;&nbsp; 192.168.8.45:80 weight=1 max_fails=2 fail_timeout=30s;<br/>&nbsp;&nbsp;&#125;<br/><br/>&nbsp;&nbsp;server<br/>&nbsp;&nbsp;&#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;listen&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 80;<br/>&nbsp;&nbsp;&nbsp;&nbsp;server_name&nbsp;&nbsp;www.yourdomain.com 192.168.8.42;<br/>&nbsp;&nbsp;&nbsp;&nbsp;index index.html index.htm;<br/>&nbsp;&nbsp;&nbsp;&nbsp;root&nbsp;&nbsp;/data0/htdocs/www;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;location /<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #如果后端的服务器返回502、504、执行超时等错误，自动将请求转发到upstream负载均衡池中的另一台服务器，实现故障转移。<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_next_upstream http_502 http_504 error timeout invalid_header;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_cache cache_one;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #对不同的HTTP状态码设置不同的缓存时间<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_cache_valid&nbsp;&nbsp;200 304 12h;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #以域名、URI、参数组合成Web缓存的Key值，Nginx根据Key值哈希，存储缓存内容到二级缓存目录内<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_cache_key $host$uri$is_args$args;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_set_header Host&nbsp;&nbsp;$host;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_set_header X-Forwarded-For&nbsp;&nbsp;$remote_addr;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_pass http://backend_server;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; expires&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1d;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br/>&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;#用于清除缓存，假设一个URL为http://192.168.8.42/test.txt，通过访问http://192.168.8.42/purge/test.txt就可以清除该URL的缓存。<br/>&nbsp;&nbsp;&nbsp;&nbsp;location ~ /purge(/.*)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp; #设置只允许指定的IP或IP段才可以清除URL缓存。<br/>&nbsp;&nbsp;&nbsp;&nbsp; allow&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;127.0.0.1;<br/>&nbsp;&nbsp;&nbsp;&nbsp; allow&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;192.168.0.0/16;<br/>&nbsp;&nbsp;&nbsp;&nbsp; deny&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;all;<br/>&nbsp;&nbsp;&nbsp;&nbsp; proxy_cache_purge&nbsp;&nbsp;&nbsp;&nbsp;cache_one&nbsp;&nbsp; $host$1$is_args$args;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#125;&nbsp;&nbsp;&nbsp;&nbsp;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;#扩展名以.php、.jsp、.cgi结尾的动态应用程序不缓存。<br/>&nbsp;&nbsp;&nbsp;&nbsp;location ~ .*&#92;.(php&#124;jsp&#124;cgi)?$<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_set_header Host&nbsp;&nbsp;$host;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_set_header X-Forwarded-For&nbsp;&nbsp;$remote_addr;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_pass http://backend_server;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;access_log&nbsp;&nbsp;off;<br/>&nbsp;&nbsp;&#125;<br/>&#125;<br/><br/></div><br/><br/>　　3、启动 Nginx：<br/><br/>/usr/local/webserver/nginx/sbin/nginx
]]>
</description>
</item><item>
<link>http://www.6xuan.com/read.php?389</link>
<title><![CDATA[extmail的软件记载]]></title> 
<author>tinkoko &lt;admin@yourname.com&gt;</author>
<category><![CDATA[linux相关]]></category>
<pubDate>Tue, 02 Feb 2010 08:08:44 +0000</pubDate> 
<guid>http://www.6xuan.com/read.php?389</guid> 
<description>
<![CDATA[ 
	http://mirror.extmail.org/yum/<br/>里面还可以找到其他一些常用的RPM包！！！
]]>
</description>
</item><item>
<link>http://www.6xuan.com/read.php?388</link>
<title><![CDATA[UBUNTU下VSFTP添加账户~~]]></title> 
<author>tinkoko &lt;admin@yourname.com&gt;</author>
<category><![CDATA[linux相关]]></category>
<pubDate>Mon, 25 Jan 2010 08:48:59 +0000</pubDate> 
<guid>http://www.6xuan.com/read.php?388</guid> 
<description>
<![CDATA[ 
	ubuntu版本 <br/><br/><br/>1.Linux www.vivi.cn 2.6.28-15-server #52-Ubuntu SMP Wed Sep 9 11:34:09 UTC 2009 x86_64 GNU/Linux<br/><br/><br/> #cat /etc/vsftpd.conf<br/>vsftpd.conf <br/>vim /etc/vsftpd.conf 运行这个就可以进入配置界面 <br/>listen=YES 独立运行模式 <br/>anonymous_enable=NO/YES （允许匿名登陆吗？=YES 可登陆 =NO 不可登陆） <br/>no_anon_password=NO/YES (匿名登陆要密码吗？=YES 要 =NO 不要) <br/>local_enable=YES/NO 本地用户可登陆吗? =YES 要 =NO 不要 <br/>write_enable=YES 本地用户有写权限吗? <br/>local_umask=022 不要动，前面如果有#就去掉,什么意思，不告诉你 <br/>connect_from_port_20=YES 端口设成20 ，不想要，自己在改: connect_from_port_205=YES <br/>idle_session_timeout=600 监听，多常时间，没响应，VSFTPD 把你踢出服务器 <br/>data_connection_timeout=600 连接服务器后，数据多常时间不能传入，断开服务 <br/>chroot_list_enable=YES 这一行,和下面一行，密切相关 <br/>chroot_list_file=/etc/vsftpd.chroot_list 这一行，上一行设置YES才生效。意思是：加入到这个文件内的用户，只能访问自己的目录。其它目录不能访问.建立下面有说明. <br/>secure_chroot_dir=/var/run/vsftpd 意思是:vsftpd 运行的目录。 <br/>pam_service_name=vsftpd 加密(pam) 传输模式,这个目录内的: /etc/pam.d/vsftpd <br/>rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key （KEY文件，不要动） <br/><br/><br/>2，添加账户<br/><br/>添加用户：adduser tinkoko<br/><br/>然后直接按照英文提示顺下来就ok了~~<br/><br/>重启服务后，就能访问FTP了。<br/><br/>
]]>
</description>
</item><item>
<link>http://www.6xuan.com/read.php?387</link>
<title><![CDATA[再次ecshop2.7.1(2.7.x)在nginx下的rewrite规则~~]]></title> 
<author>tinkoko &lt;admin@yourname.com&gt;</author>
<category><![CDATA[linux相关]]></category>
<pubDate>Mon, 18 Jan 2010 06:51:54 +0000</pubDate> 
<guid>http://www.6xuan.com/read.php?387</guid> 
<description>
<![CDATA[ 
	很感谢ecshop的会员分享，本来想自己手写ecshop的rewrite规则。<br/>因为大部分都是ecshop2.6.x的、在2.7上用了会出错。~这样子整理了下~~~<br/><br/>1.ecshop后台商店设置--基本设置--URL重写---简单重写<br/><br/><br/>2.以下代码加入到nginx的ecshop虚拟主机中~~很感谢分享，再次谢谢！！<br/><br/><br/><div class="code"><br/>if (!-e $request_filename)<br/>&#123;<br/>rewrite &quot;^/index&#92;.html&quot;&nbsp;&nbsp;&nbsp;&nbsp;/index.php last;<br/>rewrite &quot;^/category$&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/index.php last;<br/> <br/>rewrite &quot;^/feed-c(&#91;0-9&#93;+)&#92;.xml$&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /feed.php?cat=$1 last;<br/>rewrite &quot;^/feed-b(&#91;0-9&#93;+)&#92;.xml$&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /feed.php?brand=$1 last;<br/>rewrite &quot;^/feed&#92;.xml$&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /feed.php last;<br/> <br/>rewrite &quot;^/category-(&#91;0-9&#93;+)-b(&#91;0-9&#93;+)-min(&#91;0-9&#93;+)-max(&#91;0-9&#93;+)-attr(&#91;^-&#93;*)-(&#91;0-9&#93;+)-(.+)-(&#91;a-zA-Z&#93;+)(.*)&#92;.html$&quot;&nbsp;&nbsp;/category.php?id=$1&amp;brand=$2&amp;price_min=$3&amp;price_max=$4&amp;filter_attr=$5&amp;page=$6&amp;sort=$7&amp;order=$8 last;<br/>rewrite &quot;^/category-(&#91;0-9&#93;+)-b(&#91;0-9&#93;+)-min(&#91;0-9&#93;+)-max(&#91;0-9&#93;+)-attr(&#91;^-&#93;*)(.*)&#92;.html$&quot; /category.php?id=$1&amp;brand=$2&amp;price_min=$3&amp;price_max=$4&amp;filter_attr=$5 last;<br/>rewrite &quot;^/category-(&#91;0-9&#93;+)-b(&#91;0-9&#93;+)-(&#91;0-9&#93;+)-(.+)-(&#91;a-zA-Z&#93;+)(.*)&#92;.html$&quot; /category.php?id=$1&amp;brand=$2&amp;page=$3&amp;sort=$4&amp;order=$5 last;<br/>rewrite &quot;^/category-(&#91;0-9&#93;+)-b(&#91;0-9&#93;+)-(&#91;0-9&#93;+)(.*)&#92;.html$&quot; /category.php?id=$1&amp;brand=$2&amp;page=$3&nbsp;&nbsp;last;<br/>rewrite &quot;^/category-(&#91;0-9&#93;+)-b(&#91;0-9&#93;+)(.*)&#92;.html$&quot; /category.php?id=$1&amp;brand=$2&nbsp;&nbsp;last;<br/>rewrite &quot;^/category-(&#91;0-9&#93;+)(.*)&#92;.html$&quot;&nbsp;&nbsp;&nbsp;&nbsp;/category.php?id=$1&nbsp;&nbsp;last;<br/> <br/>rewrite &quot;^/goods-(&#91;0-9&#93;+)(.*)&#92;.html&quot;&nbsp;&nbsp;/goods.php?id=$1 last;<br/> <br/>rewrite &quot;^/article_cat-(&#91;0-9&#93;+)-(&#91;0-9&#93;+)-(.+)-(&#91;a-zA-Z&#93;+)(.*)&#92;.html$&quot;&nbsp;&nbsp;/article_cat.php?id=$1&amp;page=$2&amp;sort=$3&amp;order=$4&nbsp;&nbsp;last;<br/>rewrite &quot;^/article_cat-(&#91;0-9&#93;+)-(&#91;0-9&#93;+)(.*)&#92;.html$&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /article_cat.php?id=$1&amp;page=$2&nbsp;&nbsp;last;<br/>rewrite &quot;^/article_cat-(&#91;0-9&#93;+)(.*)&#92;.html$&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/article_cat.php?id=$1&nbsp;&nbsp; last;<br/> <br/>rewrite &quot;^/article-(&#91;0-9&#93;+)(.*)&#92;.html$&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /article.php?id=$1&nbsp;&nbsp;last;<br/> <br/>rewrite &quot;^/brand-(&#91;0-9&#93;+)-c(&#91;0-9&#93;+)-(&#91;0-9&#93;+)-(.+)-(&#91;a-zA-Z&#93;+)&#92;.html&quot;&nbsp;&nbsp; /brand.php?id=$1&amp;cat=$2&amp;page=$3&amp;sort=$4&amp;order=$5 last;<br/>rewrite &quot;^/brand-(&#91;0-9&#93;+)-c(&#91;0-9&#93;+)-(&#91;0-9&#93;+)(.*)&#92;.html&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/brand.php?id=$1&amp;cat=$2&amp;page=$3 last;<br/>rewrite &quot;^/brand-(&#91;0-9&#93;+)-c(&#91;0-9&#93;+)(.*)&#92;.html&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /brand.php?id=$1&amp;cat=$2 last;<br/>rewrite &quot;^/brand-(&#91;0-9&#93;+)(.*)&#92;.html&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /brand.php?id=$1 last;<br/> <br/>rewrite &quot;^/tag-(.*)&#92;.html&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /search.php?keywords=$1 last;<br/>rewrite &quot;^/snatch-(&#91;0-9&#93;+)&#92;.html$&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /snatch.php?id=$1 last;<br/>rewrite &quot;^/group_buy-(&#91;0-9&#93;+)&#92;.html$&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/group_buy.php?act=view&amp;id=$1 last;<br/>rewrite &quot;^/auction-(&#91;0-9&#93;+)&#92;.html$&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/auction.php?act=view&amp;id=$1 last;<br/> <br/>rewrite &quot;^/exchange-id(&#91;0-9&#93;+)(.*)&#92;.html$&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /exchange.php?id=$1&amp;act=view last;<br/>rewrite &quot;^/exchange-(&#91;0-9&#93;+)-min(&#91;0-9&#93;+)-max(&#91;0-9&#93;+)-(&#91;0-9&#93;+)-(.+)-(&#91;a-zA-Z&#93;+)(.*)&#92;.html$&quot; /exchange.php?cat_id=$1&amp;integral_min=$2&amp;integral_max=$3&amp;page=$4&amp;sort=$5&amp;order=$6 last;<br/>rewrite ^/exchange-(&#91;0-9&#93;+)-(&#91;0-9&#93;+)-(.+)-(&#91;a-zA-Z&#93;+)(.*)&#92;.html$&quot;&nbsp;&nbsp; /exchange.php?cat_id=$1&amp;page=$2&amp;sort=$3&amp;order=$4 last;<br/>rewrite &quot;^/exchange-(&#91;0-9&#93;+)-(&#91;0-9&#93;+)(.*)&#92;.html$&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /exchange.php?cat_id=$1&amp;page=$2 last;<br/>rewrite &quot;^/exchange-(&#91;0-9&#93;+)(.*)&#92;.html$&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/exchange.php?cat_id=$1 last;<br/>&#125;<br/></div><br/><br/><br/>3.重启下nginx服务器~~~~~~~~~~
]]>
</description>
</item><item>
<link>http://www.6xuan.com/read.php?386</link>
<title><![CDATA[2010.1.9号，EXTMAIL服务器不能收发邮件]]></title> 
<author>tinkoko &lt;admin@yourname.com&gt;</author>
<category><![CDATA[linux相关]]></category>
<pubDate>Sat, 09 Jan 2010 06:40:01 +0000</pubDate> 
<guid>http://www.6xuan.com/read.php?386</guid> 
<description>
<![CDATA[ 
	中午电话过来，说邮件服务器无法正常收发邮件。<br/>原来以为是邮件队列问题。<br/>对于我们的机器每天收发几百万封都没有出现问题。<br/>maillq看了下只有700多封邮件，而且很多事 退信。<br/>但是为了测试只好全部删除了。。<br/><br/>postsuper -d ALL.<br/><br/><br/>但是还是不行，重启了slock和clamav。amvised都是不行的。<br/><br/>===============================<br/><br/>extmail.org看到一个事情就是CLAMAV要升级。尝试试了下，还真的是这样子。<br/><br/>1. vi /etc/yum.repos.d/CentOS-Base.repo<br/> 加入下面内容：<br/>[dag]<br/>name=Dag RPM Repository for Red Hat Enterprise Linux<br/>baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag/<br/>gpgcheck=1<br/>gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt<br/>enabled=1<br/>2. yum install clamav ,yum install clamav-db ,过程中，可能要输入几个y。<br/>3./etc/init.d/amavisd restart&nbsp;&nbsp;<br/>4./etc/init.d/clamd restart 此时会提示如下错误：<br/>[root@mail etc]# /etc/init.d/clamd restart<br/>Stopping Clam AntiVirus Daemon:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[&nbsp;&nbsp;OK&nbsp;&nbsp;]<br/>Starting Clam AntiVirus Daemon: ERROR: Missing argument for option at line 34<br/>ERROR: Can't open/parse the config file /etc/clamd.conf&nbsp;&nbsp;&nbsp;&nbsp;[FAILED]<br/>5.[root@mail etc]# cp /etc/clamd.conf.rpmnew&nbsp;&nbsp; /etc/clamd.conf<br/>cp: overwrite `/etc/clamd.conf'? y<br/>6.[root@mail etc]# /etc/init.d/clamd restart&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br/>Stopping Clam AntiVirus Daemon:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[FAILED]<br/>Starting Clam AntiVirus Daemon:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[&nbsp;&nbsp;OK&nbsp;&nbsp;]<br/>
]]>
</description>
</item><item>
<link>http://www.6xuan.com/read.php?385</link>
<title><![CDATA[网上找的可以将APACHE的rewrite规则自动转化nginx]]></title> 
<author>tinkoko &lt;admin@yourname.com&gt;</author>
<category><![CDATA[linux相关]]></category>
<pubDate>Wed, 30 Dec 2009 09:54:26 +0000</pubDate> 
<guid>http://www.6xuan.com/read.php?385</guid> 
<description>
<![CDATA[ 
	http://www.anilcetin.com/convert-apache-htaccess-to-nginx/<br/><br/><br/>以上网址大家可以测试下。。<br/>
]]>
</description>
</item><item>
<link>http://www.6xuan.com/read.php?382</link>
<title><![CDATA[DELL R410网卡驱动的下载地址以及安装方式]]></title> 
<author>tinkoko &lt;admin@yourname.com&gt;</author>
<category><![CDATA[linux相关]]></category>
<pubDate>Mon, 07 Dec 2009 06:45:24 +0000</pubDate> 
<guid>http://www.6xuan.com/read.php?382</guid> 
<description>
<![CDATA[ 
	公司进了批DELL的R410-1U和R710-2U的机器。安装CENTOS5.X-64BIT的OS。<br/>结果1u的认不到网卡驱动。<br/>现在找到了下载地址。、<br/><br/>http://zh-cn.broadcom.com/support/ethernet_nic/netxtremeii.php<br/><br/>可以从这里面下载 for linux和BSD的、<br/><br/>=====================<br/>解压后里面有两个，一个是RPM包，一个是TAR包。<br/><br/>两个任何一个安装都可以。<br/>我大概看了下INSTALL.TXT。发现tar包安装还是比较简单。<br/><br/><br/>RPM的可以看自带的安装文档。、<br/><br/><br/>tar包解压后，然后直接 make && make install就好了。<br/><br/>然后重启。就会自动发现网卡。<br/><br/>这个要比原来的一些网卡编译简单些。。<br/><br/>临时存档。。。
]]>
</description>
</item>
</channel>
</rss>