Monday, February 7, 2011

In the following configuration SVN server Fedora10

1. install subversion: yum install subversion.i386 (note; in mandriva here you need to install subversion subversion-server subversion-tool urpmi) subversion version 2, create, and modify permissions to the library # mkdir-p # SVNPATH/repos # svnadmin create # SVNPATH/repos/project13, start the subversion service, and sets the version of the library location # svnserve--daemon--root = # SVNPATH/repos--listen-port = 3690 Note: not recommended to use a root user start the service, the default port number is 36904. # yum list mod_dav_svn Note: you can find the packages associated with mod_dav_svn mod_dav_svn.i386, install yum install mod_dav_svn.i386 mod_dav_svn.i386 # Note: after installation can be found in/etc/httpd/conf.d folder, automatically generate a subversion.conf file and automatically adds the following two lines: LoadModule dav_svn_module modules/mod_dav_svn.soLoadModule authz_svn_module modules/mod_authz_svn.so to ... ...

Between the content read as follows: DAV svnSVNPath # SVNPATH/repos/project15, restart the Apache service # apachectl restart6, modify SELINUX permission # chcon-R-h-u system_u-t httpd_sys_content_t # SVNPATH/repos7. can use # lsof-i:3690 see if open 8. modify profile/home/svnroot/repository/conf/svnserve.conf [general] # anonymous access permissions can be read, write, none, default = none # readanon-access = authenticated user permissions, can be read, write, none, default is writeauth-access = write # password database path, remove the preceding # password-db = passwd # user permissions # authz-db = passwd authz modify profile [users] user = passwoduser1 = password1 modify configuration file authz [test1:/] user = rw [test1:/doc] user1 = rw9. for a single code warehouse start command svnserve-d-r/home/svnroot/repository/test1--listen-host 192.168.1.18 which-d runs in the background,-r specifies the server's root directory, so you can access the server directly accesses the svn://server ip. If the server has multiple ip words--listen-host to specify the IP address to listen on. We can be in svn client through the svn://192.168.1.18 to access svn server. For more code warehouse, we at startup or you can use the-r option to specify the server root directory, but you need write access on each warehouse relative to svn root. For example, we have two code warehouse/home/svnroot/repository/test1 and/home/svnroot/repository/test2, we use svnserve-d-r listen-host 192.168.1.18/home/svnroot/repository--to start, then in client access you can use svn://192.168.1.18/test1 and svn://192.168.1.200/test2 to access two project start to finish, we can use ps aux | grep svnserv to see if svnserve process exists. 10. open Server default port is the port SVN 3690, you need to open this port on the firewall. /Sbin/iptables-A INPUT-I eth0-p tcp--dport 3690-j ACCEPT/sbin/service iptables save you can also use svnserve--listen-port option to specify a different port already open, but in this case the client must also be coupled with the port, such as svn://192.168.1.18: 9999/. 11.yum has a interesting usage: yum whatprovides mod_dav_svn.so12. in mandriva to install mod_dav.so, you can use urpmi apache-mod_dav_svn

No comments:

Post a Comment