ubuntu下部署SVN服务

1、安装软件
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

SVN提交也使用这个地址

相关文章:

  • 2021-12-06
  • 2021-05-21
  • 2021-09-08
  • 2021-10-31
  • 2021-11-04
  • 2022-12-23
猜你喜欢
  • 2022-02-20
  • 2021-05-03
  • 2021-06-05
  • 2021-05-30
  • 2021-12-21
  • 2022-12-23
  • 2021-08-03
相关资源
相似解决方案