推荐一些不错的电子书:
http://www.memeshu.com
svn安装需要 APR 库,APR-util 库 APACHE库
所以安装svn 前需要 确保安装 APR,APR-util,APACHE
1.安装 APR 我选择 apr-1.3.8 尽量安装 高版本 到
http://apr.apache.org/下载
tar zxvf apr-1.3.8.tar.gz
cd apr-1.3.8
./configure
make
make install
tar zxvf apr-util-1.3.9.tar.gz
cd apr-util-1.3.9
./configure --with-apr=/usr/local/apr/
make
make install
2.编译安装APACHE httpd-2.2.11.tar.gz
tar zxvf httpd-2.2.11.tar.gz
cd httpd-2.2.11
./configure --prefix=/opt/apache --enable-dav --enable-so --enable-maintainer-mode --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr/bin/apu-1-config
make
make install
3.安装subversion-1.6.6 下载到
http://subversion.tigris.org
tar zxvf subversion-1.4.0.tar.gz
./configure --with-apxs=/opt/apache/bin/apxs --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr
make
make install
配置 svn
一、普通配置方式
1.创建仓库
mkdir -p /data/svndata/repos
svnadmin create /data/svndata/repos
2.修改 配置文件
/data/svndata/repos/conf/svnserve.conf
[general]
anon-access = none
auth-access = write
password-db = passwd
/data/svndata/repos/conf/passwd
[users]
jking = jking
3.启动
svnserve -d -r /data/svndata/repos
默认端口 3690
--listen-port 为指定的端口 svnserve -d -r /data/svndata/repos --listen-port 9999
防火墙上开放这个端口。
/sbin/iptables -A INPUT -i eth0 -p tcp --dport 3690 -j ACCEPT
/sbin/service iptables save
二、apache配置方式
1.创建密码文件
/opt/apache/bin/htpasswd -cm /data/svn/conf/passwd admin
/opt/apache/bin/htpasswd -m /data/svn/conf/passwd admin1
/opt/apache/bin/htpasswd -m /data/svn/conf/passwd admin2
2.修改权限文件 /data/svn/conf/authz.conf
[groups]
#<groupname1>=<username1>,<username2>
group1=admin,admin1
#[<versionLib>:projectName/directory]
#@<groupsname>=<authorities>
#<username>=<authorities>
#group1中所有用户对根目录下有读写权限
[/]
@group1= rw
#admin2用户对repos目录下有读写权限
[repos:/]
admin2= rw
2.配置 apache 修改 /app/soft/apache2.2.11/conf/httpd.conf
<Location /svn>
DAV svn
# SVNPath /data/svndata
SVNParentPath /data/svndata
AuthzSVNAccessFile /data/svn/conf/authz.conf
AuthType Basic
AuthName "Subversion repository"
AuthUserFile /data/svn/conf/passwd.conf
Require valid-user
</Location>
分享到:
相关推荐
Linux离线安装svn, 含详细的配置文档和所需的所有相关依赖包,亲测可用。支持svn checkout https://这种格式的(ssl加密协议)
windows server下安装svn服务器的图文教程,比较全面
ubuntu下源码安装svn客户端,简单方便。
安装svn安装svn安装svn
详细的linux下安装svn命令行 安装Subversion服务器 debian:~# apt-get install subversion subversion-tools 创建一个新的储存库: debian:~# svnadmin create /data/svn 导入你的源码: debian:~# svn import /data...
ubuntu安装svn步骤及所需文件
Myeclipse8.6安装svn插件 及 步骤说明
小白如何安装svn以及eclipse安装svn插件
MyEclipse中安装SVN
手动为myeclipse安装svn插件,说明在压缩包中, 这里需要注意的是修改成为刚才svn所在路径,建议改为绝对路径。比如我的svn在“/opt/soft/Genuitec/myplugins/svn/”,那么就这样:String plugin = "/opt/soft/...
linux安装svn文档,文档描述相关的linux安装svn的命令
myEclipse9.0安装svn 插件安装
AIX系统安装svn.doc 安装说明文档
Myeclipse8.5安装svn插件方法
MyEclipse安装svn插件
myeclipse9.0安装svn插件方法及所有文件myeclipse9.0安装svn插件方法及所有文件myeclipse9.0安装svn插件方法及所有文件myeclipse9.0安装svn插件方法及所有文件myeclipse9.0安装svn插件方法及所有文件
MyEclipse7.5安装SVN (线下安装)
Myeclipse8.6安装SVN
Myeclipse8.5中安装svn插件
linux下安装SVN支持http;linux下安装SVN支持http;linux下安装SVN支持http