mirror of https://github.com/Rekoe/rk_svnadmin
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.1 KiB
1.1 KiB
#1、yum安装下列的一些包:
yum install apr apr-util httpd httpd-devel subversion mod_dav_svn mod_auth_mysql
#2、建立svn的目录
mkdir -p /code/svndata
#3、创建一个库就叫SVN:
svnadmin create /code/svndata/svn
正常安全以上软件后,会在/etc/httpd/modules目录下生成mod_dav_svn.so、mod_authz_svn.so两个模块 cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak
#4、配置apache的httpd.conf vim /etc/httpd/conf/httpd.conf
添加
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
chown -R apache:apache /code/svndata/svn/
chmod -R 755 /code/svndata/svn/
#5、要关闭selinux的保护设置为禁用:
vi /etc/selinux/config
修改SELINUX=disabled
保存
不重启Linux服务器关闭SeLinux的方法
setenforce 0
#6、关闭防火墙:
/etc/init.d/iptables stop
#7、测试:
输入用户名和密码可以登录表示成功!
#启动httpd
service httpd start