Other dependencies required after executing yum install subversion
to perform analysis
Dependencies Resolved
======================================= ============================================
Package Arch Version Repository Size
== ===================================================== ===========================
Installing:
subversion x86_64 1.7.14-10.el7 base 1.0 M
Installing for dependencies:
apr x86_64 1.4. 8-3.el7 base 103k
apr-util x86_64 1.5.2-6.el7 base 92k
subversion-libs x86_64 1.7.14-10.el7 base 921k
Transaction Summary
================================================= ===============================
Install 1 Package (+3 Dependent packages)
after successful installation
1. Create svn user group
[root@localhost ~]# groupadd svngroup
2. Create svn user
[root@localhost ~]# useradd -g svngroup svnuser
3. Specify password for svn user
[root@localhost ~]# passwd svnuser
Changing password for user svnuser.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.
[root@localhost ~]#
4. Create svn directory
[svnuser@localhost ~]$ mkdir -p svn/project
5. Create a new version warehouse
[svnuser@localhost ~]$ svnadmin create /home/svnuser/svn/project/
At this time, it appears under /home/svnuser/svn/project/: conf/ db/ format hooks /locks/README.txt
6. Set username and password for web access
Edit the file /home/svnuser/svn/project/conf/passwd
Set username and password in [users] according to the following format:
username1=password1
username2=password2
[users]
# harry = harryssecret
# sally = sallyssecret
liulangyu = 123456
liulangyu2 = 1234567
7. Set the user directory permissions to
edit the file /home/svnuser/svn/project/conf/authz
[groups]
testgroup = liulangyu,liulangyu2
[/]
@testgroup = rw
*=
8. Set the svn access policy to
edit the file /home/svnuser/ svn/project/conf/svnserve.conf
anon-access=read
auth-access=write
password-db=passwd
authz-db=authz
9. Start svn service
[svnuser@localhost conf]$ svnserve -d -r /home/svnuser /svn/project/
The default port number of svn service is 3690
[svnuser@localhost conf]$ netstat -ntlp Use the netstat command to check whether port 3690 is developed
10. Firewall passes 3690
because the firewall is turned on, so port 3690 must be opened
vi /etc/sysconfig/iptables
added: -A INPUT -m state --state NEW -m tcp -p tcp --dport 3690 -j ACCEPT
service iptables restart
11. Client for testing
12. Test add directory
13svnserver service shutdown
[root@localhost project]# ps -ef | grep svnserve
kill -9 ID号