svn 설치
yum install mod_dav_svn subversion httpd |
svn의 설정 변경
vi /etc/httpd/conf.modules.d/10-subversion.conf |
LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so LoadModule dontdothat_module modules/mod_bontdothat.so ## Add the following lines ## <Location /svn> DAV svn SVNParentPath /var/www/mysvn AuthType Basic AuthName "Subversion repositories" AuthUserFile /etc/svn-auth-users Require valid-user </Location> |
svn 사용자 생성
htpasswd -cm /etc/svn-auth-users svnuser New password: 새로운 패스워드 입력 Re-type new password: 다시 입력 Addin password for user svnuser |
svn repository 생성과 설정
mkdir /var/www/mysvn cd /var/www/mysvn svnadmin create repo chown -R apache.apache repo |
http, https 방화벽 설정
firewall-cmd --permanent --zone=public --add-service=http firewall-cmd --permanent --zone=public --add-service=https firewall-cmd --reload |
http service 실행
systemctl enable http.service systemctl start http.service |
conf/svnserve.conf 설정
anon-access = none auth-access = authz |
trunk, branches, tags를 repo 밑에 생성
mkdir -p /tmp/svn-structure-template/{trunk,branches,tags} svn import -m "Initial repository" /tmp/svn-structure-template file:///var/www/mysvn/repo/ |
원하는 svn을 checkout 받기
svn co 저장소 주소(내가 받을 곳) 로컬주소(받아올 곳) 을 입력 |