使用默认的方式安装apache,安装目录/etc/httpd
yum install httpd httpd-devel
修改端口和名称
Listen 9999
ServerName localhost:9999
启动和浏览器查看
service httpd start
配置svn,在/etc/httpd/conf/http.conf最后添加或修改/etc/httpd/conf.d/subversion.conf如下
#add svn by Jabin2018/1/10
<Location /svn>
DAV svn
SVNParentPath /app/svnRepo
# Authentication: Basic
AuthName "Subversion repository"
AuthType Basic
AuthUserFile /etc/httpd/svn-auth.htpasswd
# Authorization: Authenticated users only
#<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
#</LimitExcept>
</Location>
安装mod_dav_svn
yum install mod_dav_svn #如果是apache没有安装在默认目录,则需要在httpd.conf中使用LoadModule引入mod_dav_svn模块
新建文件和添加密码
touch /etc/httpd/svn-auth.htpasswd
htpasswd -c -m /etc/httpd/svn-auth.htpasswd root #创建用户
htpasswd -b /etc/httpd/svn-auth.htpasswd new-user new-password #添加用户
htpasswd -D passwd user #删除用户
htpasswd passwd user #修改密码
重启
service httpd restart
测试
你适合学Java吗?4大专业测评方法
代码逻辑 吸收能力 技术学习能力 综合素质
先测评确定适合在学习