Linux SVN server to create a repository
1. Installation Services
The installation of SVN was simplified and solved directly with Yum.
Yum install-y Subversion
2. Create a version library
Mkidr/svn/obj
Svnadmin Create/svn/obj
3. Configuration
After using Svnadmin, the Conf directory is generated under the/svn/obj directory, which has three files, Authz, passwd, svnserver.conf
Authz User Rights configuration file
passwd User Password configuration file
SVNSERVER.CONF Master configuration file
Edit svnserver.conf File:
Anon-access = None #关闭匿名访问
auth-access = Write #验证用户可写
password-db = passwd #指向验证用户名密码的数据文件 passwd
Auth-db=authz #指向验证用户的权限配置文件 Authz
Edit passwd file:
[Users]
Admin=admin #用户名在等号前面, password in the back of the corresponding, note: There can be no space in front
Edit Authz File:
[/] #/indicates local repository obj
ADMIN=RW # Admin user has read and write access to obj
4. Start the service
Svnserver-d-r/svn/obj
Now you can upload and download using the Client Tortoisesvn-1.6.15.21042-win32-svn-1.6.16.msi tool
5. Using multiple repository
Mkdir/svn/book
Mkdir/svn/sport
Svnadmin Create/svn/book
Svnadmin Create Svn/sport
The above operation also created two repository book and sport
Copy the three files from the Conf in the obj directory to the book and Sport conf, respectively.
/bin/cp/svn/obj/conf/*/svn/book/conf/
/bin/cp/svn/obj/conf/*/svn/book/conf/
Restart the SVN service:
Kill ' svn id ' first kills the previously started
Svnserver-d-R/SVN
When downloading and uploading with client tools, the name of the folder after the URL is written can be separated, such as:
Svn://ip/obj
Svn://ip/book
Using SVN, Tortoisesvn-1.6.15.21042-win32-svn-1.6.16.msi is strongly recommended under Windows.
This article from the "Shallow faint" blog, reproduced please contact the author!
Linux SVN server to create a repository