<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[张宴的博客]]></title> 
<link>http://zyan.cc/index.php</link> 
<description><![CDATA[Web系统架构与底层研发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[张宴的博客]]></copyright>
<item>
<link>http://zyan.cc/post/371/</link>
<title><![CDATA[通过浏览器从SVN更新代码到Linux服务器的指定目录[原创]]]></title> 
<author>张宴 &lt;net@s135.com&gt;</author>
<category><![CDATA[其他Unix技术]]></category>
<pubDate>Mon, 06 Oct 2008 11:06:59 +0000</pubDate> 
<guid>http://zyan.cc/post/371/</guid> 
<description>
<![CDATA[ 
	　　[文章作者：张宴 本文版本：v1.0 最后修改：2008.10.06 转载请注明原文链接：<a href="http://blog.zyan.cc/read.php/371.htm" target="_blank">http://blog.zyan.cc/read.php/371.htm</a>]<br/><br/>　　今天花几分钟写的一个PHP小程序，用途是：无需给程序员开放服务器SSH帐号，只需通过Web浏览器即可从SVN版本库更新代码到Linux服务器的指定目录。如果有需要，可以给这段代码加个密码登录。<br/><br/>　　1、假设www、www是Apache或Nginx服务器的用户名和组，/data0/www/是网页文件存放根目录，执行以下shell命令：<br/><div style="border-left: 0px dashed #D6C094; margin: 5px; padding: 3px; margin-bottom:0px; border: 1px dashed #00a0c6; background-color: #ffffff;">sudo -s<br/>/usr/sbin/groupadd www -g 48<br/>/usr/sbin/useradd -u 48 -g www www<br/>mkdir -p /data0/www/<br/>chown -R www:www /data0/www/<br/>su www<br/>cd /data0/www/<br/>/usr/local/bin/svn checkout --username zhangyan --password 123456 <a href="http://xxx.xxx.xxx.xxx:8080/svn/web/trunk/" target="_blank">http://xxx.xxx.xxx.xxx:8080/svn/web/trunk/</a></div><br/><br/>　　2、创建文件svn_up.php：<br/>............<br/><br/>Tags - <a href="http://zyan.cc/tags/linux/" rel="tag">linux</a> , <a href="http://zyan.cc/tags/php/" rel="tag">php</a> , <a href="http://zyan.cc/tags/svn/" rel="tag">svn</a>
]]>
</description>
</item><item>
<link>http://zyan.cc/post/371/#blogcomment1616</link>
<title><![CDATA[[评论] 通过浏览器从SVN更新代码到Linux服务器的指定目录[原创]]]></title> 
<author>xi2008wang &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Mon, 06 Oct 2008 15:45:18 +0000</pubDate> 
<guid>http://zyan.cc/post/371/#blogcomment1616</guid> 
<description>
<![CDATA[ 
	沙发, 这次看懂了
]]>
</description>
</item><item>
<link>http://zyan.cc/post/371/#blogcomment1620</link>
<title><![CDATA[[评论] 通过浏览器从SVN更新代码到Linux服务器的指定目录[原创]]]></title> 
<author>ohyeah &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Tue, 07 Oct 2008 13:44:58 +0000</pubDate> 
<guid>http://zyan.cc/post/371/#blogcomment1620</guid> 
<description>
<![CDATA[ 
	感谢分享~<br/><br/>$handle = popen(\&#039;/usr/local/bin/svn up --username zhangyan --password 123456 /data0/www/*\&#039;, \&#039;r\&#039;);<br/><br/>后面的那个 * 没有必要加上吧？<br/><br/>有你blog在firefox下alert提示是乱码的
]]>
</description>
</item><item>
<link>http://zyan.cc/post/371/#blogcomment1621</link>
<title><![CDATA[[评论] 通过浏览器从SVN更新代码到Linux服务器的指定目录[原创]]]></title> 
<author>jason &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Wed, 08 Oct 2008 01:22:49 +0000</pubDate> 
<guid>http://zyan.cc/post/371/#blogcomment1621</guid> 
<description>
<![CDATA[ 
	会不会产生.svn文件夹？
]]>
</description>
</item><item>
<link>http://zyan.cc/post/371/#blogcomment1622</link>
<title><![CDATA[[评论] 通过浏览器从SVN更新代码到Linux服务器的指定目录[原创]]]></title> 
<author>cloudchen &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Wed, 08 Oct 2008 03:12:32 +0000</pubDate> 
<guid>http://zyan.cc/post/371/#blogcomment1622</guid> 
<description>
<![CDATA[ 
	用svn export就不会有.svn目录了
]]>
</description>
</item><item>
<link>http://zyan.cc/post/371/#blogcomment1625</link>
<title><![CDATA[[评论] 通过浏览器从SVN更新代码到Linux服务器的指定目录[原创]]]></title> 
<author>starhycold &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 09 Oct 2008 02:05:50 +0000</pubDate> 
<guid>http://zyan.cc/post/371/#blogcomment1625</guid> 
<description>
<![CDATA[ 
	小技巧, 但是挺实用的.
]]>
</description>
</item><item>
<link>http://zyan.cc/post/371/#blogcomment2268</link>
<title><![CDATA[[评论] 通过浏览器从SVN更新代码到Linux服务器的指定目录[原创]]]></title> 
<author>larryli &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Wed, 17 Dec 2008 03:18:04 +0000</pubDate> 
<guid>http://zyan.cc/post/371/#blogcomment2268</guid> 
<description>
<![CDATA[ 
	用 svn 钩子更方便<br/>post-commit 监视指定目录，然后 up 就可以了
]]>
</description>
</item><item>
<link>http://zyan.cc/post/371/#blogcomment3676</link>
<title><![CDATA[[评论] 通过浏览器从SVN更新代码到Linux服务器的指定目录[原创]]]></title> 
<author>pl &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Mon, 13 Jul 2009 13:08:42 +0000</pubDate> 
<guid>http://zyan.cc/post/371/#blogcomment3676</guid> 
<description>
<![CDATA[ 
	如果svn服务器与拷贝不在一起，钩子不会用。
]]>
</description>
</item><item>
<link>http://zyan.cc/post/371/#blogcomment4810</link>
<title><![CDATA[[评论] 通过浏览器从SVN更新代码到Linux服务器的指定目录[原创]]]></title> 
<author>烨勇 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Tue, 19 Jan 2010 03:08:46 +0000</pubDate> 
<guid>http://zyan.cc/post/371/#blogcomment4810</guid> 
<description>
<![CDATA[ 
	我为什么在网页里不输出任何信息 <br/><br/>&lt;?php<br/>$handle = popen(&#039;/usr/bin/svn update --username *** --password *** /data/nginx/htdocs/&#039;,&#039;r&#039;);<br/>$read = stream_get_contents($handle);<br/>echo &quot;&lt;pre&gt;&quot;;<br/>printf ($read);<br/>echo &quot;&lt;/pre&gt;&quot;;<br/>//pclose($handle);<br/>?&gt;
]]>
</description>
</item><item>
<link>http://zyan.cc/post/371/#blogcomment4980</link>
<title><![CDATA[[评论] 通过浏览器从SVN更新代码到Linux服务器的指定目录[原创]]]></title> 
<author>Jason-MT &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Tue, 09 Feb 2010 01:31:40 +0000</pubDate> 
<guid>http://zyan.cc/post/371/#blogcomment4980</guid> 
<description>
<![CDATA[ 
	@烨勇<br/>你有没先做/usr/local/bin/svn checkout --username zhangyan --password 123456 <a href="http://xxx.xxx.xxx.xxx:8080/svn/web/trunk/" target="_blank">http://xxx.xxx.xxx.xxx:8080/svn/web/trunk/</a><br/>这一步，作了这一步后，往后你调update命令，svn会知道去那个源取代码来更新！
]]>
</description>
</item><item>
<link>http://zyan.cc/post/371/#blogcomment5128</link>
<title><![CDATA[[评论] 通过浏览器从SVN更新代码到Linux服务器的指定目录[原创]]]></title> 
<author>游客 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Fri, 05 Mar 2010 07:07:03 +0000</pubDate> 
<guid>http://zyan.cc/post/371/#blogcomment5128</guid> 
<description>
<![CDATA[ 
	烨勇 2010-1-19 11:08 <br/>我为什么在网页里不输出任何信息 <br/><br/>遇到错误中断了，没执行到现实内容的那行代码<br/>看看错误日志，肯定报错了
]]>
</description>
</item><item>
<link>http://zyan.cc/post/371/#blogcomment9121</link>
<title><![CDATA[[评论] 通过浏览器从SVN更新代码到Linux服务器的指定目录[原创]]]></title> 
<author>DANNY &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Wed, 24 Aug 2011 10:15:37 +0000</pubDate> 
<guid>http://zyan.cc/post/371/#blogcomment9121</guid> 
<description>
<![CDATA[ 
	请问，写宴兄，我面APACHE下模块化下运行PHP就是不能执行POPEN函数，有什么解决办法吗？原因应该是权限不够
]]>
</description>
</item><item>
<link>http://zyan.cc/post/371/#blogcomment18008</link>
<title><![CDATA[[评论] 通过浏览器从SVN更新代码到Linux服务器的指定目录[原创]]]></title> 
<author>Hogan &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 10 May 2012 10:13:37 +0000</pubDate> 
<guid>http://zyan.cc/post/371/#blogcomment18008</guid> 
<description>
<![CDATA[ 
	Ci sono diversi motivi principali per cui si può sicuramente trovare sul proprio volere le soluzioni contabili che coinvolgono tutta Stansted, anche se alcune persone potrebbero uomini e donne, probabilmente si dovrà disporre di soluzioni contabili rispetto con la gente. Stai con me per scoprire di più su molti dei motivi per prendere in considerazione l&#039;impiego contabili in tutta <a href="http://www.sitoufficialeihogan-it.net/" target="_blank">Hogan</a> Stansted. Costruire un businessIf vi capita di essere in funzione, è abbastanza possibile che si può fare uso di soluzioni contabili. Non date per scontato tutte le società hanno abbastanza soldi per utilizzare a tempo pieno il personale fiscali, così utilizzando una conditi insieme con l&#039;agenzia affidabile che coinvolge tutta commercialisti Stansted potrebbe rendere meno difficili problemi.
]]>
</description>
</item><item>
<link>http://zyan.cc/post/371/#blogcomment19050</link>
<title><![CDATA[[评论] 通过浏览器从SVN更新代码到Linux服务器的指定目录[原创]]]></title> 
<author>coach factory outlet &lt;fgf@hotmail.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 17 May 2012 03:47:15 +0000</pubDate> 
<guid>http://zyan.cc/post/371/#blogcomment19050</guid> 
<description>
<![CDATA[ 
	Today, following half a century, mentor leather-bases <a href="http://www.coachfactoryoutletao.net" target="_blank">coach factory outlet</a> continues to be the delicate craft of leather-based master is accountable for,Would you like to meet more friends, or go with the times? If yes, <a href="http://www.coachfactoryoutletao.net" target="_blank">coach factory online</a> is opening welcome doors to you.in the market you definitely can find various colorways that are designed in as well as the high quality that applied in. For most of you would like to come. So just come to our <a href="http://www.coachfactoryoutletao.net" target="_blank">coach factory outlet online</a> store to choose one.
]]>
</description>
</item><item>
<link>http://zyan.cc/post/371/#blogcomment19051</link>
<title><![CDATA[[评论] 通过浏览器从SVN更新代码到Linux服务器的指定目录[原创]]]></title> 
<author>louis vuitton sale &lt;fgf@hotmail.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 17 May 2012 03:47:28 +0000</pubDate> 
<guid>http://zyan.cc/post/371/#blogcomment19051</guid> 
<description>
<![CDATA[ 
	Louis Vuitton belt at <a href="http://www.louisvuittonoutletsalea.com" target="_blank">louis vuitton sale</a> is one kind of fashion accessory with high cost performance among the Louis Vuitton accessories.Offering quality LV products with favorable prices, <a href="http://www.louisvuittonoutletsalea.com" target="_blank">louis vuitton outlet</a> store is at your service. Hurry up, or you can not seize the chance.in fact, <a href="http://www.louisvuittonoutletsalea.com" target="_blank">louis vuitton</a> is one of the most famous fashion design master.he opened the fist suitcase shop called after his name.
]]>
</description>
</item><item>
<link>http://zyan.cc/post/371/#blogcomment19052</link>
<title><![CDATA[[评论] 通过浏览器从SVN更新代码到Linux服务器的指定目录[原创]]]></title> 
<author>coach outlet online &lt;fgf@hotmail.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 17 May 2012 03:47:35 +0000</pubDate> 
<guid>http://zyan.cc/post/371/#blogcomment19052</guid> 
<description>
<![CDATA[ 
	I heard of <a href="http://www.coachoutletonlineao.net" target="_blank">coach outlet online</a> through the advertisement when I was shopping. And now I often brow the webpage and buy Coach bags online.It is a symbol regarding position not to mention nature.Here I would like to launch a excellent bags pertaining to business men.Which may be <a href="http://www.coachoutletonlineao.net" target="_blank">coach outlet store</a>.<a href="http://www.coachoutletonlineao.net" target="_blank">coach outlet</a> has always been simple,durable style features to win consumers.The products are more flexible,with easy bleaching,wear characteristics,and simply use a damp cloth.
]]>
</description>
</item>
</channel>
</rss>