ts7758258 发表于 2019-2-19 09:56:43

ubuntu16.04下搭建svn服务

  近期公司各项目组的数据要做整合,集中放置在一台服务器上,但是之前各项目组所使用的方式各有不同,有用svn的也有用git的,所以说现服务器除搭建git外也要搭建SVN。因为是小白所以参考别人的搭建方案,在这里感谢以下链接的作者。
  以下是参考的链接:http://www.linuxidc.com/Linux/2016-08/133961.htm
  1、安装svn
  sinovo@git-server:~$ sudo apt-get install subversion
http://s1.运维网.com/images/20180116/1516092655840755.png
  

  2、创建SVN版本库

  创建项目目录及SVN仓库
http://s1.运维网.com/images/20180116/1516092953155028.png
  修改配置文件,设置访问权限

  sinovo@git-server:~$ sudo vim /home/svn/repository/conf/svnserve.conf
http://s1.运维网.com/images/20180116/1516093158124923.png
  添加访问用户

  sinovo@git-server:~$ sudo vim /home/svn/repository/conf/passwd
http://s1.运维网.com/images/20180116/1516093265248503.png

  设置用户权限

  sinovo@git-server:~$ sudo vim /home/svn/repository/conf/authz
http://s1.运维网.com/images/20180116/1516093364245380.png
  启动服务器

  sinovo@git-server:~$ svnserve -d -r /home/svn
  查看svnserve是否运行

  sinovo@git-server:~$ ps aux | grep svnserve
http://s1.运维网.com/images/20180116/1516093522993533.png
  最后就可以在客户端连接svn服务了

  svn://172.16.1.228/repository



页: [1]
查看完整版本: ubuntu16.04下搭建svn服务