<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://www.teamwiki.cn/lib/styles/feed.css" type="text/css"?>
<rss version="2.0">
    <channel>
        <title>TechWiki</title>
        <description></description>
        <link>http://www.teamwiki.cn/</link>
        <lastBuildDate>Fri, 03 Sep 2010 06:27:39 -0500</lastBuildDate>
        <generator>FeedCreator 1.7.2-ppt DokuWiki</generator>
        <image>
            <url>http://www.teamwiki.cn/lib/images/favicon.ico</url>
            <title>TechWiki</title>
            <link>http://www.teamwiki.cn/</link>
        </image>
        <item>
            <title>部署 Thrift</title>
            <link>http://www.teamwiki.cn/hadoop/thrift</link>
            <description>1. 下载 Thrift
wget http://labs.renren.com/apache-mirror//incubator/thrift/0.4.0-incubating/thrift-0.4.0.tar.gz 
2. 编译安装 Thrift
./configure –prefix=/usr/local/thrift
make
sudo make install
# 我装在 /usr/local/thrift， 你可以装在其他目录 
3. 编译 Thrift PHP 扩展
cd /usr/local/thrift/lib/php/src/ext/thrift_protocol
phpize
./configure --enable-thrift_protocol
# 如果你的 PHP 没有安装到默认位置，则应该添加 --with-php-config=/(PHP 的 bin 目录)/php-con…</description>
            <author>zhaochang</author>
            <category>hadoop</category>
            <pubDate>Tue, 31 Aug 2010 02:55:47 -0500</pubDate>
        </item>
        <item>
            <title>过滤重复数组 - 创建</title>
            <link>http://www.teamwiki.cn/php/%E8%BF%87%E6%BB%A4%E9%87%8D%E5%A4%8D%E6%95%B0%E7%BB%84</link>
            <description>&lt;?php

$list = array(
0 =&gt; array('title'=&gt;'标题1', 'url'=&gt;'url 1'),
1 =&gt; array('title'=&gt;'标题2', 'url'=&gt;'url 2'),
2 =&gt; array('title'=&gt;'标题4', 'url'=&gt;'url 3'),
3 =&gt; array('title'=&gt;'标题2', 'url'=&gt;'url 4'),
4 =&gt; array('title'=&gt;'标题4', 'url'=&gt;'url 5'),
5 =&gt; array('title'=&gt;'标题3', 'url'=&gt;'url 6'),
6 =&gt; array('title'=&gt;'标题4', 'url'=&gt;'url 7'),

);

echo &quot;&lt;pre&gt;&quot;;
print_r($list);
echo &quot;&lt;/pre&gt;&quot;;

$array_len =  count($list);
for($i=0; $i &lt; $array_len; $i++) {
	for($j=0; $j &lt; $i; $j++ ) {…</description>
            <author>kenvin</author>
            <category>php</category>
            <pubDate>Sun, 29 Aug 2010 05:11:44 -0500</pubDate>
        </item>
        <item>
            <title>开源项目研究</title>
            <link>http://www.teamwiki.cn/php/start</link>
            <description>php目录 

	*  解析XML
	*  section 使用
	*  php常用函数
	*  常见问题
	*  研究目的和目标
	*  实例
	*  用PHP备份mysql数据库的方法
	*  Discuz研究
	*  mysql导数据
	*  标题 H1  PHP Webservice 
	*  php解压zip
	*  pear::Cache Lite
	*  Memcach实现session
	*  CodeIgniter 非常好的PHP框架
	*  PHP兼容 不同PHP环境下的处理
	*  XMLRPC介绍
	*  安装PHP
	*  RSS类
	*  gbk编码下中文JSON的解决方案
	*  中文十六进制-ASCII
	*  Snoopy   php w…</description>
            <author>kenvin</author>
            <category>php</category>
            <pubDate>Sun, 29 Aug 2010 05:11:17 -0500</pubDate>
        </item>
        <item>
            <title>centos php运行环境</title>
            <link>http://www.teamwiki.cn/linux/centos_php%E8%BF%90%E8%A1%8C%E7%8E%AF%E5%A2%83</link>
            <description>download

	*  nginx: &lt;http://nginx.org/en/download.html&gt;
	*  mysql:  mysql-5.1.36-linux-i686-glibc23.tar.gz 
	*  php: &lt;http://cn.php.net/downloads.php&gt;
	*  eaccelerator: &lt;http://www.eaccelerator.net/&gt;
	*  spawn-fcgi: &lt;http://redmine.lighttpd.net/projects/spawn-fcgi/news&gt;</description>
            <author>kenvin</author>
            <category>linux</category>
            <pubDate>Sat, 28 Aug 2010 08:07:07 -0500</pubDate>
        </item>
        <item>
            <title>FreeBSD上Enter full pathname of shell or RETURN for /bin/sh 问题的解决 - 创建</title>
            <link>http://www.teamwiki.cn/linux/freebsd%E4%B8%8Aenter_full_pathname_of_shell_or_return</link>
            <description>系统启动不了


mounting root from ufs:/dev/ad0s1a
/etc/rc.conf: 16:Syntax error:Unterminated quoted string
Enter full pathname of shell or RETURN for /bin/sh:


出现这个提示后就不继续启动了.然后我按ENTER后出现 #  

 解决方法：</description>
            <author>徐浩友</author>
            <category>linux</category>
            <pubDate>Thu, 26 Aug 2010 20:58:01 -0500</pubDate>
        </item>
        <item>
            <title>目录</title>
            <link>http://www.teamwiki.cn/linux/start</link>
            <description>目录

 安装php和系统运行环境

	*  centos php运行环境
	*  centos php pache mysql环境配置流程   使用yum方式安装apache和php 1)php的版本只有5.1  2)apache指定主目录会提示目录不存在，无访问权限
	*  redhat_php_nginx_mysql配置流程 spawn-fcgi下载地址、php fastcgi方式的configure参数
	*  CentOS yum-fastestmirror镜像安装方法、更改yum源至php5.2.6
	*  Nginx nginx、spawn-fcgi 配置安装方法以及常见脚本
	*  apache 2 mysql源…</description>
            <author>徐浩友</author>
            <category>linux</category>
            <pubDate>Thu, 26 Aug 2010 20:56:19 -0500</pubDate>
        </item>
        <item>
            <title>Hadoop Map Reduce</title>
            <link>http://www.teamwiki.cn/hadoop/map_reduce</link>
            <description>　　使用 PHP 语言创建一个 Hadoop Map/Reduce 例子。 

