Preface to the installation and configuration of subversion in linux: svn (subversion) is a version management tool that has emerged in recent years and is the successor of cvs. Currently, most open-source software uses svn as the code version management software. Test environment: centos 6.3 + subversion 1.6.11 SVN installation and configuration: directly use yum to install subversionyum install subversion and run the svnadmin command to create the project directory svnadmin create/var/www/project. After executing the create project command, the following file directories * dav directory will be automatically generated: it is a directory used by apache and mod_dav_svn to store internal data * db directory: it is the data storage file * hooks directory of all version control: the directory where the hook script file is placed * locks directory: used to store the subversion. See the hard-locked data directory. used to track the client * format file used to access the file library. It is a text file with only one integer. Indicates the version * conf directory of the current file library configuration: it is the configuration file of this warehouse (the user access account and permissions of the warehouse). We will go to the conf directory # vim svnserve. conf [general] anon-access = none auth-access = write password-db =/var/www/project/conf/passwd authz-db =/vsr/www/project/conf /authz realm = project ################################### ################## vim passwd [users] dick = dick laobi = laobi # username and password ####### ######################################## ######## vim authz [gro Ups] group1 = dick group2 = laobi [project:/] dick = rw # Grant dick read and write permissions @ group1 = rw # Grant group1 read and write permissions to the group [project: /laobi] # Set the permissions of the laobi folder in the root directory to laobi = rw @ group2 = rw * = # prohibit other operations that do not have permission on users. This field must be added, otherwise, other users cannot be limited to group group1 and group2. [project: /] Enable and disable the SVN server svnserve-d-r/var/www # ps Query Process for the project root directory [root @ localhost conf] # ps-ef | grep svn root 2146 1 0 08:12? 00:00:00 svnserve-d-r/var/www root 2210 1910 0 00:00:00 pts/0 grep svn server SVN several basic operations pull files from the repository svn co svn: // 192.168.2.136/add the svn add test.txt file to the project and upload the svn commit test.txt file.