<?xml version="1.0" encoding="UTF-8"?><rss version="0.92">
<channel>
	<title>张荣村的技术笔记</title>
	<link>http://www.zhangrongcun.com</link>
	<description>又一个 WordPress 博客</description>
	<lastBuildDate>Mon, 09 Aug 2010 17:26:40 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	<!-- generator="WordPress/3.0" -->

	<item>
		<title>职场英语·表示感谢</title>
		<description><![CDATA[Thanks a million. I really appreciate it. 万分感谢，真的是帮了我大忙啦。 I really appreciate what you’ve done for me these days. 我真的很感激这些天来你对我的帮助。 It’s very kind of you to help me. 你能帮助我真是太好了。 I really don’t know what I would have done without your help. 真不知道没有你的帮助我该怎么办。 hank you for one of the most enjoyable visits we have had in many [...]]]></description>
		<link>http://www.zhangrongcun.com/2010/08/%e8%81%8c%e5%9c%ba%e8%8b%b1%e8%af%ad%c2%b7%e8%a1%a8%e7%a4%ba%e6%84%9f%e8%b0%a2/</link>
			</item>
	<item>
		<title>HTTP/1.1 New session failed</title>
		<description><![CDATA[Got the above error message on the mail server this afternoon which was a new one on me. Apparently it is caused by the lack of available memory on the server. We have 1.5GB of physical memory, the STORE.exe process was taking 900MB of that and there was a console message (not much use when [...]]]></description>
		<link>http://www.zhangrongcun.com/2010/07/http1-1-new-session-failed/</link>
			</item>
	<item>
		<title>linux查看系统版本和系统位数</title>
		<description><![CDATA[1. uname -a you will view  kernel name、network node hostname、kernel release、kernel version、machine hardware name、processor type 、hardware platform、operating system 2. cat /proc/version his file will not show you the name of the actual OS release, but will instead give you specifics about the version of Linux kernel used in your distribution, and confirm the version of [...]]]></description>
		<link>http://www.zhangrongcun.com/2010/07/linux%e6%9f%a5%e7%9c%8b%e7%b3%bb%e7%bb%9f%e7%89%88%e6%9c%ac%e5%92%8c%e7%b3%bb%e7%bb%9f%e4%bd%8d%e6%95%b0/</link>
			</item>
	<item>
		<title>[转]SQUID FOR WIN + DNSPOD 搭建CDN服务器手记</title>
		<description><![CDATA[呵呵,今天没事做,学了下搭建CDN,先用公司的一个域名试了一下,成功.www.uduu.sh.cn 说名一下,www.uduu.sh.cn主服务器IP为61.129.33.42为上海电信 因为中国网络问题,一些网通用户访问速度较慢, 所以,我选择了用大连网通服务器做CDN,服务器IP为218.61.10.172 也就是 主服务器:61.129.33.42 CDN服务器:218.61.10.172 首先下载squid for windows安装包 squid-2.7.STABLE5-bin.zip 然后解压缩,放到C盘squid目录内. 进入目录C:\squid\etc内,将所有文件的.default全部删掉 编辑下squid.conf,将所有内容删掉,替换以下内容,并保存 http_port 80 vhost vport=80 acl apache rep_header Server ^Apache broken_vary_encoding allow apache cache_mem 1024 MB maximum_object_size 4096 KB minimum_object_size 0 KB maximum_object_size_in_memory 256 KB cache_dir ufs c:/squid/var/cache 40960 16 256 cache_swap_low 80 cache_swap_high 97 strip_query_terms off request_body_max_size 5 MB memory_pools on [...]]]></description>
		<link>http://www.zhangrongcun.com/2010/07/%e8%bd%acsquid-for-win-dnspod-%e6%90%ad%e5%bb%bacdn%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%89%8b%e8%ae%b0/</link>
			</item>
	<item>
		<title>Smarty 配置文件中的相对路径</title>
		<description><![CDATA[&#60;?php //include_once(&#8220;Smarty/libs/Smarty.class.php&#8221;); require_once $_SERVER['DOCUMENT_ROOT'].&#8221;/Smarty/libs/Smarty.class.php&#8221;; $smarty=new smarty(); $smarty-&#62;compile_check=true; $smarty-&#62;config_dir=$_SERVER['DOCUMENT_ROOT'].&#8221;Smarty/libs/Config_File.class.php&#8221;; $smarty-&#62;caching=false; $smarty-&#62;template_dir=$_SERVER['DOCUMENT_ROOT'].&#8221;/Smarty/templates&#8221;; $smarty-&#62;compile_dir=$_SERVER['DOCUMENT_ROOT'].&#8221;/Smarty/templates_c&#8221;; $smarty-&#62;cache_dir=$_SERVER['DOCUMENT_ROOT'].&#8221;/Smarty/cache&#8221;; //  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; $smarty-&#62;left_delimiter=&#8221;&#60;{&#8220;; $smarty-&#62;right_delimiter=&#8221;}&#62;&#8221;; ?&#62;]]></description>
		<link>http://www.zhangrongcun.com/2010/07/smarty-%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6%e4%b8%ad%e7%9a%84%e7%9b%b8%e5%af%b9%e8%b7%af%e5%be%84/</link>
			</item>
	<item>
		<title>Windows 2003下配置IIS+PHP4+Mysql4+zend</title>
		<description><![CDATA[一、下载PHP 4.4.9 zip package http://mirrors.sohu.com/php/php-4.4.9-Win32.zip(注意如果下载的是installer版，就只要直接双击安装了，这里记录的是手动安装的方法。) 二、解压缩到你要安装的目录，例如c:\php 三、将c:\php\sapi\phpisapi.dll与c:\php\phpts.dll拷贝到系统盘windows\system32目录下面 四、将c:\php\php.ini-dist拷贝到系统盘windows目录下面，改名为php.ini 五、打开控制面板－管理工具－Internet 信息服务， 右键点击“默认网站”－属性，点击“ISAPI筛选器”选项卡，点击添加，筛选器名称填php，可执行文件选择c:\php\sapi\phpisapi.dll，点击确定。(Internet信息服务需要安装IIS，插入xp pro的安装光盘选择安装组件，勾选IIS，即可安装。) 六、点击“主目录”选项卡，点击右下角的“配置”，在“映射”选项卡里面点击添加，可执行文件同样选择c:\php\sapi\phpisapi.dll，扩展名填写.php(注意别少了点)，点击确定。 七、编辑刚才的php.ini文件，找到extension_dir，改为php安装目录，例如c:\php\extensions， 然后如果需要打开一些库，只要将相应的语句前面分号去除即可，例如;extension=php_gd2.dll去掉前面分号之后就支持gd库了。 八、添加Web服务扩展，右击添加一个新的Web服务扩展。扩展名选择php，另外再选择要求的文件时，选择c:\php\sapi\phpisapi.dll 九、重启IIS，最傻瓜的方法当然是重启电脑了。 十、编写测试程序，查看phpinfo，例如：建立phpinfo.php，放置到IIS虚拟目录下，其中撰写代码如下： &#60;?php phpinfo(); ?&#62; 然后就可以通过http://localhost/phpinfo.php 查看了， 如果看到了php信息说明安装成功了。如果不行，检查上面操作是否正确。 这是php已经安装在IIS上了，默认是支持mysql的，不用像php5那样，得加载DLL文件。 我们只需单独下载MYSQL4和Zend即可。Zend会自动匹配php.ini并做相应的修改。 done]]></description>
		<link>http://www.zhangrongcun.com/2010/07/windows-2003_iis_php4_mysql4zend/</link>
			</item>
	<item>
		<title>Centos下vpn（pptpd）的部署</title>
		<description><![CDATA[一、安装 在centos 5下面安装pptpd最省事的安装就是下载rpm包pptpd-1.3.4-1.rhel5.1.i386.rpm,然后直接执行 rpm –ivh pptpd-1.3.4-1.rhel5.1.i386.rpm 。幸运的是这个包没有其他依赖，因此安装应该是异常的顺利。如果使用源码安装，会出现ppp版本高的情况，需删除pppd2.3.4 再安装pppp2.4.3，反而麻烦了。 安装完rpm包后，自动生成几个配置文件，主配置文件/etc/pptpd.conf，选项文件/etc/ppp/options.pptpd, 帐号文件/etc/ppp/chap-secrets.后面配置pptpd主要就是对这几个文件进行修改。 二、vpn拓扑结构 vpn的访问逻辑上存在3个网络： 1、  欲访问的目标网络。通常在vpn服务器所在的内部网络（vpn服务器有2个网卡，一个是公网的，一个是私有网络的） 2、  Vpn的公网网络。 3、  Vpn连接后与客户端形成的虚拟网络。建议单独设置一个网络，这样就不会占用vpn后面的私有网络（目标网络）的ip资源/地址。 当然vpn隧道网络可以跟目标网络是同一个网段，不过不推荐这样。 三、vpn服务器端的配置 （一）修改主配置文件/etc/pptpd.conf.只需要加入下面两行： localip  172.16.195.1 remoteip 172.16.195.101-200 Localip这行是给vpn服务器设置一个隧道ip Remoteip是自动分配给客户端的ip地址范围。 （二）修改选项文件/etc/ppp/options.pptpd.需要设定分配给客户端的dns，因此仅需把ms-dns前的注释去掉，改成可用的dns如下： ms-dns 61.135.154.5 ms-dns 159.226.240.66 为了方便查看调试信息，把debug行前面的注释取消即可。Dump前的注释也取消。 （三）添加帐号。通过编辑文件/etc/ppp/chap-secrets逐行加入；一个账号占一行。一行分4列，其表示如下： 用户名         没有字符数限制 服务器名            Pptpd—都用这个，如果用其它的名称，需要修改options.pptpd文件的name行的内容 密码                 [...]]]></description>
		<link>http://www.zhangrongcun.com/2010/06/centos_pptpd_vpn/</link>
			</item>
	<item>
		<title>Iptables 命令使用举例</title>
		<description><![CDATA[Iptables 命令使用举例 1、链的基本操作 （1） 清除所有规则 1） 清除预设表filter中所有规则链中的规则 # iptables –F 2) 清除预设表filter中使用者自定链中的规则 # iptables –X 3)将指定链中所有规则的包字节计数器清零 # iptables –Z (2)设置链的默认策略 1）先允许，再禁止 用下面的命令初始化 # iptables –P INPUT  ACCEPT # iptables –P OUTPUT  ACCEPT # iptables –P FORWARD ACCEPT 2） 先禁止，再允许 用下面的命令初始化 # iptables –P INPUT  DROP # iptables –P OUTPUT  DROP # iptables –P FORWARD DROP [...]]]></description>
		<link>http://www.zhangrongcun.com/2010/06/iptables-%e5%91%bd%e4%bb%a4%e4%bd%bf%e7%94%a8%e4%b8%be%e4%be%8b/</link>
			</item>
	<item>
		<title>Bind Multiple IP Addresses to a Single Network Interface Card IN the Centos</title>
		<description><![CDATA[Changing/Setting main ip Edit the file /etc/sysconfig/network-scripts/ifcfg-eth0 and change the value of IPADDR, NETMASK , NETWORK and BROADCAST Example ifcfg-eth0 file: DEVICE=eth0 BOOTPROTO=none BROADCAST=192.168.1.255 IPADDR=192.168.1.50 NETMASK=255.255.255.0 NETWORK=192.168.1.0 ONBOOT=yes USERCTL=no PEERDNS=no TYPE=Ethernet Description: Dont forget to restart network after the change with below command service network restart Connect again using new ip if all is well. [...]]]></description>
		<link>http://www.zhangrongcun.com/2010/06/bind-multiple-ip-addresses-to-a-single-network-interface-card-in-the-centos/</link>
			</item>
	<item>
		<title>Centos下 pptpd vpn 分别使用不同出口IP</title>
		<description><![CDATA[前期准备：使用一键安装PPTPD VPN 安装完成后，即可进相关配置，实现不用的用户名登录，使用不同的出口IP 修改/etc/ppp/chap-secrets # Secrets for authentication using CHAP # client        server        secret                  IP addresses test                  pptpd      123                         192.168.0.98 保存 在chap-secrets中，我们设定用户test使用内网ip是192.168.0.98,在下一步中，我们将设定iptables 防火墙，使192.168.0.98使用转由222.222.222.98出去 iptables -t [...]]]></description>
		<link>http://www.zhangrongcun.com/2010/06/centos%e4%b8%8b-pptpd-vpn-%e5%88%86%e5%88%ab%e4%bd%bf%e7%94%a8%e4%b8%8d%e5%90%8c%e5%87%ba%e5%8f%a3ip/</link>
			</item>
</channel>
</rss>
