Get the App
SLTechnology News&Howtos  ›  Servers  › 

Svn3.0 version revised version

Shulou Source: shulou.com Published: 2022-06-02 19:49:55 11月07日 Update

1. First check whether subversion is installed on the operating system

Rpm-qa subversion

two。 Install subversion

Yum-y install subversion

3. Specify the data storage path for svn

Mkdir-p / usr/local/svn/data

4. Specify the profile information path for svn

Mkdir-p / usr/local/svn/configure

5. Start the svn service

Svnserve-d-r / usr/local/svn/data/

6. Create a zhibo version library

Svnadmin create / usr/local/svn/data/zhibo

Svnadmin create / usr/local/svn/data/wangzhan

7. Go to the zhibo version library configuration directory and back up the configuration file

Cd / usr/local/svn/data/zhibo/conf/

Cp svnserve.conf / usr/local/svn/configure

8. Copy passwd and authz files to zhibo's svnpasswd directory and modify permissions

Cp-p authz passwd / usr/local/svn/configure/

Cd / usr/local/svn/configure/

Chmod 700 authz passwd

9. Modify svnserve.conf configuration file

Vim svnserve.conf

[general]

Anon-access = none / / Anonymous access is prohibited

Auth-access = write / / read permission after authentication

Password-db = / usr/local/svn/configure/passwd / / specify password file

Authz-db = / usr/local/svn/configure/authz / / specify permission authentication file

10. Create a user for the Svn version library and grant access to the specified project version library

Vim passwd

Wang = wang

Vim authz

[/]

Wang = rw:

11. Restart the svn service to verify

Pkill svnserve

Svnserve-d-r / usr/local/svn/data-- config-file=/usr/local/svn/configure/svnserve.conf

12.svn start script, give permission

Vim / root/svnstart.sh

#! / bin/bash

/ usr/bin/svnserve-d-r / usr/local/svn/data-- config-file=/usr/local/svn/configure/svnserve.conf

Chmod axix svnstart.sh

13. Join the boot self-boot

Vi / etc/rc.d/rc.local

/ root/svnstart.sh

14. Offline linux server turns off firewall

Service iptables stop

Chkconfig iptables off

Tags: Files permissions versions configurations services directories paths authentication operating systems information backups passwords data servers users systems scripts firewalls projects storage Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Docker Huawei Shulou Information macOS