安装依赖包
yum -y install openssl openssl-devel gcc gcc-c++ ncurses ncurses-devel
|
下载SVN(http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=260&expandFolder=74)注:同时下载对应的deps补丁包
wget http://subversion.tigris.org/downloads/subversion-1.6.11.tar.gz
tar zxvf subversion-1.6.11.tar.gz
tar zxvf subversion-deps-1.6.11.tar.gz
cd subversion-1.6.11.tar.gz
|
编译安装
./configure --prefix=/usr/local/svn
make
make install
|
创建软连接到/bin
ln -s /usr/local/svn/bin/svnadmin /bin/svnadmin
ln -s /usr/local/svn/bin/svnserve /bin/svnserve
|
随便创建两个版本库
svnadmin create /var/svndata/psy365
svnadmin create /var/svndata/527h
|
添加用户
vi /var/svndata/psy365/conf/svnserve.conf
vi /var/svndata/psy365/conf/passwd
vi /var/svndata/527h/conf/svnserve.conf
vi /var/svndata/527h/conf/passwd
|
启动SVN
svnserve -d -r /var/svndata
|
搞定~
SVN命令大全:http://num7.javaeye.com/blog/321948
阅读(497) | 评论(0) | 转发(0) |