"CentOS 서브버전 서버 설치 및 설정 (svn)"의 두 판 사이의 차이

26번째 줄: 26번째 줄:


<source lang='dos'>
<source lang='dos'>
[root@myhost ~]# cat /var/svn/myrepo/passwd
[root@myhost ~]# cat /var/svn/myrepo/conf/passwd
### This file is an example password file for svnserve.
### This file is an example password file for svnserve.
### Its format is similar to that of svnserve.conf. As shown in the
### Its format is similar to that of svnserve.conf. As shown in the

2012년 1월 2일 (월) 23:58 판

서브버전, subversion, SVN
  • 이 문서에서는 리파지토리의 상위 디렉토리를 /var/svn으로 한 예이다.

1 서비스 시작

svnserve -d -r /var/svn

2 서비스 중지

[root@myhost ~]# ps -ef | grep svnserve
root     11892     1  0  2011 ?        00:00:00 svnserve -d -r /var/svn
root     25444 25363  0 21:27 pts/0    00:00:00 grep svnserve
[root@myhost ~]# kill 11892
[root@myhost ~]#

3 포트 변경

서비스 중지 후 포트 옵션 주어 다시 실행

svnserve -d -r /var/svn --listen-port 9999

4 패스워드 분실

다른 응용프로그램들이 OS계정을 사용하는 것과 달리, svn은 자체 계정을 주로 사용한다. 해당 저장소(repository)의 conf 디렉토리에 있는 passwd를 열어 보자.

[root@myhost ~]# cat /var/svn/myrepo/conf/passwd
### This file is an example password file for svnserve.
### Its format is similar to that of svnserve.conf. As shown in the
### example below it contains one section labelled [users].
### The name and password for each user follow, one account per line.

[users]
# harry = harryssecret
# sally = sallyssecret
아이디 = 패스워드
[root@myhost ~]#
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}