<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feed.feedsky.com/Thisme" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/Thisme" type="application/rss+xml"></fs:self_link><lastBuildDate>Wed, 15 Feb 2012 03:25:04 GMT</lastBuildDate><title>Thisme web运维</title><description>好想隐身于黑暗，独自去承受那份称之为“过去”的伤痛……</description><link>http://www.thisme.biz</link><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>1</sy:updateFrequency><xhtml:meta name="robots" content="noindex"></xhtml:meta><language>en</language><pubDate>Wed, 15 Feb 2012 03:39:19 GMT</pubDate><item><title>linux iptables 开启21 20端口, ftp 连接不上</title><link>http://www.thisme.biz/iptables-20-21-ftp</link><wfw:commentRss>http://www.thisme.biz/iptables-20-21-ftp/feed</wfw:commentRss><slash:comments>0</slash:comments><description>iptables会自上而下的对比规则﹐找到符合的就不再往下找了。根据这样的特性﹐我们可以将 NAT 外部界面进入的某些联机﹐在那行 syn 过滤规则之前 ACCEPT 进来。
iptables -A INPUT -m state &amp;#8211;state NEW,ESTABLISHED,RELATED -j ACCEPT这条命令可以解决问题， 只开了20 21 是没用的，要是连被动的ftp服务器，边上21后，服务器端是随机端口和你的连接的，,ESTABLISHED,RELATED -j ACCEPT 可以解决此问题&lt;img src=&quot;http://www1.feedsky.com/t1/605856307/Thisme/feedsky/s.gif?r=http://www.thisme.biz/iptables-20-21-ftp&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>系统运维</category><category>linux 技术</category><pubDate>Wed, 15 Feb 2012 11:25:04 +0800</pubDate><author>泡沫</author><comments>http://www.thisme.biz/iptables-20-21-ftp#comments</comments><guid isPermaLink="false">http://www.thisme.biz/?p=536</guid><dc:creator>泡沫</dc:creator><fs:srclink>http://www.thisme.biz/iptables-20-21-ftp</fs:srclink><fs:srcfeed>http://www.thisme.biz/feed/</fs:srcfeed><fs:itemid>feedsky/Thisme/~8500970/605856307/6605222</fs:itemid></item><item><title>Magento Use IE chrome don’t shopping</title><link>http://www.thisme.biz/magento-use-ie-chrome-dont-shopping</link><wfw:commentRss>http://www.thisme.biz/magento-use-ie-chrome-dont-shopping/feed</wfw:commentRss><slash:comments>0</slash:comments><description>This is a typical symptom of session management failure for several browsers. There are two things to solve this issue:
1. Tune up &amp;#8220;Session Validation Settings&amp;#8221;
login to your Magento Admin Panel =&gt; System =&gt; Configuration =&gt; Web =&gt; Session Validation Settings and turn everything off. These can cause total failure in the instance of any transparent [...]&lt;img src=&quot;http://www1.feedsky.com/t1/605856308/Thisme/feedsky/s.gif?r=http://www.thisme.biz/magento-use-ie-chrome-dont-shopping&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Magento 专栏</category><pubDate>Tue, 10 Jan 2012 13:39:13 +0800</pubDate><author>泡沫</author><comments>http://www.thisme.biz/magento-use-ie-chrome-dont-shopping#comments</comments><guid isPermaLink="false">http://www.thisme.biz/?p=534</guid><dc:creator>泡沫</dc:creator><fs:srclink>http://www.thisme.biz/magento-use-ie-chrome-dont-shopping</fs:srclink><fs:srcfeed>http://www.thisme.biz/feed/</fs:srcfeed><fs:itemid>feedsky/Thisme/~8500970/605856308/6605222</fs:itemid></item><item><title>在Magento的CMS Page 中调用图片和url</title><link>http://www.thisme.biz/magento-cms-page-url-img</link><wfw:commentRss>http://www.thisme.biz/magento-cms-page-url-img/feed</wfw:commentRss><slash:comments>0</slash:comments><description>在代码中调用图片和url是很简单的事， 但到CMS Page 中用phtml文件中的调用方法就不行了
我们需要使用几个参数来调用url和路径， 使用绝对地址可能到网站换域名的时候造成麻烦
1，CMS调用网站的Url  调用的是youdomain/about-us

?View Code TEXT1
&amp;#60;a href=&amp;#34;{{store direct_url=&amp;#34;about-us&amp;#34;}}&amp;#34;&amp;#62;About Us&amp;#60;/a&amp;#62;

2, 调用图片

?View Code TEXT1
&amp;#60;img src=&amp;#34;{{skin url='images/thisme.jpg'}}&amp;#34; /&amp;#62;

