Linux deployment record -SVN

1.svn deployment

yum -y install subversion

svnserve --version View version

mkdir -p /usr/app/svn

svnadmin create /usr/app/svn/hmanager

cd /usr/app/svn/hmanager/conf

authz file permissions to control file
passwd is the account password file
svnserve.conf SVN service profile

vim passwd
[users]
# harry = harryssecret
# sally = sallyssecret
xf = xf123456
us = us123456

the authz Vim
[Groups]
# = harry_and_sally Harry, Sally
# Harry = harry_sally_and_joe, Sally, Joe &
ADMIN = XF
User = US
[/]
@admin RW =
@user = R & lt
mean root dan its repository have read and write permissions , w only read access.

vim svnserve.conf
open following a few comments:
anon-Access = # anonymous users read the Read
auth-access = write # authorized users can write
password-db = passwd # which file to use as account files
authz-db = authz # Use which file as the file permissions
realm = / usr / app / svn / hmanager # certification space name, the repository directory

svnserve -d -r / usr / app / svn / hmanager # svn port 3690 by default

Client Access: svn: //192.168.66.128/hamanager

access under linux

svn ls svn://192.168.66.128/hmanager --username=xf --password=xf123456

 

 

Guess you like

Origin www.cnblogs.com/xinfang520/p/11086814.html