当前位置:网站首页>RHEL 6.4 安装svn和apache
RHEL 6.4 安装svn和apache
2022-07-28 10:36:00 【hongdi】
1、安装软件包(RHEL已经按默认设置安装完成)
需要安装的.rpm软件包:
postgresql-libs
perl-URI
subversion
mod_dav_svn
2、创建svn文件夹和版本库
创建svn文件夹
mkdir /opt/svn
创建版本库
svnadmin create /opt/svn/project
(注意这里需要配置/opt/svn/project的访问权限,chmod -R 777 /opt/svn/project)
3、配置Apache
配置监听端口:
vi /etc/httpd/conf/httpd.conf
该Listen 80为Listen 8008
启动Apache:service httpd start
在客户端浏览器使用http://ip:8008访问
(注意:需要开放8008端口才能访问,这里直接停止iptables:service iptables stop)
4、配置svn
编辑:vi /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> #/svn表示访问http://ip:8008/svn
DAV svn
SVNParentPath /opt/svn #访问http://ip:8008/svn跳转到/opt/svn
AuthType Basic
AuthName "Authorization Realm" #显示在登陆框的信息
AuthUserFile /opt/svn/passwd #存放用户和密码的文件
AuthzSVNAccessFile /opt/svn/authz #存放访问权限的文件
Require valid-user
# </LimitExcept>
</Location>
5、创建svn用户和密码文件passwd
htpasswd -c /opt/svn/passwd user1 #添加第一个用户使用-c,添加第二个使用-m或不加参数
htpasswd -m /opt/svn/passwd user2 #添加第一个用户使用-c,添加第二个使用-m或不加参数
htpasswd -m /opt/svn/passwd user3 #添加第一个用户使用-c,添加第二个使用-m或不加参数
6、创建svn访问权限文件authz
vi /opt/svn/authz
编辑内容:
[groups]
manager = user1,user2 #创建组manager,包含user1,user2
developer user1,user2,user3 #创建组developer,包含user1,user2,user3
[/] #根目录可以看到project文件夹
@manager = rw #manager组用户可以进行读写
* = #其他人无读写权限
[project:/demo] #访问project下demo文件夹的权限
@developer = rw #developer可以对demo文件夹进行读写
* =
重新启动httpd:/etc/init.d/httpd.restart
7、客户端访问
在浏览器或svn客户端输入http://ip:8008/repos/project
输入用户名密码
边栏推荐
- Status Notice ¶
- Tensorflow knowledge points
- 数组相关的知识点
- 10_ue4进阶_添加倒地和施法动作
- Sword finger offer 06. print linked list from end to end
- 剑指 Offer 06. 从尾到头打印链表
- Here is a super practical excel shortcut set (common + summary of eight categories)
- Jianzhi offer 09. realize queue with two stacks
- CGAL compilation error
- 分体式测斜探头安装要点及注意事项
猜你喜欢

Redis-day01 common sense supplement and redis introduction

Make a virtual human with zego avatar | virtual anchor live broadcast solution

Blue Bridge Cup embedded Hal library LCD

Inventory: 144 free learning websites, the most complete collection of resources in the whole network

Blue Bridge Cup embedded Hal library ADC

Reading these six books makes learning MySQL easier

Purchase, sale and inventory software suitable for small and medium-sized enterprises to solve five major problems

11_ UE4 advanced_ Change male characters to female characters and modify the animation

GKConstantNoiseSource

10_ UE4 advanced_ Add fall and cast actions
随机推荐
GKLinearCongruentialRandomSource
Invalid ROM Table原因及解决办法
21. Merge two ordered linked lists
The 10th Landbridge cup embedded electronic provincial competition
Nodejs: detect and install the NPM module. If it is already installed, skip
Problems needing attention when VC links static libraries
GKBillowNoiseSource
I don't know how lucky the boy who randomly typed logs is. There must be a lot of overtime
GKNoiseSource
5. Implement MapReduce program on window side to complete wordcount function
Blue Bridge Cup embedded Hal library ADC
Eslint, Eslint中文文档
Aike AI frontier promotion (7.28)
Configuring raspberry pie, process and problems encountered
JSON preliminary understanding
Do data analysis, do you still not understand RFM analysis method (model)?
Inventory: 144 free learning websites, the most complete collection of resources in the whole network
Tree Shaking和DCE
ctf技能树----文件上传
Blue Bridge Cup embedded Hal library USART_ TX