linux apache +svn
来源:互联网 发布:如何访问mpp数据库 编辑:程序博客网 时间:2024/05/01 10:33
1.
svn server(subversion):
svn client(TortoiseSVN):下载地址(http://tortoisesvn.net/downloads.html)
[root@localhost ~]
# rpm -ivh http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm
Retrieving http:
//mirrors
.sohu.com
/fedora-epel/6/x86_64/epel-release-6-8
.noarch.rpm
warning:
/var/tmp/rpm-tmp
.HjLnDh: Header V3 RSA
/SHA256
Signature, key ID 0608b895: NOKEY
Preparing...
########################################### [100%]
1:epel-release
########################################### [100%]更新epel源仓库:
[root@localhost ~]
# yum repolist
[root@localhost ~]
# yum -y install httpd httpd-devel mod_dav_svn subversion mod_ssl
httpd,mod_dav_svn,httpd-devel,mod_ssl支持WEB形式管理SVN
subversion (SVN服务器)
[root@localhost ~]
# ls /etc/httpd/modules/ | grep svn
mod_authz_svn.so
mod_dav_svn.so
#查看svn版本:
[root@localhost ~]
# svn --version
svn, version 1.6.11 (r934486)
compiled Mar 6 2014, 10:49:10
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 access (RA) modules are available:
* ra_neon : Module
for
accessing a repository via WebDAV protocol using Neon.
- handles
'http'
scheme
- handles
'https'
scheme
* ra_svn : Module
for
accessing a repository using the svn network protocol.
- with Cyrus SASL authentication
- handles
'svn'
scheme
* ra_local : Module
for
accessing a repository on
local
disk.
- handles
'file'
scheme
[root@localhost ~]
# mkdir /data/svn -p
[root@localhost ~]
# svnadmin create /data/svn/
[root@localhost ~]
# cd /data/svn/
[root@localhost svn]
# ls
conf db
format
hooks locks README.txt
#更改/data/svn属主属组:
[root@localhost svn]
# chown -R apache.apache /data/svn/
[root@localhost conf.d]
# vim /etc/httpd/conf.d/subversion.conf
LoadModule dav_svn_module modules
/mod_dav_svn
.so
LoadModule authz_svn_module modules
/mod_authz_svn
.so
<Location /repos>
DAV svn
SVNParentPath /usr/local/fulilaila/svn
#
# # Limit write permission to list of valid users.
# <LimitExcept GET PROPFIND OPTIONS REPORT>
# # Require SSL connection for password protection.
# # SSLRequireSSL
#
AuthType Basic
AuthName "Authorization Realm"
AuthzSVNAccessFile /usr/local/fulilaila/svn/authz
AuthUserFile /usr/local/fulilaila/svn/passwd
Require valid-user
# </LimitExcept>
</Location>
DAV svn
SVNParentPath /usr/local/fulilaila/svn
#
# # Limit write permission to list of valid users.
# <LimitExcept GET PROPFIND OPTIONS REPORT>
# # Require SSL connection for password protection.
# # SSLRequireSSL
#
AuthType Basic
AuthName "Authorization Realm"
AuthzSVNAccessFile /usr/local/fulilaila/svn/authz
AuthUserFile /usr/local/fulilaila/svn/passwd
Require valid-user
# </LimitExcept>
</Location>
[root@localhost conf.d]
# htpasswd -c /data/svn/passwdfile kaibin
New password:
Re-
type
new password:
Adding password
for
user kaibin
[root@localhost conf.d]
# htpasswd /data/svn/passwdfile zhangsan
New password:
Re-
type
new password:
Adding password
for
user zhangsan
[root@localhost ~]
# /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd:
# vim /data/svn/accessfile
### This file is an example authorization file for svnserve.
### Its format is identical to that of mod_authz_svn authorization
### files.
### As shown below each section defines authorizations for the path and
### (optional) repository specified by the section name.
### The authorizations follow. An authorization line can refer to:
### - a single user,
### - a group of users defined in a special [groups] section,
### - an alias defined in a special [aliases] section,
### - all authenticated users, using the '$authenticated' token,
### - only anonymous users, using the '$anonymous' token,
### - anyone, using the '*' wildcard.
###
### A match can be inverted by prefixing the rule with '~'. Rules can
### grant read ('r') access, read-write ('rw') access, or no access
### ('').
[aliases]
# joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average
[groups]
# harry_and_sally = harry,sally
# harry_sally_and_joe = harry,sally,&joe
admin=admin
test_developer=aa,bb,cc
# [/foo/bar]
# harry = rw
# &joe = r
# * =
# [repository:/baz/fuz]
# @harry_and_sally = rw
# * = ra
[/]
@admin=rw
[repository:/]
@test_developer=rw
### Its format is identical to that of mod_authz_svn authorization
### files.
### As shown below each section defines authorizations for the path and
### (optional) repository specified by the section name.
### The authorizations follow. An authorization line can refer to:
### - a single user,
### - a group of users defined in a special [groups] section,
### - an alias defined in a special [aliases] section,
### - all authenticated users, using the '$authenticated' token,
### - only anonymous users, using the '$anonymous' token,
### - anyone, using the '*' wildcard.
###
### A match can be inverted by prefixing the rule with '~'. Rules can
### grant read ('r') access, read-write ('rw') access, or no access
### ('').
[aliases]
# joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average
[groups]
# harry_and_sally = harry,sally
# harry_sally_and_joe = harry,sally,&joe
admin=admin
test_developer=aa,bb,cc
# [/foo/bar]
# harry = rw
# &joe = r
# * =
# [repository:/baz/fuz]
# @harry_and_sally = rw
# * = ra
[/]
@admin=rw
[repository:/]
@test_developer=rw
[root@localhost svn]
# svnserve -d -r /data/svn
0 0
- SVN+Linux+Apache配置
- linux svn apache 配置
- linux+apache+svn配置
- linux搭建svn+apache
- linux+svn+Apache
- linux apache +svn
- svn+Apache+linux安装
- linux + apache + svn
- Linux+Apache+SVN搭建SVN服务器(CentOS)
- svn+apache+linux安装部署
- Linux下 svn + apache 实现
- linux+apache 的svn服务器端配置说明
- linux系统上安装apache+svn
- svn + apache of linux 安装配置
- 关于linux下apache+SVN(转)
- linux下安装apache svn ssl
- linux下如何配置svn以及apache
- linux 下 Apache+Svn 服务器搭建
- 基础几何体
- 打开Myeclipse时Tomcat服务器报错解决办法
- gcc -lpthread和gcc -pthread的区别
- 关于this
- VS2013配置编译Caffe-Win10_X64
- linux apache +svn
- 在ubuntu16.04搭建git服务器
- bzoj1468 tree 点分治
- http 协议 基础
- Linux 添加新硬盘 LVM操作
- 关于政治类的词汇
- 【Android - 基础】之Animator属性动画
- 《KVM虚拟化技术实战和原理解析》读书笔记之第七章Linux发行版中的KVM
- Android开篇之Toast小试牛刀