1. Install SVN server
Yum-y Install Subversion
2. View information such as installation path
RPM-QL Subversion
3. View SVN Help information
SVN help
4. Create the SVN repository directory (this is a large library, which is a library of individual projects created with Svnadmin)
Mkdir/home/svndb
5. Create a repository (project)
mkdir/home/svndb/test/
Svnadmin create/home/svndb/test/
6. Configuring the Repository
Into/home/svndb/test/conf, with three files in it.
Authz file is a permission control file
passwd is the account password file
Svnserve.conf SVN service configuration file
(1) Add the user name and password in the [users] block of the passwd file: account = password, e.g. Username=password
(2) Increase at the end of the Authz
[/]
Username=rw
(*=) This is the other has no read and write permission, the front of the
(3) in svnserve.conf
Remove the three preceding # numbers, as follows
auth-access = Write #授权用户可以写
Password-db = passwd #使用passwd作为账号文件
Authz-db = Authz #使用authz作为权限文件
PS: Note that there must be no spaces in front
7. Start the SVN service and start the Big warehouse here.
Svnserve-d-r/home/svndb
8. Client installation Skip here, go directly to the server update to the Web directory
SVN co svn://your IP you want to put in that directory (so create to web directory if update can be in that directory directly SVN update, but with SVN hidden files)
SVN export svn://your IP which directory you want to put in (such a web directory does not have SVN hidden files, but cannot be updated directly with SVN update, recommended above)
Linux builds SVN service and manually synchronizes code to the Web directory