Ubuntu 12.04.4 LTS 多版本库svn独立服务器搭建

一.系统环境

root@demo:~# cat /etc/issue

Ubuntu 12.04.4 LTS \n \l


root@demo:~# uname -ar

Linux demo 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux 

二.安装方式

2.1 apt-get 方式安装

sudo apt-get install subversion

2.2 编译安装

2.2.1.准备必要的依赖库

1.apr-1.4.6.tar.gz 

2.apr-util-1.5.2.tar.gz           

3.sqlite-autoconf-3071700.tar.gz          

4.zlib-1.2.8.tar.gz               

5.expat-2.1.0.tar.gz             

6.openssl-1.0.1e.tar.gz    

7.serf-1.2.1.tar.bz2                

8.subversion-1.7.10.tar.gz        



2.2.2安装步骤 


1.apr-1.4.6.tar.gz

       tar zxvf **.tar.gz   #解压包

       cd **

       ./configure 

       make 

       sudo make install

2.apr-util-1.5.2.tar.gz 

    ./configure --with-apr=/usr/local/apr

    make

    sudo make install

3.sqlite-autoconf-3071700.tar.gz 

       ./configure 

       make 

       sudo make install

4.zlib-1.2.8.tar.gz

      ./configure 

       make 

       sudo make install

5.expat-2.1.0.tar.gz

      ./configure 

       make 

       sudo make install

6.openssl-1.0.1e.tar.gz

      ./configure   ##服务器为64位 ./config shared -fPIC

       make 

       sudo make install

7.serf-1.2.1.tar.bz2

sudo ./serfmake --prefix=/usr/local/serf --with-apr=/usr/local/apr install

8.subversion-1.7.10.tar.gz


./configure  --with-apr=/usr/local/apr  --with-apr-util=/usr/local/apr  --with-zlib=/usr/local/zlib --with-serf=/usr/local/serf

make

sudo make install


9.测试 

  svn --version


配置文件

root@xiaoma-web-03:/work# cat /work/liantpo_pc/conf/authz 

[aliases]

[groups]

admin = liantpopc,wz

salt = user1,user2

[liantpo_pc:/]

@admin = rw

user1 = rw

* = r

root@xiaoma-web-03:/work# cat /work/liantpo_pc/conf/passwd 

[users]

liantpopc = liantpopc

wz = wz123456

user1 = user123

user2 = user123

root@xiaoma-web-03:/work# cat /work/liantpo_pc/conf/svnserve.conf 

[general]

anon-access = read

auth-access = write

password-db = passwd

authz-db = authz

[sasl]




root@xiaoma-web-03:/work# svnadmin create /work/liantpo_web

root@xiaoma-web-03:/work# svnadmin create /work/liantpo_pc


root@xiaoma-web-03:/work# svnserve -d -r /work

root@xiaoma-web-03:/work# ps aux|grep svn

root     50625  0.0  0.0  42864   536 ?        Ss   12:36   0:00 svnserve -d -r /work

root     50628  0.0  0.0  11720   976 pts/0    S+   12:36   0:00 grep --color=auto svn

root@xiaoma-web-03:/work# lsof -i:3690

COMMAND    PID USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME

svnserve 50625 root    3u  IPv4 12002319      0t0  TCP *:svn (LISTEN)


svn://ip/liantpo_web/

本文出自 “8055082” 博客,谢绝转载!

你可能感兴趣的:(ubuntu,lts,12.04.4,多版本库)