형상관리 서버를 운영하고 싶다면 윈도우즈에서 Visual SVN Server 를 설치해서 손쉽게 운영할 수 있으나 리눅스에 설치해야할 경우도 있습니다.
CentOS 리눅스 환경에서 Subversion 서버를 설치해보려면 아래 내용을 참고하세요.
# yum install subversion
# chkconfig --add svnserve
# chkconfig svnserve on
# vi /etc/sysconfig/svnserve
OPTIONS="-d -r /home/svn"
# service svnserve start
# svnadmin create --fs-type fsfs /home/svn/test
# svnadmin create /home/svn/project
# cd /home/svn/test/conf
# vi svnserve.conf
anon-access = none
auth-access = write
password-db = passwd
# vi passwd
[users]
lion=lion_password
tiger=tiger_password
# chown -Rv svn.svn /home/svn
# service svnserve restart
# vi /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3690 -j ACCEPT
또는
# iptables -I INPUT -p tcp --dport 3690 -j ACCEPT
# service iptables save
# service iptables restart
# ps -aux | grep svnserv
# netstat -ant | grep 3690
# chmod -R g+w,g+r /home/svn
# usermod -a -G svn lion


댓글을 달아 주세요