<?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>水草树 &#187; 服务器</title>
	<atom:link href="http://mifunny.info/tag/%e6%9c%8d%e5%8a%a1%e5%99%a8/feed" rel="self" type="application/rss+xml" />
	<link>http://mifunny.info</link>
	<description>走走停停看看，恍然大悟。</description>
	<lastBuildDate>Sat, 27 Aug 2011 18:25:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>建立最简单的SVN服务器</title>
		<link>http://mifunny.info/simple-svn-server-113.html</link>
		<comments>http://mifunny.info/simple-svn-server-113.html#comments</comments>
		<pubDate>Fri, 19 Sep 2008 14:35:53 +0000</pubDate>
		<dc:creator>LD</dc:creator>
				<category><![CDATA[版本控制]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[服务器]]></category>

		<guid isPermaLink="false">http://mifunny.info/simple-svn-server-113.html</guid>
		<description><![CDATA[记录一下最最最简单的SVN服务器建立步骤&#8230; 首先安装Apache和 subversion; 以我用的 Arch Linux 为例: user@~$ sudo pacman -Sy apache subversion 假设已经配置完成了Apache服务器(讲起来比较繁琐)&#8230; 模块 mod_dav_svn.so 已经存在于apache的modules目录下。 http服务的根目录在 /srv/http/ ， svn的目录在 /srv/http/svn/ 。 打开apache的主配置文件 httpd.conf ,写入下面的代码 LoadModule dav_module modules/mod_dav.so# 默认的配置中有 dav_module 这一行，但必须保证在 dav_svn_module 的前面 LoadModule dav_svn_module modules/mod_dav_svn.so &#60;Location &#8220;/svn&#8221;&#62; DAV svn SVNParentPath /srv/http/svn/&#60;/Location&#62; 重启apache后，就可以使用svn了: user@/srv/http/svn$ sudo svnadmin create testuser@/srv/http/svn$ sudo chown http:http -R test/ user@/srv/http/svn$ [...]]]></description>
			<content:encoded><![CDATA[<p style="text-indent: 2em" >记录一下最最最简单的SVN服务器建立步骤&#8230;</p>
<p style="text-indent: 2em" >首先安装Apache和 subversion; 以我用的 Arch Linux 为例:<br />
<table style="border:2px solid #E0E0E0;" >
<tr>
<td><span style="color: gray;">user@~$</span>  sudo pacman -Sy apache subversion</td>
</tr>
</table>
<p style="text-indent: 2em" >假设已经配置完成了Apache服务器(讲起来比较繁琐)&#8230; 模块 mod_dav_svn.so 已经存在于apache的modules目录下。 http服务的根目录在 /srv/http/ ， svn的目录在 /srv/http/svn/ 。</p>
<p><span id="more-113"></span>
<p style="text-indent: 2em" >打开apache的主配置文件 httpd.conf ,写入下面的代码<br />
<table style="border:2px solid #E0E0E0;" >
<tr>
<td>LoadModule dav_module modules/mod_dav.so<br /># 默认的配置中有 dav_module 这一行，但必须保证在 dav_svn_module 的前面 <br />LoadModule dav_svn_module modules/mod_dav_svn.so</p>
<p>&lt;Location &#8220;/svn&#8221;&gt;<br />        DAV svn<br />        SVNParentPath /srv/http/svn/<br />&lt;/Location&gt;</td>
</tr>
</table>
<p>重启apache后，就可以使用svn了: </p>
<table style="border:2px solid #E0E0E0;" >
<tr>
<td><span style="color: gray;">user@/srv/http/svn$</span>  sudo  svnadmin create test<br /><span style="color: gray;">user@/srv/http/svn$</span> sudo chown http:http -R test/ <br /><span style="color: gray;">user@/srv/http/svn$</span> svn mkdir &#8220;http://localhost/svn/test/branches&#8221; &#8220;http://localhost/svn/test/tags&#8221; &#8220;http://localhost/svn/test/trunk&#8221; -m &#8220;创建版本库布局&#8221;</td>
</tr>
</table>
<p style="text-indent: 2em" >打完收工，自己用或是小型局域网使用的话，足够了。</p>
]]></content:encoded>
			<wfw:commentRss>http://mifunny.info/simple-svn-server-113.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

