ubuntu下部署SVN服务

ubuntu下部署SVN服务 

1、安装软件 

sudo apt-get install apache2

sudo apt-get install subversion 
sudo apt-get install libapache2-svn 

创建SVN目录 
sudo mkdir /etc/svn 
sudo mkdir /etc/svn/repos 
运行创建版本库的命令,指定数据存储为 FSFS,如果要指定为 Berkeley DB,则将 fsfs 替换为 bdb 
sudo svnadmin create --fs-type fsfs /etc/svn/repos 
SVN目录的权限给APACHE2的启动用户 
cd /etc/svn/ 
sudo chown -R www-data repos 
sudo chmod -R g+rws repos 

配置/etc/apache2/mods-available/dav_svn.conf文件 
<Location /repos> 
DAV svn 
SVNPath /etc/svn/repos 
AuthType Basic 
AuthName "Documentation Team Repository" 
AuthUserFile /etc/svn/password 
Require valid-user 
</Location> 

创建密码文件,新增用户sillycat 
htpasswd -c /etc/svn/password sillycat 
新增用户kiko 
htpasswd /etc/svn/password kiko 

重启apache 
/etc/init.d/apache2 restart 

直接访问 
http://192.168.4.41/repos 
原文地址:https://www.cnblogs.com/cszzy/p/2298692.html