1. SVN 설치
svn 설치 이전에 리눅스 버전을 확인하자.
# lsb_release -a
LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 5.8 (Tikanga)
Release: 5.8
Codename: Tikanga
리눅스 종류별 설치 방법 : http://subversion.apache.org/packages.html
# yum install subversion
2. Repository 생성
# mkdir /home/svn/t1
repository 로 사용할 디렉토리를 생성한다.
# svnadmin create --fs-type fsfs /home/svn/t1
Repository 생성
# tree /home/svn/t1
디렉토리 및 파일 생성된것을 확인하자.
3. 설정
# cd /home/svn/t1/conf
# vi svnserve.conf
anon-access = none # 비인증계정 : 권한 없음
auth-access =write # 인증 계정 : 쓰기 가능
password-db = passwd # 패스워드 사용함
realm = My First Repository # Repository명
저장
# vi passwd
ID = password (ex : user1 = passwd)
4. svn 서버 실행
svnserve -d -r /home/svn/
svn 서버 끄기
killall svnserve
5. 서비스 확인
netstat -anp | grep svnserve
tcp 0 0 :::3690 :::* LISTEN 2868/svnserve
3690 포트로 서비스중
6. 기본 디렉토리 생성하기
svn mkdir 명령어를 이용하여 trunk, tags, branches 디렉토리를 생성하자.
# svn mkdir svn://127.0.0.1/t1/trunk
아래와같이 svn mkdir 명령어를 사용할 수 없다고 표시된다면?
svn: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR environment variable or using the --message (-m) or --file (-F) options |
# cd ~
# vi .bash_profile 맨 아래줄에 아래와 같이 추가하자
SVN_EDITOR=/usr/bin/vim |
# source .bash_profile
# svn mkdir svn://127.0.0.1/t1/trunk
# svn mkdir svn://127.0.0.1/t1/tags
# svn mkdir svn://127.0.0.1/t1/branches
편집 창이 뜨면 wq 하고.. 담 메시지에서 계속 (c) 누르면 해당 디렉토리 추가된다..
This system is not registered with ULN / RHN (0) | 2014.12.19 |
---|---|
Linux 설치, mysql, apache 설정 (0) | 2010.01.18 |
jdk 6, tomcat 설치하기 (0) | 2010.01.13 |
CentOS 5.3에서 Java와 Tomcat 설치 - Tomcat을 서비스로 관리하기.. (0) | 2010.01.13 |
booting 시 프로그램 자동 실행행하도록 설정 (0) | 2010.01.12 |