Lately I’ve been trying to learn more about servers, so here is installing svn on CentOS
rpm -qa subversion checks the installed version; if it exists, remove it
Remove yum remove subversion
Install svn command yum install httpd httpd-devel subversion mod_dav_svn mod_auth_mysql confirm the installed modules
Enter the directory cd /etc/httpd/modules
Confirm with the command ls | grep svn
Check the installed version svnserve —version
After the installation is complete you still need to create an svn repository
Create the directory mkdir -p /opt/svn/repositories svnadmin create /opt/svn/repositories
Looking at the /opt/svn/repositories folder, you’ll find it contains the conf, db, format, hooks, locks and README.txt files, which means an SVN repository has been created.
Configuration
Enter cd /opt/svn/repositories/conf
Configure the password vi passwd [users] # harry = harryssecret # sally = sallyssecret admin=123456 Configure the permissions vi authz
- Setting [/] represents all resources under the root directory [/] admin=rw svnserve.com service configuration vi svnserve.conf 【general]
- Permission for anonymous access, can be read, write, none, defaults to read anon-access=none
- Give authorized users write permission auth-access=write
- Path of the password database password-db=passwd
- Access control file authz-db=authz
- Authentication namespace; subversion will display it in the authentication prompt and use it as the keyword for credential caching realm=/opt/svn/repositories

Configure the firewall vi /etc/sysconfig/iptables
Add the following content: -A INPUT -m state —state NEW -m tcp -p tcp —dport 3690 -j ACCEPT
After saving, restart the firewall service iptables restart
Start svn svnserve -d -r /opt/svn/repositories
Check the svn process ps -ef|grep svn|grep -v grep root 3699 1 0 21:33 ? 00:00:00 svnserve -d -r /opt/svn/reposito
Check the port netstat -ln |grep 3690 tcp 0 0 0.0.0.0:3690 0.0.0.0:* LIST
Stop svn killall svnserve
Start svn svnserve -d -r /opt/svn/repositories connect with a client to test