调用的是使用模板下images目录下的图片&lt;img src=&quot;http://www1.feedsky.com/t1/605856309/Thisme/feedsky/s.gif?r=http://www.thisme.biz/magento-cms-page-url-img&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Magento 专栏</category><pubDate>Wed, 04 Jan 2012 17:18:48 +0800</pubDate><author>泡沫</author><comments>http://www.thisme.biz/magento-cms-page-url-img#comments</comments><guid isPermaLink="false">http://www.thisme.biz/?p=531</guid><dc:creator>泡沫</dc:creator><fs:srclink>http://www.thisme.biz/magento-cms-page-url-img</fs:srclink><fs:srcfeed>http://www.thisme.biz/feed/</fs:srcfeed><fs:itemid>feedsky/Thisme/~8500970/605856309/6605222</fs:itemid></item><item><title>cisco asa 5500 系列 NAT 配置</title><link>http://www.thisme.biz/cisco-asa-5500-nat-configure</link><wfw:commentRss>http://www.thisme.biz/cisco-asa-5500-nat-configure/feed</wfw:commentRss><slash:comments>0</slash:comments><description>cisco asa 5500 版本升级到8.3 以后， nat 命令就有所不同了， 主要看官方的文档可以看出来的， 下面就直接用官方的tem来写了， 非常的简单

?View Code TEXT1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
The following example configures static NAT for the real host 10.1.1.1 on the inside to 10.2.2.2 on the outside with DNS rewrite enabled.
&amp;#160;
hostname(config)# object network my-host-obj1
&amp;#160;
hostname(config-network-object)# host 10.1.1.1
&amp;#160;
hostname(config-network-object)# nat (inside,outside) static 10.2.2.2 dns
&amp;#160;
&amp;#160;
The following example configures static NAT for the real host 10.1.1.1 on [...]&lt;img src=&quot;http://www1.feedsky.com/t1/605856310/Thisme/feedsky/s.gif?r=http://www.thisme.biz/cisco-asa-5500-nat-configure&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>安全专区</category><pubDate>Fri, 30 Dec 2011 10:40:33 +0800</pubDate><author>泡沫</author><comments>http://www.thisme.biz/cisco-asa-5500-nat-configure#comments</comments><guid isPermaLink="false">http://www.thisme.biz/?p=529</guid><dc:creator>泡沫</dc:creator><fs:srclink>http://www.thisme.biz/cisco-asa-5500-nat-configure</fs:srclink><fs:srcfeed>http://www.thisme.biz/feed/</fs:srcfeed><fs:itemid>feedsky/Thisme/~8500970/605856310/6605222</fs:itemid></item><item><title>CentOS 5 安装配置 Socks5 服务</title><link>http://www.thisme.biz/centos-5-configure-install-socks5</link><wfw:commentRss>http://www.thisme.biz/centos-5-configure-install-socks5/feed</wfw:commentRss><slash:comments>0</slash:comments><description>1. 配置 Socks5 编译环境

?View Code TEXT1
2
yum -y install gcc automake autoconf libtool make
yum -y install gcc gcc-c++ bison patch unzip mlocate flex wget automake autoconf gd cpp gettext readline-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel libidn libidn-devel openldap openldap-devel [...]&lt;img src=&quot;http://www1.feedsky.com/t1/605856311/Thisme/feedsky/s.gif?r=http://www.thisme.biz/centos-5-configure-install-socks5&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>人生随想</category><pubDate>Thu, 29 Dec 2011 10:09:21 +0800</pubDate><author>泡沫</author><comments>http://www.thisme.biz/centos-5-configure-install-socks5#comments</comments><guid isPermaLink="false">http://www.thisme.biz/?p=525</guid><dc:creator>泡沫</dc:creator><fs:srclink>http://www.thisme.biz/centos-5-configure-install-socks5</fs:srclink><fs:srcfeed>http://www.thisme.biz/feed/</fs:srcfeed><fs:itemid>feedsky/Thisme/~8500970/605856311/6605222</fs:itemid></item><item><title>Mysql V5.5 编译安装</title><link>http://www.thisme.biz/mysql-v5-config-install</link><wfw:commentRss>http://www.thisme.biz/mysql-v5-config-install/feed</wfw:commentRss><slash:comments>0</slash:comments><description>一，安装编译工具
yum install -y gcc gcc-c++ ncurses-devel
二， 下载软件
wget http://www.cmake.org/files/v2.8/cmake-2.8.4.tar.gz
wget http://downloads.mysql.com/archives/mysql-5.5/mysql-5.5.15.tar.gz
三， mysql 安装需要cmake编译， 安装cmake

