ubuntu下svn server的安装

来源:互联网 发布:微信域名防封跳转系统 编辑:程序博客网 时间:2024/06/07 00:45

安装软件:sudo apt-get install subversion subversion-tools apache2 libapache2-svn

mkdir /var/svnws

改location发布到apache上: sudo vim /etc/apache2/apache2.conf最后加上:

<Location /svn>

    DAV svn

    SVNParentPath /var/svnws

</Location>

重启apache2: sudo service apache2 restart


mkdir /var/svnws/helloworld

svnadmin create /var/svnws/helloworld建一系列的文件for repository.

然后可以在本地访问到了:http://127.0.0.1/svn/helloworld


使用:svn checkout http://127.0.0.1/svn/helloworld .

svn add filea

svn commit -m "adding filea"