nugawiki

./categories/os

SVN 설치 (Linux, RPM)

업데이트 2026-07-21 조회수

CentOS 6.5 / Subversion 1.7.22 RPM 기준. yum·tar.gz·방화벽은 SVN 설치 (Linux)

RPM 설치

# http://opensource.wandisco.com/centos/6/svn-1.7/RPMS/x86_64/
rpm -ivh subversion-1.7.22-1.x86_64.rpm
rpm -ivh subversion-tools-1.7.22-1.x86_64.rpm
rpm -ivh mod_dav_svn-1.7.22-1.x86_64.rpm
svn --help

저장소

mkdir /home/svn/repos && cd /home/svn/repos
svnadmin create project1
chown -R user.usergroup project1   # 필요시
chcon -R -t httpd_sys_content_t project1

svnserve.conf

cd /home/svn/repos/project1
mv svnserve.conf svnserve.conf_org
vi svnserve.conf
[general]
anon-access = none
auth-access = write
password-db = passwd
authz-db = authz

passwd / authz (데모)

[users]
testuser = testpassword
[/]
testuser = rw

서비스

echo 'OPTIONS=" --threads --root /home/svn "' > /etc/sysconfig/svnserve
# 포트 변경: --listen-port 9999 (기본 3690)

service svnserve start
# 또는: svnserve -d -r 폴더경로
ps -ef | grep svnserve
netstat -na | grep svnserve
chkconfig svnserve on
chkconfig --list svnserve

삭제

service svnserve stop
rm -rf /home/svn/repos/project1

./comments