글목록

2014. 5. 13.

[CentOS 6.4] Yum Install Svn Server in CentOS 6.4




# rpm -qa subversion
# yum remove subversion
# yum install httpd httpd-devel subversion mod_dav_svn mod_auth_mysql
# cd /etc/httpd/modules
# ls | grep svn
mod_authz_svn.so
mod_dav_svn.so





# svnserve --version 


svnserve, version 1.6.11 (r934486)

compiled Mar  6 2014, 10:33:29

Copyright (C) 2000-2009 CollabNet.

Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository back-end (FS) modules are available:


* fs_base : Module for working with a Berkeley DB repository.

* fs_fs : Module for working with a plain file (FSFS) repository.

Cyrus SASL authentication is available.










# vi ~/.bash_profile
------------------------ .bash_profile ----------------------------
SVN_EDITOR=/usr/bin/vim
export SVN_EDITOR
----------------------------------------------------------------------
 
# mkdir -p /home/svn/repositories
# svnadmin create /home/svn/repositories

 echo 'OPTIONS="--threads --root 저장소최상위폴더(/home/svn"' > /etc/sysconfig/svnserve
cat /etc/sysconfig/svnserve

# cd /home/svn/repositories/conf

# vim passwd

[users]

# harry = harryssecret
# sally = sallyssecret
toplogic=123456




# vi authz


[ / ]

toplogic=rw 



# vi  svnserve.conf


[general]

 anon-access=none
 auth-access=write
 password-db=passwd
 authz-db=authz
 realm=/home/svn/repositories











# vi /etc/sysconfig/iptables



-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3690 -j ACCEPT

-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 3690 -j ACCEPT

# service iptables restart



# service svnserve start

# ps -ef | grep svnserve | grep -v grep


root      3962     1  0 11:23 ?        00:00:00 /usr/bin/svnserve --daemon --pid-file=/var/run/svnserve.pid --threads --root /home/svn


# netstat -anp | grep svnserve


tcp        0      0 0.0.0.0:3690                0.0.0.0:*                   LISTEN      3962/svnserve





# svn mkdir svn://localhost/저장소이름/trunk
# svn mkdir svn://localhost/저장소이름/branches
# svn mkdir svn://localhost/저장소이름/tag



디렉토리를 생성하는 순간, 해당 디렉토리 관리 파일이 vi로 열린다.
:q 입력하여 vi 종료
변경되지 않았거나 지정되지 않았다며 취소(A), 계속(C), 수정(E) 로 물어보면 C를 누른다.
root 계정의 암호 입력
svn 사용자 및 비밀번호 입력

YES가 안되면 한글로 예 로 입력


---  svn 정지  -----
# service svnserve stop
                 or
# killall   -9    3962



댓글 없음:

댓글 쓰기