?View Code TEXT1
2
3
4
5
tar zxvf cmake-2.8.4.tar.gz
cd cmake-2.8.4
./bootstrap
make
make install

四， 安装mysql

?View Code TEXT1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/usr/sbin/groupadd mysql
/usr/sbin/useradd -g mysql mysql
cd /tmp
tar xvf mysql-5.5.15.tar.gz
cd mysql-5.5.15/
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql \
-DMYSQL_UNIX_ADDR=/usr/local/mysql/tmp/mysql.sock \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DWITH_EXTRA_CHARSETS:STRING=utf8,gbk,gb2312 \
-DWITH_MYISAM_STORAGE_ENGINE=1 \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_MEMORY_STORAGE_ENGINE=1 \
-DWITH_READLINE=1 \
-DENABLED_LOCAL_INFILE=1 \
-DMYSQL_DATADIR=/var/mysql/data \
&amp;#160;
make
make install

五， 一些相关配置
chmod +w /usr/local/mysql
chown -R mysql:mysql /usr/local/mysql
ln -s /usr/local/mysql/lib/libmysqlclient.so.16 /usr/lib64/libmysqlclient.so.16
mkdir -p /var/mysql/
mkdir -p /var/mysql/data/
mkdir [...]&lt;img src=&quot;http://www1.feedsky.com/t1/605856312/Thisme/feedsky/s.gif?r=http://www.thisme.biz/mysql-v5-config-install&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Mysql V5 编译安装</category><category>mysql 技术</category><category>系统运维</category><pubDate>Mon, 19 Dec 2011 10:10:04 +0800</pubDate><author>泡沫</author><comments>http://www.thisme.biz/mysql-v5-config-install#comments</comments><guid isPermaLink="false">http://www.thisme.biz/?p=523</guid><dc:creator>泡沫</dc:creator><fs:srclink>http://www.thisme.biz/mysql-v5-config-install</fs:srclink><fs:srcfeed>http://www.thisme.biz/feed/</fs:srcfeed><fs:itemid>feedsky/Thisme/~8500970/605856312/6605222</fs:itemid></item><item><title>Linux Centos 查看CPU信息、机器型号等硬件信息</title><link>http://www.thisme.biz/linux-centos-cpu-info</link><wfw:commentRss>http://www.thisme.biz/linux-centos-cpu-info/feed</wfw:commentRss><slash:comments>0</slash:comments><description>做性能测试需要记录性能测试机器的硬件信息，现将需要的命令总结如下：
查看CPU信息（型号）
# cat /proc/cpuinfo &amp;#124; grep name &amp;#124; cut -f2 -d: &amp;#124; uniq -c
      8  Intel(R) Xeon(R) CPU            E5410   @ 2.33GHz
(看到有8个逻辑CPU, 也知道了CPU型号)
# cat /proc/cpuinfo &amp;#124; grep physical &amp;#124; uniq -c
      4 physical [...]&lt;img src=&quot;http://www1.feedsky.com/t1/605856313/Thisme/feedsky/s.gif?r=http://www.thisme.biz/linux-centos-cpu-info&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Linux Centos 查看CPU信息、机器型号等硬件信息</category><category>系统运维</category><category>linux 技术</category><pubDate>Mon, 12 Dec 2011 16:37:42 +0800</pubDate><author>泡沫</author><comments>http://www.thisme.biz/linux-centos-cpu-info#comments</comments><guid isPermaLink="false">http://www.thisme.biz/?p=521</guid><dc:creator>泡沫</dc:creator><fs:srclink>http://www.thisme.biz/linux-centos-cpu-info</fs:srclink><fs:srcfeed>http://www.thisme.biz/feed/</fs:srcfeed><fs:itemid>feedsky/Thisme/~8500970/605856313/6605222</fs:itemid></item><item><title>php编译时 出现configure: error: libjpeg.(a|so) not found 错误的解决办法</title><link>http://www.thisme.biz/php-configure-error-libjpeg-aso-not-found</link><wfw:commentRss>http://www.thisme.biz/php-configure-error-libjpeg-aso-not-found/feed</wfw:commentRss><slash:comments>0</slash:comments><description>在centos 6系统下编译安装PHP时，有以下错误， centos 5 好像没有

