1. Install SVN service
# Yuminstall Subversion
2. Create a new directory to store all SVN files
#mkdir-P/CBROOT/SVNSERVER/CBWEB3, create a repository for project project_1 in the folder created above# svnadmin Create/cbroot/svnserver/cbweb/trunk4. Configure permissions for the project (1) svnserve.conf is the master profile vim/cbroot/svnserver/cbweb/trunk/conf/svnserve.conf anon-acces S=none #匿名可读
Auth-access=write #验证用户可读写
PASSWORD-DB=PASSWD #指向验证用户名密码的数据文件 passwd, see configuration below
Auth-db=authz #指向验证用户的权限配置文件 Authz, see configuration below
Note: There can be no spaces in front of each line, or Option expected error will occur!
(2) passwd user name password configuration file
vim/cbroot/svnserver/cbweb/trunk/conf/passwd
[Users]
chenkuanxin=123456
libaojun=123456
libaojun=
(3) Authz User Privilege profile
[Groups]
Trunk=chenkuanxin,libaojun
[/]
@trunk =RW #定义群组 managers have read and write access
Manager3=r #定义 Manager3 have read access
*= #以上没有定义的用户都没有任何权限
5. Start the server
Svnserve-d-r/cbroot/svnserver/cbweb/
###
Start multiple SVN services
Svnserve-d–listen-port 3688-r/static/
Project Import
Terminal Input # SVN import [Source path] [target repository path]-m [Log information]
Source path can make relative path, import will recursively import the original path of all the File box folder, Target repository path requires absolute directory
For example:
SVN import file:///cbroot/svnserver/cbweb/trunk/-M "Importing files"
Project Check out
SVN Co project path check out the path of the lower midfield
Linux under SVN create repository and file import and export