近期公司各項目組的數據要做整合,集中放置在一臺服務器上,但是之前各項目組所使用的方式各有不同,有用svn的也有用git的,所以說現服務器除搭建git外也要搭建SVN。因爲是小白所以參考別人的搭建方案,在這裏感謝以下鏈接的作者。
以下是參考的鏈接:http://www.linuxidc.com/Linux/2016-08/133961.htm
1、安裝svn
sinovo@git-server:~$ sudo apt-get install subversion
2、創建SVN版本庫
創建項目目錄及SVN倉庫
修改配置文件,設置訪問權限
sinovo@git-server:~$ sudo vim /home/svn/repository/conf/svnserve.conf
添加訪問用戶
sinovo@git-server:~$ sudo vim /home/svn/repository/conf/passwd
設置用戶權限
sinovo@git-server:~$ sudo vim /home/svn/repository/conf/authz
啓動服務器
sinovo@git-server:~$ svnserve -d -r /home/svn
查看svnserve是否運行
sinovo@git-server:~$ ps aux | grep svnserve
最後就可以在客戶端連接svn服務了
svn://172.16.1.228/repository