1. 部署 Hadoop

 　　参考：&lt;http://www.teamwiki.cn/hadoop&gt;

2. 编写 PHP 代码

 　　mapper.php
#!/usr/bin/php
&lt;?
$word2count = array();
// input comes from STDIN (standard input)
while (($line = fgets(STDIN)) !== false) {
	// remove leading and trailing whitespace and lowercase
	$line = strtolower(trim($line));
	// split the line into words while removing any empty string
	$words = preg_split('/\W/', $line, 0, PREG_SPL…</description>
            <author>zhaochang</author>
            <category>hadoop</category>
            <pubDate>Wed, 25 Aug 2010 01:26:35 -0500</pubDate>
        </item>
        <item>
            <title>hadoop:map_reducer - 创建</title>
            <link>http://www.teamwiki.cn/hadoop/map_reducer</link>
            <description>　　使用 PHP 语言创建一个 Hadoop Map/Reduce 例子。</description>
            <author>zhaochang</author>
            <category>hadoop</category>
            <pubDate>Wed, 25 Aug 2010 01:02:46 -0500</pubDate>
        </item>
        <item>
            <title>ssh_exchange_identification: Connection closed by remote host</title>
            <link>http://www.teamwiki.cn/linux/ssh</link>
            <description>解决方法：主要是 /etc/hosts.allow 和 /etc/hosts.deny 问题 最好两个都设置一下。

因为有些系统是先 load hosts.allow 再 load hosts.allow .有些相反。

hosts.allow:
ALL:ALL:allow sshd sshd1 sshd2:ALL:allow #ssh:0.0.0.0/0.0.0.0 sshd:192.168.1.:allow hosts.deny sshd[2760]:
# you should know that NFS uses portmap!
ALL:ALL EXCEPT 127.0.0.1:DENY to ALL:ALL EXCEPT 127.0.0.1 AND 192.168.1.111:DENY
 另一个最简单的方法就是在 hosts.allow 中添加</description>
            <author>zhaochang</author>
            <category>linux</category>
            <pubDate>Tue, 24 Aug 2010 22:01:36 -0500</pubDate>
        </item>
        <item>
            <title>部署 Hadoop</title>
            <link>http://www.teamwiki.cn/hadoop</link>
            <description>　　Hadoop 是 Google MapReduce 的一个 Java 实现。MapReduce 是一种简化的分布式编程模式，让程序自动分布到一个由普通机器组成的超大集群上并发执行。就如同 java 程序员可以不考虑内存泄露一样， MapReduce 的 run-time 系统会解决输入数据的分布细节，跨越机器集群的程序执行调度，处理机器的失效，并且管理机器之间的通讯请求。这样的模式允许程序员可以不需要有什么并发处理或…</description>
            <author>zhaochang</author>
            <pubDate>Mon, 23 Aug 2010 23:35:38 -0500</pubDate>
        </item>
        <item>
            <title>Linux性能</title>
            <link>http://www.teamwiki.cn/linux/%E6%80%A7%E8%83%BD</link>
            <description>yum -y install sysstat

	*  用vmstat监视内存使用情况  :  vmstat 2  20 
	*  用iostat监视I/O子系统情况 : iostat -x 1  # %util显示IO情况

vmstat


　　Procs
　　r: 等待运行的进程数 b: 处在非中断睡眠状态的进程数 w: 被交换出去的可运行的进程数。此数由 linux 计算得出，但 linux 并不耗尽交换空间
　　Memory
　　swpd: 虚拟内存使用情况，单位：KB
　　free: 空闲的内存，单位KB
　　buff: 被用来做为缓…</description>
            <author>kenvin</author>
            <category>linux</category>
            <pubDate>Mon, 23 Aug 2010 06:02:30 -0500</pubDate>
        </item>
        <item>
            <title>搜索引擎研究</title>
            <link>http://www.teamwiki.cn/search/start</link>
            <description>目录

	*  安装
	*  solr
	*  Coreseek
	*  Larbin 爬虫程序
	*  Zend Search Lucene
	*  参考项目

	*  字符串相似性

 * &lt;http://www.lucene.com.cn/php.htm&gt; php中调用java</description>
            <author>zhaochang</author>
            <category>search</category>
            <pubDate>Fri, 13 Aug 2010 04:09:14 -0500</pubDate>
        </item>
        <item>
            <title>search:coreseek</title>
            <link>http://www.teamwiki.cn/search/coreseek</link>
            <description>　　先给 Coreseek 做个广告，因为挺好用。Coreseek 以 GPL V2 协议开源发布，用户可以免费使用；同时针对有实际需要的客户，也提供商业化的技术支持服务。

　　Sphinx 是由俄罗斯人 Andrew Aksyonoff 开发的高性能全文搜索软件包。coreseek 为 Sphinx 贡献了：</description>
            <author>zhaochang</author>
            <category>search</category>
            <pubDate>Fri, 13 Aug 2010 04:08:11 -0500</pubDate>
        </item>
    </channel>
</rss>
