|
留个笔记。RHEL3,老得不得了的系统,不得不重新配置很多库。预装openssl。
I 编译安装
1 berkeley db 4.6.21
cd build_unix
../dist/configure
2 neon0.28.0
./configure
3 libserf 0.1.2
./configure
4 cyrus-sasl 2.1.22
./configure
5 apr 1.2.12
./configure
6 apr-util-1.2.12
./configure --with-berkeley-db=/usr/local/BerkeleyDB.4.6 --with-apr=/usr/local/
apr
7 apache 2.2.8
./configure --enable-dav --enable-so --enable-ssl --enable-deflate --with-apr=/
usr/local/apr --with-apr-util=/usr/local/apr --with-berkeley-db=/usr/local/Berke
leyDB.4.6
8 swig 1.3.33
./configure
9 subversion 1.4.6
./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr --with-serf
=/usr/local/serf --with-swig=/usr/local --with-berkeley-db=/usr/local/BerkeleyDB.4.6 --with-apxs=/usr/
local/apache2/bin/apxs
II 启动配置server
1 创建svn用户,svn组
groupadd svn
useradd -c "SVN Owner" -d /home/svn -m -g svn -s /bin/false svn
2 添加svn到/etc/xinetd.d/,内容为
# default: on
# description: subversion server
service svn
{
port = 3690
socket_type = stream
protocol = tcp
wait = no
user = svn
server = /usr/local/bin/svnserve
server_args = -i -r /var/svn/repositories
log_on_success += USERID DURATION
log_on_failure += HOST USERID
disable = no
}
3 添加语句到/etc/services:
svn 3690/tcp # Subversion
svn 3690/udp # Subversion
4 service xinetd restart
III 创建subversion仓库
1 创建仓库
mkdir -p /var/svn/repositories
chown svn:svn /var/svn/repositories
svnadmin create --fs-type fsfs /var/svn/repositories/svntest
2 修改用户权限
chown -R svn:svn /var/svn/repositories/svntest
3 修改svntest/conf/svnserve.conf:
anon-access = none
auth-access = write
password-db = passwd
4 修改svntest/conf/passwd
test_user = test_passwd
IV 实验
1 client本地建立一系列目录和文件。假设根目录为test
svn import test/ svn://svn_ip/svntest --username test_user --password test_password
如果成功导入,代表server建立成功。 |
|