标签:nbsp 系统 安装环境 ase 安装包 yum dmi blog 环境
[root@svn ~]# cat /etc/redhat-release CentOS release 6.7 (Final) [root@svn ~]# uname -a Linux svn.vick.com 2.6.32-573.el6.x86_64 #1 SMP Thu Jul 23 15:44:03 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux #目的 yum 的安装包 在系统中保留 sed -i ‘s#keepcache=0#keepcache=1g‘ /etc/yum.conf grep keepcache /etc/yum.conf yum -y install subversion httpd rpm -ql subversion-1.6.11-15.el6_7.x86_64
mkdir /www/svn/svndata mkdir /www/svn/svnpasswd
启动SVN
svnserve -d -r /www/svn/svndata/ -d 后台运行 -r 项目根目录
ps -ef|grep svnserver netstat -tunlp|grep svnserver
lsof -i tcp:3690
svnadmin create /www/svn/svndata/sadoc
svnadmin --help create
cd /www/svn/svndata/sadoc/conf/ /bin/cp svnserve.conf svnserve.conf.$(date +%F) egrep "\access|\-db =" svnserve.conf # anon-access = read //是否允许匿名访问 # auth-access = write //允许可写 # password-db = passwd //密码数据库 # authz-db = authz //控制权限数据库 sed -i ‘s/# anon-access = read/anon-access = none/g‘ svnserve.conf sed -i ‘s/# auth-access = write/auth-access = write/g‘ svnserve.conf sed -i ‘s%# password-db = passwd%password-db = /www/svn/svnpasswd/passwd%g‘ svnserve.conf sed -i ‘s%# authz-db = authz%authz-db = /www/svn/svnpasswd/authz%g‘ svnserve.conf
cp authz passwd /www/svn/svnpasswd/
vim /www/svn/svnpasswd/passwd
vim /www/svn/svnpasswd/authz
pkill svnserver svnserve -d -r /www/svn/svndata/
标签:nbsp 系统 安装环境 ase 安装包 yum dmi blog 环境
原文地址:http://www.cnblogs.com/vicke/p/5987315.html