subversion安装详细配置.doc

上传人:人*** 文档编号:547985989 上传时间:2023-05-06 格式:DOC 页数:3 大小:21.09KB
返回 下载 相关 举报
subversion安装详细配置.doc_第1页
第1页 / 共3页
subversion安装详细配置.doc_第2页
第2页 / 共3页
subversion安装详细配置.doc_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

《subversion安装详细配置.doc》由会员分享,可在线阅读,更多相关《subversion安装详细配置.doc(3页珍藏版)》请在金锄头文库上搜索。

1、Subversion install一 软件下载:1. Apache:http:/www.apache.org2. Subversion: http:/二 软件安装:1. Apache: tar -z xvf httpd-2.2.9.tar.gz cd httpd-2.2.9 ./configure -prefix=/usr/local/apache2 -enable-modules=most -enable-so -enable-dav -enable-rewrite -enable-rewrite=shared -enable-ssl -with-apr=/usr/local/apr -w

2、ith-apr-util=/usr/local/apr-util -enable-proxy -enable-proxy-ajp -enable-proxy-balancermake &make install2. Subversion: tar zxvf subversion-1.6.9.tar.gz subversion-deps-1.6.9.tar.gzcd subversion-1.6.9./configure -prefix=/usr/local/svn -with-apxs=/usr/local/apache2/bin/apxs make & make install三 软件配置:

3、1.配置Apache: vim /usr/local/apache2/conf/httpd.conf是否加载php模块:LoadModule php5_module modules/libphp5.so增加:AddType application/x-httpd-php .php .phtmlDirectoryIndex index.html改成: DirectoryIndex index.php index.html index.htm设置网站主目录:DocumentRoot /usr/local/apache2/htdocs2.配置:subversion:查看帮助:/usr/local/s

4、vn/bin/svnadmin help /usr/local/svn/bin/svnadmin create hlep创建svn目录:/usr/local/svn/svnadmin create /opt/repos在Apache配置文件中添加: vim /usr/local/apache2/conf/httpd.conf1.vi /usr/local/apache/conf/httpd.conf 查看是否有如下2行,有就对了如果没有静态加载,需要动态添加:LoadModule dav_svn_module modules/mod_dav_svn.soLoadModule authz_svn

5、_module modules/mod_authz_svn.so2.建立版本库mkdir /code (代码的根目录,根据自己情况)/usr/local/svn/bin/svnadmin create /code/test (建一个test项目)ls /code/test 里面多了些文件就对了/不让其他人有该目录的权限chown -R daemon /opt/reposchmod -R 755 /opt/repos3.配置Apache来支持SVNvi /usr/local/apache2/conf/httpd.conf在末尾加上如下内容: DAV svn SVNParentPath /opt

6、AuthzSVNAccessFile /opt/authz.conf AuthType Basic AuthName Subversion AuthUserFile /opt/authfile Require valid-user 保存退出4.启动 apache打开IE,输入:http:/IP/svn/repos 或 http:/localhost/svn/repos会弹出一个输用户和密码的框就对了5.创建用户配置文件/usr/local/apache2/bin/htpasswd -c /opt/authfile svnuser01 /必须要这样创建.回车输入密码 (-c是第一次要创建文件)h

7、tpasswd /opt/authfile svnuser02回车输入密码6.创建权限配置文件vi /code/authz.conftest:/Svnuser01 = rwSvnuser02 = r保存退出注:test:/ /这表示,仓库test的根目录下的访问权限 user1 = rw /test仓库user1用户具有读和写权限 user2 = r /test仓库user2用户具有读权限 test2:/ /test2仓库根目录下的访问权限 user1 = r /user1用户在test2仓库根目录下只有读权限 user2 = /user2用户在 test2仓库根目录下无任何权限 / /这个表

8、示在所有仓库的根目录下 * = r /这个表示对所有的用户都具有读权限 #groups /这个表示群组设置 #svn1-developers = user1, user2 /这个表示某群组里的成员 #svn2-developers = user1 #svn1:/ #svn1-developers = rw /如果在前面加上符号,则表示这是个群组权限设置四 启动服务:1. cd /usr/local/apache2/bin/apachectl restart 打开IE,输入:http:/IP/svn/test 或 http:/localhost/svn/test会弹出一个输用户和密码的框输入你的添加的用户和密码就ok了 2.安装客户端软件(这就简单了)。

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 生活休闲 > 科普知识

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号