下载svn 源码安装包1 subversion-1.6.1.tar.gz
2 subversion-deps-1.6.1.tar.gz
解压到同一目录:
tar -zxvf subversion-1.6.1.tar.gz
tar -zxvf subversion-deps-1.6.1.tar.gz
cd subversion-1.6.1
./configure --prefix=/usr/local/svn
出现问题:
缺少openssl
下载 openssl-1.0.1c.tar.gz
tar -zxvf openssl-1.0.1c.tar.gz
cd openssl-1.0.1c
./config
make
make install
然后cd subversion-1.6.1
./configure --prefix=/usr/local/svn --with-openssl=/usr/local/ssl
make
make install
完成安装
检查安装是否成功
cd /usr/local/svn/bin/
./svn --version
配置环境变量
vim /etc/profile
在最后一行添加
PATH=/usr/local/svn:$PATH
使配置立即生效
. /etc/profile 或者source /etc/profile
创建版本库:
mkdir -P /opt/svn/newsrepo/
svnadmin create /opt/svn/newsrepo
导入初试版本 导入后版本号为1
svn import mytree file:///var/svn/newrepos/some/project -m "Initial import"
配置svn服务配置文件
vim /opt/svn/newrepos/conf/svnserve.conf
配置完后 启动服务
查看服务是否启动
关闭服务
killall svnserve
在window端 安装客户端软件
tortoiseSVN
利用svn://IP/
登录 可以check out
阅读(191) | 评论(0) | 转发(0) |