First install subversion under Ubuntu
Apt-get Install Subversion
Create a folder Mkdir/mnt/hgfs/sharefile/wwwroot/svn
Build the repository svnadmin CREATE/MNT/HGFS/SHAREFILE/WWWROOT/SVN
[Email protected]:/home/wwwroot/default# cd/mnt/hgfs/sharefile/wwwroot/svn[email protected]:/ mnt/hgfs/sharefile/wwwroot/svn# lsconf db format hooks locks README.txt
# Our main concern is the Conf and DB files, the Conf folder is the main configuration file and the user, the permissions location, the DB folder is to store the SVN dump data.
Go to Conf folder
[Email protected]:/mnt/hgfs/sharefile/wwwroot/svn/conf# ls
Authz Hooks-env.tmpl passwd svnserve.conf
Authz file is to set user rights, passwd file is to store users and passwords, svnserve.conf is the master profile, first configure the master configuration file.
Vim svnserve.cnf
The file is empty by default and needs to be edited by us.
Anon-access = None #匿名访问权限, default Read,none to not allow access
auth-access = Write #认证用户权限
Password-db = passwd #用户信息存放文件, the default is below the repository/conf, you can also specify the file location by absolute path
Authz-db = Authz
Edit User name password file vim passwd
One line, user name = password, clear text
Edit Permissions Vim Authz
root directory
Fover user Read and Write permissions RW
Start SVN service
Svnserve–d–r/mnt/hgfs/sharefile/wwwroot/svn
NETSTAT–ANTP | grep svnserve
See there are 3690 ports on listening! Server configuration OK.
Then connect to SVN on Windows
Baidu Download TortoiseSVN
And then
Checkout folder
Enter the account password, OK, the connection is complete!
Configure SVN server Svnserve under Ubuntu 14