Build linux svn and use linuxsvn
1. install # yum install subversion2. view the version # svnserve -- version3. create the SVN library # mkdir-p/opt/svn/repos # svnadmin create/opt/svn/repos to execute the above after the command, multiple files are automatically created under repos, including conf, db, format, hooks, locks, and README.txt. 4. Enter the conf folder generated above and configure the following files: authz, passwd, and svnserve. conf.
Among them, authz is the permission control, which users can access which directories, and passwd sets the user and password, svnserve is used to set svn-related operations 4.1 first set passwd [users] # harry = harryssecret
# Sally = sallyssecret
Hello = 123
Username = PASSWORD 4.2 and then set the permission authz
[/] Hello = rw means that the hello user has read and write permissions on all directories. Of course, you can also limit
[Groups]
Develop = pan, hellodesign = test [/trunk] @ develop = rw * = Set Group Permissions
4.3 Finally, set snvserv. conf anon-access = none # Make unauthorized users unable to access auth-access = write # grant authorized users the write permission
Password-db = password
Authz-db = authz # access control file
Realm =/opt/svn/repos # authenticate the namespace. The subversion is displayed in the authentication prompt and used as the key word of the Credential cache. 5. The link starts svn: svnserve-d-T-r/opt/svn/repos if svn is already running, run it on another port.
Svnserve-d-r/opt/svn/repos -- listen-port 3391 check out svn co file: // opt/svn/repos // home/test1/Export (none. svn) svn export svn: // 192.168.1.198: 3391/home/test4 import file svn import/opt/lampp/htdocs/zhijianew/config/svn: // 192.168.1.198: 3391/trunk-m "new" view svn process ps aux | grep svnserve check whether svn rpm-qa subversion is installed uninstall yum remove subversion to add file svn add aaa. php submits the svn ci-m "comment" aaa. php Update file svn up delete file svn delete aaa. comparison between php-m "comment" and basic files: svn diff aaa. php: view the svn log aaa. php