<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feed.feedsky.com/styles/feedsky2.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:content="http://purl.org/rss/1.0/modules/content/" 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/jianzhou" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feed.feedsky.com/jianzhou" type="application/rss+xml"></fs:self_link><lastBuildDate>Wed, 02 May 2012 23:01:26 GMT</lastBuildDate><title>Jian Zhou</title><description>挑战生命，挑战技术。</description><image><url>http://www.feedsky.com/feed/jianzhou/sc/gif</url><title>Jian Zhou</title><link>http://tiaozhanshu.com</link></image><link>http://tiaozhanshu.com</link><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>1</sy:updateFrequency><language>en</language><pubDate>Wed, 02 May 2012 23:01:26 GMT</pubDate><item><title>PHP后台运行</title><link>http://item.feedsky.com/~feedsky/jianzhou/~8679038/633923327/6935242/1/item.html</link><content:encoded>&lt;p&gt;在很多时候，我们需要通过用户或其他方式触发php脚本的运行，而php执行的是批量任务或者是很耗时间的操作，这样我们就想客户端断开连接，而php的代码照样执行，起到异步操作的效果。&lt;/p&gt;&lt;p&gt;下面这段代码，可以使用header(&amp;#8220;Connection: close&amp;#8221;)，使浏览器关闭连接[......]&lt;p class='read-more'&gt;&lt;a href='http://tiaozhanshu.com/design/php/php-background-processes/' onClick=&quot;_gaq.push(['_trackEvent','internal','http://tiaozhanshu.com/design/php/php-background-processes/','content']);&quot;&gt;more&amp;#8230;&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/633923327/jianzhou/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/jianzhou/~8679038/633923327/6935242/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><slash:comments>0</slash:comments><description>在很多时候，我们需要通过用户或其他方式触发php脚本的运行，而php执行的是批量任务或者是很耗时间的操作，这样我们就想客户端断开连接，而php的代码照样执行，起到异步操作的效果。下面这段代码，可以使用header(&quot;Connection: close&quot;)，使浏览器关闭连接[......]&lt;p class='read-more'&gt;&lt;a href='http://tiaozhanshu.com/design/php/php-background-processes/'&gt;more...&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/633923327/jianzhou/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/jianzhou/~8679038/633923327/6935242/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>PHP</category><pubDate>Thu, 03 May 2012 07:01:26 +0800</pubDate><author>Jian Zhou</author><comments>http://tiaozhanshu.com/design/php/php-background-processes/#comments</comments><guid isPermaLink="false">http://tiaozhanshu.com/?p=41540</guid><dc:creator>Jian Zhou</dc:creator><fs:srclink>http://tiaozhanshu.com/design/php/php-background-processes/</fs:srclink><fs:srcfeed>http://feed.tiaozhanshu.net/</fs:srcfeed><fs:itemid>feedsky/jianzhou/~8679038/633923327/6935242</fs:itemid></item><item><title>Go语言单元测试</title><link>http://item.feedsky.com/~feedsky/jianzhou/~8679038/633008958/6935242/1/item.html</link><content:encoded>&lt;p&gt;Go语言似乎是个偏执狂，牺牲了不必要的灵活性，带来一些强制的编程风格和约定。比如：&lt;/p&gt;&lt;ol&gt;&lt;li&gt;无任何形式的Makefile，模块就是目录、包就是目录、编译配制就是目录！&lt;/li&gt;&lt;li&gt;不光目录被用上了，文件名还能指定用途。文件名后缀为_test.go的都是单元测试文件，_linux32.go[......]&lt;/li&gt;&lt;/ol&gt;&lt;p class='read-more'&gt;&lt;a href='http://tiaozhanshu.com/computer/golang/go-unit-test/' onClick=&quot;_gaq.push(['_trackEvent','internal','http://tiaozhanshu.com/computer/golang/go-unit-test/','content']);&quot;&gt;more&amp;#8230;&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/633008958/jianzhou/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/jianzhou/~8679038/633008958/6935242/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><slash:comments>0</slash:comments><description>Go语言似乎是个偏执狂，牺牲了不必要的灵活性，带来一些强制的编程风格和约定。比如：&lt;ol&gt;&lt;li&gt;无任何形式的Makefile，模块就是目录、包就是目录、编译配制就是目录！&lt;/li&gt;&lt;li&gt;不光目录被用上了，文件名还能指定用途。文件名后缀为_test.go的都是单元测试文件，_linux32.go[......]&lt;/li&gt;&lt;/ol&gt;&lt;p class='read-more'&gt;&lt;a href='http://tiaozhanshu.com/computer/golang/go-unit-test/'&gt;more...&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/633008958/jianzhou/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/jianzhou/~8679038/633008958/6935242/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Golang</category><pubDate>Mon, 30 Apr 2012 08:17:21 +0800</pubDate><author>Jian Zhou</author><comments>http://tiaozhanshu.com/computer/golang/go-unit-test/#comments</comments><guid isPermaLink="false">http://tiaozhanshu.com/?p=41530</guid><dc:creator>Jian Zhou</dc:creator><fs:srclink>http://tiaozhanshu.com/computer/golang/go-unit-test/</fs:srclink><fs:srcfeed>http://feed.tiaozhanshu.net/</fs:srcfeed><fs:itemid>feedsky/jianzhou/~8679038/633008958/6935242</fs:itemid></item><item><title>LaTeX生成PDF标签</title><link>http://item.feedsky.com/~feedsky/jianzhou/~8679038/632389329/6935242/1/item.html</link><content:encoded>&lt;p&gt;\usepackage[pdftex,bookmarks=true]{hyperref}&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/632389329/jianzhou/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/jianzhou/~8679038/632389329/6935242/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><slash:comments>0</slash:comments><description>\usepackage[pdftex,bookmarks=true]{hyperref}&lt;img src=&quot;http://www1.feedsky.com/t1/632389329/jianzhou/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/jianzhou/~8679038/632389329/6935242/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Latex</category><pubDate>Tue, 24 Apr 2012 11:43:10 +0800</pubDate><author>Jian Zhou</author><comments>http://tiaozhanshu.com/latex/latex-pdf-bookmarks/#comments</comments><guid isPermaLink="false">http://tiaozhanshu.com/?p=41517</guid><dc:creator>Jian Zhou</dc:creator><fs:srclink>http://tiaozhanshu.com/latex/latex-pdf-bookmarks/</fs:srclink><fs:srcfeed>http://feed.tiaozhanshu.net/</fs:srcfeed><fs:itemid>feedsky/jianzhou/~8679038/632389329/6935242</fs:itemid></item><item><title>Latex章节编号</title><link>http://item.feedsky.com/~feedsky/jianzhou/~8679038/632389330/6935242/1/item.html</link><content:encoded>&lt;p&gt;更改章节编号的格式：&lt;br /&gt; \renewcommand\thesection{\arabic{section}.}&lt;br /&gt; \renewcommand\thesection{\arabic{section}.~}&lt;br /&gt; \renewcommand\thesection{\arabic{sect[......]&lt;p class='read-more'&gt;&lt;a href='http://tiaozhanshu.com/latex/latex-section-counter/' onClick=&quot;_gaq.push(['_trackEvent','internal','http://tiaozhanshu.com/latex/latex-section-counter/','content']);&quot;&gt;more&amp;#8230;&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/632389330/jianzhou/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/jianzhou/~8679038/632389330/6935242/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><slash:comments>0</slash:comments><description>更改章节编号的格式：
\renewcommand\thesection{\arabic{section}.}
\renewcommand\thesection{\arabic{section}.~}
\renewcommand\thesection{\arabic{sect[......]&lt;p class='read-more'&gt;&lt;a href='http://tiaozhanshu.com/latex/latex-section-counter/'&gt;more...&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/632389330/jianzhou/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/jianzhou/~8679038/632389330/6935242/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Latex</category><pubDate>Tue, 24 Apr 2012 11:40:02 +0800</pubDate><author>Jian Zhou</author><comments>http://tiaozhanshu.com/latex/latex-section-counter/#comments</comments><guid isPermaLink="false">http://tiaozhanshu.com/?p=41513</guid><dc:creator>Jian Zhou</dc:creator><fs:srclink>http://tiaozhanshu.com/latex/latex-section-counter/</fs:srclink><fs:srcfeed>http://feed.tiaozhanshu.net/</fs:srcfeed><fs:itemid>feedsky/jianzhou/~8679038/632389330/6935242</fs:itemid></item><item><title>Latex生成章节目录列表</title><link>http://item.feedsky.com/~feedsky/jianzhou/~8679038/632389331/6935242/1/item.html</link><content:encoded>&lt;p&gt;（1）在\begin{document}后面加入命令\tableofcontents。执行latex.exe将自动产生myfile.toc文件，该文件是文本格式，可以编辑，当然多数情况下无需编辑。&lt;/p&gt;&lt;p&gt;（2）每次加入新的章节需要运行两次latex.exe才能更新目录。&lt;/p&gt;&lt;p&gt;（[......]&lt;p class='read-more'&gt;&lt;a href='http://tiaozhanshu.com/latex/latex-table-of-contents/' onClick=&quot;_gaq.push(['_trackEvent','internal','http://tiaozhanshu.com/latex/latex-table-of-contents/','content']);&quot;&gt;more&amp;#8230;&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/632389331/jianzhou/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/jianzhou/~8679038/632389331/6935242/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><slash:comments>0</slash:comments><description>（1）在\begin{document}后面加入命令\tableofcontents。执行latex.exe将自动产生myfile.toc文件，该文件是文本格式，可以编辑，当然多数情况下无需编辑。（2）每次加入新的章节需要运行两次latex.exe才能更新目录。（[......]&lt;p class='read-more'&gt;&lt;a href='http://tiaozhanshu.com/latex/latex-table-of-contents/'&gt;more...&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/632389331/jianzhou/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/jianzhou/~8679038/632389331/6935242/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Latex</category><pubDate>Tue, 24 Apr 2012 11:33:13 +0800</pubDate><author>Jian Zhou</author><comments>http://tiaozhanshu.com/latex/latex-table-of-contents/#comments</comments><guid isPermaLink="false">http://tiaozhanshu.com/?p=41510</guid><dc:creator>Jian Zhou</dc:creator><fs:srclink>http://tiaozhanshu.com/latex/latex-table-of-contents/</fs:srclink><fs:srcfeed>http://feed.tiaozhanshu.net/</fs:srcfeed><fs:itemid>feedsky/jianzhou/~8679038/632389331/6935242</fs:itemid></item><item><title>A Sock 5 Proxy Server Written in Golang</title><link>http://item.feedsky.com/~feedsky/jianzhou/~8679038/632389332/6935242/1/item.html</link><content:encoded>&lt;p&gt;I&amp;#8217;ve written a &lt;a href=&quot;http://tiaozhanshu.com/computer/software/socks5/&quot; target=&quot;_blank&quot; onClick=&quot;_gaq.push(['_trackEvent','internal','http://tiaozhanshu.com/computer/software/socks5/','content']);&quot;&gt;sock 5&lt;/a&gt; proxy server in golang. The code is very ugly. However, it works!&lt;/p&gt;&lt;p&gt;I am still not very familiar with golang. Wheneve[......]&lt;p class='read-more'&gt;&lt;a href='http://tiaozhanshu.com/computer/golang/sock-5-proxy-in-golang/' onClick=&quot;_gaq.push(['_trackEvent','internal','http://tiaozhanshu.com/computer/golang/sock-5-proxy-in-golang/','content']);&quot;&gt;more&amp;#8230;&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/632389332/jianzhou/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/jianzhou/~8679038/632389332/6935242/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><slash:comments>2</slash:comments><description>I've written a &lt;a href=&quot;http://tiaozhanshu.com/computer/software/socks5/&quot; target=&quot;_blank&quot;&gt;sock 5&lt;/a&gt; proxy server in golang. The code is very ugly. However, it works!I am still not very familiar with golang. Wheneve[......]&lt;p class='read-more'&gt;&lt;a href='http://tiaozhanshu.com/computer/golang/sock-5-proxy-in-golang/'&gt;more...&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/632389332/jianzhou/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/jianzhou/~8679038/632389332/6935242/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Golang</category><pubDate>Sun, 22 Apr 2012 10:32:50 +0800</pubDate><author>Jian Zhou</author><comments>http://tiaozhanshu.com/computer/golang/sock-5-proxy-in-golang/#comments</comments><guid isPermaLink="false">http://tiaozhanshu.com/?p=41504</guid><dc:creator>Jian Zhou</dc:creator><fs:srclink>http://tiaozhanshu.com/computer/golang/sock-5-proxy-in-golang/</fs:srclink><fs:srcfeed>http://feed.tiaozhanshu.net/</fs:srcfeed><fs:itemid>feedsky/jianzhou/~8679038/632389332/6935242</fs:itemid></item><item><title>Shell批量执行ssh远程命令</title><link>http://item.feedsky.com/~feedsky/jianzhou/~8679038/632389333/6935242/1/item.html</link><content:encoded>&lt;p&gt;通过SSH执行远程命令参考&lt;a href=&quot;http://tiaozhanshu.com/computer/linux/ssh-cmd/&quot; target=&quot;_blank&quot; onClick=&quot;_gaq.push(['_trackEvent','internal','http://tiaozhanshu.com/computer/linux/ssh-cmd/','content']);&quot;&gt;这里&lt;/a&gt;，通过shell逐行读取文件参考&lt;a href=&quot;http://tiaozhanshu.com/computer/linux/shell-read-line/&quot; target=&quot;_blank&quot; onClick=&quot;_gaq.push(['_trackEvent','internal','http://tiaozhanshu.com/computer/linux/shell-read-line/','content']);&quot;&gt;这里&lt;/a&gt;，shell的参数用法在&lt;a href=&quot;http://tiaozhanshu.com/computer/linux/shell-args/&quot; target=&quot;_blank&quot; onClick=&quot;_gaq.push(['_trackEvent','internal','http://tiaozhanshu.com/computer/linux/shell-args/','content']);&quot;&gt;这里&lt;/a&gt;。&lt;/p&gt;&lt;p&gt;这样一键批量执行远程命令的脚本为：&lt;/p&gt;&lt;div class=&quot;codecolorer-container text dawn&quot; style=&quot;overflow:auto;white-space:nowrap;width:100%;&quot;&gt;&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;line-numbers&quot;&gt;&lt;div&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;div class=&quot;text codecolorer&quot;&gt;for slave in $(cat ~/slaves)&lt;br /&gt; do&lt;br /&gt; echo $slave&lt;br /&gt; ssh $slave $*&lt;br /&gt; done&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;脚本另存为a，则，运行a ls&lt;br /&gt; 则在所有slaves上运行一次ls命令。&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/632389333/jianzhou/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/jianzhou/~8679038/632389333/6935242/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><slash:comments>0</slash:comments><description>通过SSH执行远程命令参考&lt;a href=&quot;http://tiaozhanshu.com/computer/linux/ssh-cmd/&quot; target=&quot;_blank&quot;&gt;这里&lt;/a&gt;，通过shell逐行读取文件参考&lt;a href=&quot;http://tiaozhanshu.com/computer/linux/shell-read-line/&quot; target=&quot;_blank&quot;&gt;这里&lt;/a&gt;，shell的参数用法在&lt;a href=&quot;http://tiaozhanshu.com/computer/linux/shell-args/&quot; target=&quot;_blank&quot;&gt;这里&lt;/a&gt;。这样一键批量执行远程命令的脚本为：&lt;code lang=&quot;text&quot;&gt; for slave in $(cat ~/slaves)
do
echo $slave
ssh $slave $*
don[......]&lt;/code&gt;&lt;p class='read-more'&gt;&lt;a href='http://tiaozhanshu.com/computer/linux/shell-remote-ssh-cmd/'&gt;more...&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/632389333/jianzhou/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/jianzhou/~8679038/632389333/6935242/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Linux</category><pubDate>Sat, 21 Apr 2012 07:33:18 +0800</pubDate><author>Jian Zhou</author><comments>http://tiaozhanshu.com/computer/linux/shell-remote-ssh-cmd/#comments</comments><guid isPermaLink="false">http://tiaozhanshu.com/?p=41499</guid><dc:creator>Jian Zhou</dc:creator><fs:srclink>http://tiaozhanshu.com/computer/linux/shell-remote-ssh-cmd/</fs:srclink><fs:srcfeed>http://feed.tiaozhanshu.net/</fs:srcfeed><fs:itemid>feedsky/jianzhou/~8679038/632389333/6935242</fs:itemid></item><item><title>Linux shell参数</title><link>http://item.feedsky.com/~feedsky/jianzhou/~8679038/632389334/6935242/1/item.html</link><content:encoded>&lt;p&gt;在shell编程时.可以使用参数。Shell有位置参数和内部参数&lt;br /&gt; 1、 位置参数&lt;br /&gt; 由系统提供的参数称为位置参数。位置参数的值可以用$N得到，N是一个数字，如果为1，即$1.类似C语言中的数组，Linux会把输入的命令字符串分段并给每段进行标号，标号从0开始。第0号为程序名字，[......]&lt;p class='read-more'&gt;&lt;a href='http://tiaozhanshu.com/computer/linux/shell-args/' onClick=&quot;_gaq.push(['_trackEvent','internal','http://tiaozhanshu.com/computer/linux/shell-args/','content']);&quot;&gt;more&amp;#8230;&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/632389334/jianzhou/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/jianzhou/~8679038/632389334/6935242/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><slash:comments>0</slash:comments><description>在shell编程时.可以使用参数。Shell有位置参数和内部参数
1、 位置参数
由系统提供的参数称为位置参数。位置参数的值可以用$N得到，N是一个数字，如果为1，即$1.类似C语言中的数组，Linux会把输入的命令字符串分段并给每段进行标号，标号从0开始。第0号为程序名字，[......]&lt;p class='read-more'&gt;&lt;a href='http://tiaozhanshu.com/computer/linux/shell-args/'&gt;more...&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/632389334/jianzhou/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/jianzhou/~8679038/632389334/6935242/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Linux</category><pubDate>Sat, 21 Apr 2012 07:25:27 +0800</pubDate><author>Jian Zhou</author><comments>http://tiaozhanshu.com/computer/linux/shell-args/#comments</comments><guid isPermaLink="false">http://tiaozhanshu.com/?p=41496</guid><dc:creator>Jian Zhou</dc:creator><fs:srclink>http://tiaozhanshu.com/computer/linux/shell-args/</fs:srclink><fs:srcfeed>http://feed.tiaozhanshu.net/</fs:srcfeed><fs:itemid>feedsky/jianzhou/~8679038/632389334/6935242</fs:itemid></item><item><title>方便使用hadoop一些脚本</title><link>http://item.feedsky.com/~feedsky/jianzhou/~8679038/632389335/6935242/1/item.html</link><content:encoded>&lt;p&gt;实验中为了方便在不同版本hadoop间切换，为了一键清空还原所有hadoop设置，弄了些脚本。傻瓜脚本。。。&lt;/p&gt;&lt;h2&gt;一、环境变量&lt;/h2&gt;&lt;div class=&quot;codecolorer-container text dawn&quot; style=&quot;overflow:auto;white-space:nowrap;width:100%;&quot;&gt;&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;line-numbers&quot;&gt;&lt;div&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;4&lt;br /&gt;5&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;div class=&quot;text codecolorer&quot;&gt;# .bash_profile&lt;br /&gt; &lt;br /&gt; export HADOOP_HOME=~/hadoop&lt;br /&gt; export PATH=$PATH:$HADOOP_HOME/bin&lt;br /&gt; export HADOOP_HOME_WARN_SUPPRESS='TRUE'&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h2&gt;二、切换hadoop并更新配置&lt;/h2&gt;&lt;div class=&quot;codecolorer-container text dawn&quot; style=&quot;overflow:auto;white-space:nowrap;width:100%;&quot;&gt;&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class=&quot;line-numbers&quot;&gt;&lt;div&gt;1&lt;br /&gt;2&lt;br /&gt;3&lt;br /&gt;&lt;/div&gt;&lt;/td&gt;&lt;td&gt;&lt;div class=&quot;text codecolorer&quot;&gt;rm ~/hadoop;&lt;br /&gt; ln -s $1 ~/hadoop;&lt;br /&gt; cp ~/jan/conf/* ~/hadoop/conf;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h2&gt;三、一键删[......]&lt;/h2&gt;&lt;p class='read-more'&gt;&lt;a href='http://tiaozhanshu.com/computer/hadoop/shell-for-hadoop/' onClick=&quot;_gaq.push(['_trackEvent','internal','http://tiaozhanshu.com/computer/hadoop/shell-for-hadoop/','content']);&quot;&gt;more&amp;#8230;&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/632389335/jianzhou/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/jianzhou/~8679038/632389335/6935242/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><slash:comments>0</slash:comments><description>实验中为了方便在不同版本hadoop间切换，为了一键清空还原所有hadoop设置，弄了些脚本。傻瓜脚本。。。&lt;h2&gt;一、环境变量&lt;/h2&gt;&lt;code lang=&quot;text&quot;&gt; # .bash_profileexport HADOOP_HOME=~/hadoop
export PATH=$PATH:$HAD[......]&lt;/code&gt;&lt;p class='read-more'&gt;&lt;a href='http://tiaozhanshu.com/computer/hadoop/shell-for-hadoop/'&gt;more...&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/632389335/jianzhou/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/jianzhou/~8679038/632389335/6935242/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Hadoop</category><pubDate>Wed, 18 Apr 2012 05:09:38 +0800</pubDate><author>Jian Zhou</author><comments>http://tiaozhanshu.com/computer/hadoop/shell-for-hadoop/#comments</comments><guid isPermaLink="false">http://tiaozhanshu.com/?p=41491</guid><dc:creator>Jian Zhou</dc:creator><fs:srclink>http://tiaozhanshu.com/computer/hadoop/shell-for-hadoop/</fs:srclink><fs:srcfeed>http://feed.tiaozhanshu.net/</fs:srcfeed><fs:itemid>feedsky/jianzhou/~8679038/632389335/6935242</fs:itemid></item><item><title>HADOOP占用端口</title><link>http://item.feedsky.com/~feedsky/jianzhou/~8679038/632389336/6935242/1/item.html</link><content:encoded>&lt;p&gt;与HDFS有关的地址及端口属性&lt;/p&gt;&lt;p&gt;fs.default.name&lt;/p&gt;&lt;p&gt; 位置：conf/core-site.xml&lt;br /&gt; 必须项：是&lt;br /&gt; 常用值：hdfs:// [域名或IP地址] :9000&lt;br /&gt; 说明：NameNode 主服务器的地址[......]&lt;p class='read-more'&gt;&lt;a href='http://tiaozhanshu.com/computer/hadoop/hadoop-ports/' onClick=&quot;_gaq.push(['_trackEvent','internal','http://tiaozhanshu.com/computer/hadoop/hadoop-ports/','content']);&quot;&gt;more&amp;#8230;&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/632389336/jianzhou/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/jianzhou/~8679038/632389336/6935242/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</content:encoded><slash:comments>0</slash:comments><description>与HDFS有关的地址及端口属性fs.default.name位置：conf/core-site.xml
必须项：是
常用值：hdfs:// [域名或IP地址] :9000
说明：NameNode 主服务器的地址[......]&lt;p class='read-more'&gt;&lt;a href='http://tiaozhanshu.com/computer/hadoop/hadoop-ports/'&gt;more...&lt;/a&gt;&lt;/p&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/632389336/jianzhou/feedsky/s.gif?r=http://item.feedsky.com/~feedsky/jianzhou/~8679038/632389336/6935242/1/item.html&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><category>Hadoop</category><pubDate>Wed, 18 Apr 2012 02:53:03 +0800</pubDate><author>Jian Zhou</author><comments>http://tiaozhanshu.com/computer/hadoop/hadoop-ports/#comments</comments><guid isPermaLink="false">http://tiaozhanshu.com/?p=41493</guid><dc:creator>Jian Zhou</dc:creator><fs:srclink>http://tiaozhanshu.com/computer/hadoop/hadoop-ports/</fs:srclink><fs:srcfeed>http://feed.tiaozhanshu.net/</fs:srcfeed><fs:itemid>feedsky/jianzhou/~8679038/632389336/6935242</fs:itemid></item></channel></rss>
