Gooday Note Scrap Source Android login
 
작성일 : 14-08-13 13:54
[Linux] Subversion(SVN) 설치 및 사용법
 글쓴이 : 기리 (123.♡.195.24)
조회 : 2,902  

* 설치
# yum -y install subversion

* 방화벽 포트 허용
# 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
서비스 재시작
# /etc/init.d/iptables restart


* 설정
- 저장소 생성
mkdir /home/svn
cd /home/svn
svnadmin create --fs-type fsfs 저장소명
ex) 저장소명 = gooday - 저장소 설정
/home/svn/gooday/conf 디렉토리 안에는 설정파일들이 존재

1. svnserve.conf 수정
vi /home/svn/gooday/conf/svnserve.conf

anon-access = none -> 앞의 #(주석)을 제거합니다.
auth-access = write -> 앞의 #(주석)을 제거합니다.
password-db = passwd -> 앞의 #(주석)을 제거합니다.

2. passwd 수정
vi /home/svn/gooday/conf/passwd

[users]
# harry = harryssecret
# sally = sallyssecret
svnuser = svnpass


* 재부팅 시 서비스 자동 실행

- /etc/sysconfig/svnserve 생성 : /etc/sysconfig/svnserve 문서를 참고하십시오.

이 파일을 생성해주어야 service svnserve start/stop이 가능하다.
명령어 :
echo 'OPTIonS="--threads --root 저장소최상위폴더"' /etc/sysconfig/svnserve
cat /etc/sysconfig/svnserve

- 자동 실행 등록
서비스 목록 확인 :
# chkconfig --list svnserve
등록 :
# chkconfig svnserve on
등록 확인 :
# chkconfig --list svnserve

 
 

Total 121
번호 제   목 글쓴이 날짜 조회
106 [RaspberryPi] 외장하드 마운트(ntfs) 기리 10-23 1242
105 [RaspberryPi] Raspberry pi FTP 설치 (1) 최고관… 10-23 910
104 [RaspberryPi] Raspberry pi APM(apache, php, mysql) 설치 (1) 최고관… 10-23 1198
103 [RaspberryPi] Raspberry pi wlan 설정 최고관… 10-23 885
102 [RaspberryPi] Raspberry Pi 설정 - Raspbian 최고관… 10-23 912
101 [RaspberryPi] Raspberry Pi 설치 - Raspbian 최고관… 10-23 1227
100 [MySql] 사용자 추가 기리 06-16 1326
99 [Linux] apache 403 기리 06-16 1475
98 [Linux] 설치 및 설정 기리 06-15 1333
97 [Linux] IP 차단 (1) 기리 03-06 1984
96 [MySql] mysql log - BinLog 파일 Text 변환 (1) 기리 10-31 4155
95 [PHP] PHP CodeSniffer 기리 10-07 2311
94 [Linux] 자동응답메일 설정 기리 09-23 2114
93 [Linux] Subversion(SVN) 설치 및 사용법 기리 08-13 2903
92 [Html] CSS Gradient Background Maker 기리 04-08 3064
 1  2  3  4  5  6  7  8  9