<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kim Chow Blog &#187; linux</title>
	<atom:link href="http://www.jianblog.com/category/system/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jianblog.com</link>
	<description>Unix C将是我主攻的语言，现在用PHP在FreeBSD/Centos下开发。</description>
	<lastBuildDate>Fri, 23 Dec 2011 08:29:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>squid简单配置</title>
		<link>http://www.jianblog.com/2011/03/26/717/</link>
		<comments>http://www.jianblog.com/2011/03/26/717/#comments</comments>
		<pubDate>Sat, 26 Mar 2011 09:13:30 +0000</pubDate>
		<dc:creator>Kim Chow</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[操作系统]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Squid]]></category>

		<guid isPermaLink="false">http://www.jianblog.com/?p=717</guid>
		<description><![CDATA[squid是Linux下比较常用的代理服务器软件。其实，他的配置可以说挺简单的，当然也可以配置得挺复杂的。以前，我有写过相关的文章。现在只是将一些东西简化出来。 关于Squid的服务端口，将端口改为8080 http_port 8080 允许所有用户访问，只要找到http_access deny all改为http_access allow all http_access allow all 超级代理配置，即隐藏客户端的IP via off forwared_for off 用户验证 auth_param basic program /usr/lib64/squid/ncsa_auth /etc/squid/passwd auth_param basic children 5 auth_param basic realm Squid proxy-caching web server auth_param basic credentialsttl 2 hours auth_param basic casesensitive off 在http_access deny all之前加入以下代码 acl ncsa_users proxy_auth REQUIRED http_access allow ncsa_users 通过apache的htpasswd生成用户名密码 htpasswd [...]]]></description>
		<wfw:commentRss>http://www.jianblog.com/2011/03/26/717/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tokyocabinet/Tokyotyrant文档大合集</title>
		<link>http://www.jianblog.com/2010/08/29/701/</link>
		<comments>http://www.jianblog.com/2010/08/29/701/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 12:42:53 +0000</pubDate>
		<dc:creator>Kim Chow</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[操作系统]]></category>

		<guid isPermaLink="false">http://www.jianblog.com/?p=701</guid>
		<description><![CDATA[1. 前言 2. 参考资料链接 3. 使用介绍 3.1. 基本概念 3.2. Tokyo Cabinet 简介 3.3. 性能介绍 3.4. tokyotyrant和Memcached的优势比较 3.4.1. 故障转移 3.4.2. 日志文件体积小 3.4.3. 超大数据量下表现出色 3.5. 安装 3.5.1. 编译安装tokyocabinet数据库 3.5.2. 编译安装tokyotyrant 3.6. tokyotyrant的配置 3.6.1. 创建tokyotyrant数据文件存放目录 3.6.2. 启动tokyotyrant的主进程（ttserver） 3.6.3. 停止tokyotyrant（ttserver） 3.7. 调用 4. 程序架构 4.1. 流程介绍 4.1.1. 多线程 4.1.2. TokyoTyrant vs. Memcached 4.1.3. 启动流程 4.1.4. 请求处理 4.1.5. 数据结构 5. [...]]]></description>
		<wfw:commentRss>http://www.jianblog.com/2010/08/29/701/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu安装thrift以及Eclipse</title>
		<link>http://www.jianblog.com/2010/03/19/698/</link>
		<comments>http://www.jianblog.com/2010/03/19/698/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 05:20:51 +0000</pubDate>
		<dc:creator>Kim Chow</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[操作系统]]></category>
		<category><![CDATA[编程]]></category>

		<guid isPermaLink="false">http://www.jianblog.com/?p=698</guid>
		<description><![CDATA[PHP对中层间那块比较弱，Facebook开放了他们在使用的Thrift比较好地解决这个问题。当然，没有上到一个量级的时候，使用这个东西不见得有什么效果。我主要是简单地记录一下怎样安装Thrift，以及Eclipse的java开发环境。 &#60;coolcode&#62; apt-get install libboost-dev automake libtool flex bison pkg-config g++ sudo apt-get install ant ivy libslf4j-java libcommons-lang-java liblog4j1.2-java &#60;/coolcode&#62; 到官网下载 http://incubator.apache.org/thrift/ 最新的Thrift。 编译安装Thrift &#60;coolcode&#62; ./configure &#8211;prefix=/opt/thrift make make install &#60;/coolcode&#62; 配置java环境 cat /etc/profile.d/jdk.sh &#60;coolcode&#62; JAVA_HOME=/usr/lib/jvm/java-6-sun export JAVA_HOME CLASSPATH=.:/usr/share/java/ export CLASSPATH &#60;/coolcode&#62; 安装eclipse的java开发环境 &#60;coolcode&#62; sudo apt-get install eclipse-jdt &#60;/coolcode&#62;]]></description>
		<wfw:commentRss>http://www.jianblog.com/2010/03/19/698/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>centos nfs4</title>
		<link>http://www.jianblog.com/2008/12/10/539/</link>
		<comments>http://www.jianblog.com/2008/12/10/539/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 16:28:53 +0000</pubDate>
		<dc:creator>Kim Chow</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[操作系统]]></category>
		<category><![CDATA[nfsv4]]></category>

		<guid isPermaLink="false">http://www.jianblog.com/?p=539</guid>
		<description><![CDATA[http://www-theorie.physik.unizh.ch/~dpotter/howto/kerberos#nfsv4 http://www-theorie.physik.unizh.ch/~dpotter/howto/certificates 这个配置比较简单 http://www.vanemery.com/Linux/NFSv4/NFSv4-no-rpcsec.html 先收集一些资料,实现之后将相关资料汉化 现在国内做Nfsv4的人还是比较少。]]></description>
		<wfw:commentRss>http://www.jianblog.com/2008/12/10/539/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>centos软件安装</title>
		<link>http://www.jianblog.com/2008/12/04/529/</link>
		<comments>http://www.jianblog.com/2008/12/04/529/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 10:22:14 +0000</pubDate>
		<dc:creator>Kim Chow</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[操作系统]]></category>
		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">http://www.jianblog.com/?p=529</guid>
		<description><![CDATA[rpm --import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka vi /etc/yum.repos.d/utterramblings.repo [utterramblings] name=Jason's Utter Ramblings Repo baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/ enabled=1 gpgcheck=1 gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka &#160; yum install php php-mysql mysql-server php-gd php-mbstring php-pear php-pear-MDB2 php-pear-MDB2-Driver-mysql php-pecl-Fileinfo php-soap postgres ImageMagick ImageMagick-devel cachefilesd &#160; chkconfig --level 2345 iptables off chkconfig --level 2345 ip6tables off &#160; pecl install memcache &#160; libevent以及memcache默认安装 &#160; vi /etc/ld.so.conf.d/memcache.conf /usr/local/lib ldconfig &#160; &#160;memcached [...]]]></description>
		<wfw:commentRss>http://www.jianblog.com/2008/12/04/529/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>redhat as使用centos源</title>
		<link>http://www.jianblog.com/2008/11/09/505/</link>
		<comments>http://www.jianblog.com/2008/11/09/505/#comments</comments>
		<pubDate>Sun, 09 Nov 2008 01:58:05 +0000</pubDate>
		<dc:creator>Kim Chow</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[操作系统]]></category>

		<guid isPermaLink="false">http://www.jianblog.com/?p=505</guid>
		<description><![CDATA[通过 http://mirror-status.centos.org 网站查找离自己最近的镜像站点，替换下面文件中的相应地址： 1.修改 /etc/yum.repos.d/rhel-debuginfo.repo 为如下内容： [base] name=Red Hat Enterprise Linux $releasever -Base baseurl=http://mirror.be10.com/centos/5.0/os/$basearch/ gpgcheck=1 [update] name=Red Hat Enterprise Linux $releasever -Updates baseurl=http://mirror.be10.com/centos/5.0/updates/$basearch/ gpgcheck=1 [extras] name=Red Hat Enterprise Linux $releasever -Extras baseurl=http://mirror.be10.com/centos/5.0/extras/$basearch/ gpgcheck=1 [addons] name=Red Hat Enterprise Linux $releasever -Addons baseurl=http://mirror.be10.com/centos/5.0/addons/$basearch/ gpgcheck=1 2.下载并导入KEY cd /etc/pki/rpm-gpg wget http://mirror.be10.com/centos/RPM-GPG-KEY-CentOS-5 rpm &#8211;import /etc/pki/rpm-gpg/RPM-GPG-KEY*]]></description>
		<wfw:commentRss>http://www.jianblog.com/2008/11/09/505/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NFS資料</title>
		<link>http://www.jianblog.com/2008/07/11/463/</link>
		<comments>http://www.jianblog.com/2008/07/11/463/#comments</comments>
		<pubDate>Thu, 10 Jul 2008 17:06:11 +0000</pubDate>
		<dc:creator>Kim Chow</dc:creator>
				<category><![CDATA[freebsd]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[操作系统]]></category>

		<guid isPermaLink="false">http://www.jianblog.com/?p=463</guid>
		<description><![CDATA[设定最佳的NFSD的COPY数目。 linux中的NFSD的COPY数目是在/etc/rc.d/init.d/nfs这个启动文件中设置的，默认是8个NFSD,对于这个参数的设置一般是要根据可能的CLIENT数目来进行设定的，和WSIZE、RSIZE一样也是要通过测试来找到最近的数值。 UDP and TCP 可以手动进行设置，也可以自动进行选择。 mount -t nfs -o sync,tcp,noatime,rsize=1024,wsize=1024 EXPORT_MACHINE:/EXPORTED_DIR /DIR UDP有着传输速度快，非连接传输的便捷特性，但是UDP在传输上没有TCP来的稳定，当网络不稳定或者黑客入侵的时候很容易使NFS的 Performance 大幅降低甚至使网络瘫痪。所以对于不同情况的网络要有针对的选择传输协议。nfs over tcp比较稳定，nfs over udp速度较快。在机器较少网络状况较好的情况下使用UDP协议能带来较好的性能，当机器较多，网络情况复杂时推荐使用TCP协议（V2只支持UDP协议）。在局域网中使用UDP协议较好，因为局域网有比较稳定的网络保证，使用UDP可以带来更好的性能，在广域网中推荐使用TCP协议，TCP协议能让NFS在复杂的网络环境中保持最好的传输稳定性。可以参考这篇文章：http://www.hp.com.tw/ssn/unix/0212/unix021204.asp 版本的选择 V3作为默认的选择（RED HAT 8默认使用V2,SOLARIS 8以上默认使用V3），可以通过vers= mount option来进行选择。 LINUX通过mount option的nfsvers=n进行选择。 五、NFS故障解决 1、NFSD没有启动起来 首先要确认 NFS 输出列表存在，否则 nfsd 不会启动。可用 exportfs 命令来检查，如果 exportfs 命令没有结果返回或返回不正确，则需要检查 /etc/exports 文件。 2、mountd 进程没有启动 mountd 进程是一个远程过程调用 (RPC) ，其作用是对客户端要求安装（mount）文件系统的申请作出响应。mountd进程通过查找 /etc/xtab文件来获知哪些文件系统可以被远程客户端使用。另外，通过mountd进程，用户可以知道目前有哪些文件系统已被远程文件系统装配，并得知远程客户端的列表。查看mountd是否正常启动起来可以使用命令rpcinfo进行查看，在正常情况下在输出的列表中应该象这样的行： 100005 1 udp 1039 mountd 100005 [...]]]></description>
		<wfw:commentRss>http://www.jianblog.com/2008/07/11/463/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>uschedule 實現每秒執行cron</title>
		<link>http://www.jianblog.com/2008/06/14/462/</link>
		<comments>http://www.jianblog.com/2008/06/14/462/#comments</comments>
		<pubDate>Sat, 14 Jun 2008 04:30:40 +0000</pubDate>
		<dc:creator>Kim Chow</dc:creator>
				<category><![CDATA[freebsd]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[操作系统]]></category>

		<guid isPermaLink="false">http://www.jianblog.com/?p=462</guid>
		<description><![CDATA[FreeBSD安裝很簡單，只要進入 /usr/ports/sysutils/uschedule/ make install clean 就完成了相關的安裝 配置 uscheduleconf /etc/schedule-root root root 添加執行的命令行 uschedulecmd -i dosomething ~/bin/dosomething 這樣寫是執行~/bin/dosomething命令，還需要配置運行間隔 uschedule &#8211;late 1 dosomething ’*-*-* 08:00:00’ 這樣寫是每天八點的時候，每一秒運行一次dosomething ,而dosomething 在上面配置的。 如果需要一直運行的話，只要這樣寫就行了 uschedule &#8211;late 1 dosomething ’*-*-* *:*:*’ 命令配置好，之後就是啟動相關的進程 uscheduled &#38; 還有停止某進程之類的，麻煩自己看一下幫助，很簡單的。]]></description>
		<wfw:commentRss>http://www.jianblog.com/2008/06/14/462/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Apache+Tomcat虚拟主机配置</title>
		<link>http://www.jianblog.com/2008/04/19/454/</link>
		<comments>http://www.jianblog.com/2008/04/19/454/#comments</comments>
		<pubDate>Sat, 19 Apr 2008 10:45:00 +0000</pubDate>
		<dc:creator>Kim Chow</dc:creator>
				<category><![CDATA[freebsd]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[操作系统]]></category>

		<guid isPermaLink="false">http://www.jianblog.com/?p=454</guid>
		<description><![CDATA[原文：http://tomcat.apache.org/connectors-doc-archive/jk2/jk2/vhosthowto.html]]></description>
		<wfw:commentRss>http://www.jianblog.com/2008/04/19/454/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>以秒运行Crontab</title>
		<link>http://www.jianblog.com/2008/03/09/447/</link>
		<comments>http://www.jianblog.com/2008/03/09/447/#comments</comments>
		<pubDate>Sun, 09 Mar 2008 13:36:55 +0000</pubDate>
		<dc:creator>Kim Chow</dc:creator>
				<category><![CDATA[freebsd]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[操作系统]]></category>

		<guid isPermaLink="false">http://www.jianblog.com/2008/03/09/447/</guid>
		<description><![CDATA[在Liux或BSD下，Crontab可以实现以秒运行程序的。 格式如下： 1 minute 1 1,5 minutes 1 and 5 * any minute */5 any minute that is divisible by 5 1:2 second 2 of minute 1 1:2,5:10 second 2 of minute 1 and second 10 of minute 5 *:3 second 3 of any minute *:*/5 any second that is divisible by 5 只是设置分钟那里跟平时的不大一样，其他部分一样。]]></description>
		<wfw:commentRss>http://www.jianblog.com/2008/03/09/447/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

