STEP1: Installing the SVN server
Yum Install Subversion
Step2: Create SVN repository Directory
mkdir /workplace/svnrepos
Step3: Creating a version Library
$ svnadmin Create/workplace/svnrepos
After executing this command, the following files will be generated in the/workplace/svnrepos directory
Step4: Set account password
$ cd/workplace/svnrepos/passwd... Add user and password in [users] block format: Account number = password, such as orlion=123456$ vim Authz ... Add the following code at the end: [/]orlion=rww=r means the root directory of the repository Dan has read and write permissions, W has Read access.
Step5: Modify the svnserve.conf file
$ vim svnserve.conf
Open a few notes below:
anon-access = Read #匿名用户可读auth-access = write #授权用户可写password-db = passwd #使用哪个文件作为账号文件authz-db = Authz #使用哪个文件作为权限文件realm =/var/svn/svnrepos # Certified space name, directory where repository is located
STEP6: Start the SVN server
$ svnserve-d-r/workplace/snvrepos
Default Listener 3690 Port
STEP7: Checkout on window:
If it fails, check to see if the server firewall is open for Port 3690.
CentOS Install SVN server