CentOS安装svn
====================
下载SVN和必须的library
APR
http://mirrors.shu.edu.cn/apache//apr/apr-1.6.5.tar.gz
APR-util
http://mirrors.shu.edu.cn/apache//apr/apr-util-1.6.1.tar.gz
sqlite
https://www.sqlite.org/2018/sqlite-amalgamation-3250200.zip
utf8proc
https://github.com/JuliaStrings/utf8proc/archive/v2.2.0.tar.gz
svn
http://mirrors.shu.edu.cn/apache/subversion/subversion-1.10.3.tar.gz
1.先安装APR,APR-util
tar -xzvf apr-1.6.5.tar.gz
cd apr-1.6.5
./configure
make
make install
tar -xzvf apr-util-1.6.1.tar.gz
cd apr-util-1.6.1
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make
make install
2.安装utf8proc
tar -xzvf v2.2.0.tar.gz
cd utf8proc-2.2.0
make
make install
3.解压svn和sqlite,将sqlite解压得到的文件夹改名sqlite-amalgamation并剪切到svn解压后的文件夹
unzip sqlite-amalgamation-3250200.zip
tar -xzvf subversion-1.10.3.tar.gz
mv sqlite-amalgamation-3250200 sqlite-amalgamation
mv sqlite-amalgamation subversion-1.10.3
4.安装svn
cd subversion-1.10.3
./configure --with-apr-util=/usr/local/apr-util --with-lz4=internal
make
make install
5.创建svn库
svnadmin create /project/svnrep
6.修改相关的配置文件(行首要顶置,不能有空格)
cd /project/svnrep/conf
vim passwd
svnuser01 = 123456
svnuser02 = 123456
svnuser03 = 123456
svnuser04 = 123456
vim authz
ReadWriteGroup = svnuser01,svnuser02
[/]
@ReadWriteGroup = rw
* = r
vim svnserve.conf
anon-access = none
auth-access = write
password-db = /svndata/conf/passwd
authz-db = /svndata/conf/authz
realm = My First Repository svnrep
7.启动svn
svnserve -d -r /project/svnrep
8.客户端tortoisesvn检出地址
svn://192.168.152.128/
相关命令:
svn重启
killall svnserve
svnserve -d -r /project/svnrep
查看svn是否启动
netstat -antlp | grep svn