Linux SVN Installation and Configuration

Linux SVN Installation and Configuration

1, the installation Subversion
yum the install Subversion

2, the installation of Linux SVN apache module
yum the install the mod_dav_svn

. 3, the establishment of Linux SVN repository and modify / svn user groups and
the svnadmin Create / svn / API /
chown -R & lt apache.apache / svn


4, modify the configuration file SVN
vi /svn/repos/conf/svnserve.conf
anon-Access = none # does not allow anonymous users to access
auth-access = write # authenticated users can read and write
password-db = passwd # users to save file
authz-db = authz # rights management file

vi / svn / repos / conf / passwd
as [Users]
QQQ = 111

VI / the svn / Repos / the conf / the authz
[Groups]
the svn = QQQ
[API: /]
@svn RW =

5, modify the SVN automatic submission
cp POST-POST-commit.tmpl the commit
vi / svn / Repos / Hooks / POST-the commit
writes the following:
# / bin / SH!

REPOS = "$ 1"
REV = "$ 2"

Export LANG = . 8-the en_US.UTF

SVN = / usr / bin / the svn
the WEB = / var / WWW / www.dd.com
the LOG = / var / WWW / www.dd.com / svn_translate.log
CURDATE = 'DATE'
echo "Code the Deployed AT $ CURDATE By ", $ REPOS, $ REV >> $ LOG
$ SVN Update --username QQQ --password the WEB >> $ LOG $ 111

to change the file 777
chmod + the X-POST-the commit
chown apache.apache post- the commit

. 7, the SVN configured into a directory
svnserve to -R & lt -d / opt / the svn / --listen --listen-0.0.0.0-Host Port 3690

CD /var/www/www.dd.com
the svn Checkout File: / // opt / svn / api / ./

Guess you like

Origin blog.csdn.net/weixin_41109346/article/details/81987504