?View Code TEXT1
configure: error: libjpeg.(a&amp;#124;so) not found


?View Code TEXT1
locate libjpeg.so

locate之后发现已经安装了libjpeg了，但是在/usr/lib目录下没有libjpeg.so这个文件，在/usr/lib64下是有的，虽然使用–with-jpeg-dir=/usr/lib64 依然无效，最后用

?View Code TEXT1
ln -s /usr/lib64/libjpeg.so /usr/lib/libjpeg.so

问题解决， libpng 报的错误解决方法一样&lt;img src=&quot;http://www1.feedsky.com/t1/605856314/Thisme/feedsky/s.gif?r=http://www.thisme.biz/php-configure-error-libjpeg-aso-not-found&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>php编译时 出现configure: error: libjpeg.(a|so) not found 错误的解决办法</category><category>系统运维</category><category>linux 技术</category><pubDate>Tue, 06 Dec 2011 09:44:46 +0800</pubDate><author>泡沫</author><comments>http://www.thisme.biz/php-configure-error-libjpeg-aso-not-found#comments</comments><guid isPermaLink="false">http://www.thisme.biz/?p=519</guid><dc:creator>泡沫</dc:creator><fs:srclink>http://www.thisme.biz/php-configure-error-libjpeg-aso-not-found</fs:srclink><fs:srcfeed>http://www.thisme.biz/feed/</fs:srcfeed><fs:itemid>feedsky/Thisme/~8500970/605856314/6605222</fs:itemid></item><item><title>php 编辑错误 error: Cannot find OpenSSL’s</title><link>http://www.thisme.biz/php-error-cannot-find-openssls</link><wfw:commentRss>http://www.thisme.biz/php-error-cannot-find-openssls/feed</wfw:commentRss><slash:comments>0</slash:comments><description>php 编辑安装时报的错误， 从错误上看应该时缺少关系包, 这个很容易解决的， 直接yum 安装
yum install openssl openssl-devel
在编辑安装php， 并会发现这个问题已经不会出现了。。&lt;img src=&quot;http://www1.feedsky.com/t1/605856315/Thisme/feedsky/s.gif?r=http://www.thisme.biz/php-error-cannot-find-openssls&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>php 编辑错误 error: Cannot find OpenSSL's</category><category>系统运维</category><category>linux 技术</category><pubDate>Mon, 05 Dec 2011 18:24:18 +0800</pubDate><author>泡沫</author><comments>http://www.thisme.biz/php-error-cannot-find-openssls#comments</comments><guid isPermaLink="false">http://www.thisme.biz/?p=516</guid><dc:creator>泡沫</dc:creator><fs:srclink>http://www.thisme.biz/php-error-cannot-find-openssls</fs:srclink><fs:srcfeed>http://www.thisme.biz/feed/</fs:srcfeed><fs:itemid>feedsky/Thisme/~8500970/605856315/6605222</fs:itemid></item><item><title>bash 判断多个有规律的文件，并删除</title><link>http://www.thisme.biz/bash-exists-file</link><wfw:commentRss>http://www.thisme.biz/bash-exists-file/feed</wfw:commentRss><slash:comments>0</slash:comments><description>服务器上一个web网站可能是程序出了问题， 到网站目录下产生大量的临时文件， 确没有找出什么问题， 看着文件碍眼， 写了一个脚本，把文件给删除了
1， 用if -e 的方法来判断多个文件是会报错的&amp;#8230;..
下面直接上方法。。。。

?View Code TEXT1
2
3
4
5
6
#!/bin/bash
filepath=/xxx/xxx/xxx
FILES=$(ls $filepath/cookie* 2&amp;#62;/dev/null)
if [ &amp;#34;$FILES&amp;#34; ]; then
   find $filepath -name &amp;#34;cookie*&amp;#34;&amp;#124; xargs /bin/rm
fi

还有另一种方法，

?View Code TEXT1
2
3
4
5
6
7
 exists_pattern_files(){  
    [ -e &amp;#34;$1&amp;#34; ]  
}  
&amp;#160;
         if exists_pattern_files $filepath/*_codec.*; then  
  [...]&lt;img src=&quot;http://www1.feedsky.com/t1/605856316/Thisme/feedsky/s.gif?r=http://www.thisme.biz/bash-exists-file&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>bash 判断多个有规律的文件</category><category>系统运维</category><category>linux 技术</category><pubDate>Fri, 02 Dec 2011 17:25:54 +0800</pubDate><author>泡沫</author><comments>http://www.thisme.biz/bash-exists-file#comments</comments><guid isPermaLink="false">http://www.thisme.biz/?p=514</guid><dc:creator>泡沫</dc:creator><fs:srclink>http://www.thisme.biz/bash-exists-file</fs:srclink><fs:srcfeed>http://www.thisme.biz/feed/</fs:srcfeed><fs:itemid>feedsky/Thisme/~8500970/605856316/6605222</fs:itemid></item></channel></rss>
