svn服务安装
平时都是使用现成的svn服务,这次我想在自己的Linux机器上安装一个svn服务(主要用于本地访问,当然如果能够让自己的另外几台机器也可以访问更加好),不过没有安装成功。所以在这里咨询一下大家,不知道在哪里出来问题。机器是ubuntu9.05的64位操作系统,根据svn的文档,我安装了apache2
然后修改文件
/etc/apache2/mods-available/dav_svn.conf
添加内容<Location /svn>
DAV svn
SVNParentPath /home/svn
SVNListParentPath On
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/subversion/passwd
</Location>另外创建组subversion,将自己的用户名和用户www-data添加到组subversion.
(在文件/etc/group最后添加subversion:x:1001:zdu,www-data)
然后创建目录/home/svn,再在下面创建目录mytest
然后运行
myadmin create /home/svn/mytest
chown -R www-data:subversion /home/svn/mytest
chmod -R g+rws /home/svn/mytest
然后使用
htpasswd -c /etc/subversion/passwd myuserid
来创建密码文件/etc/subversion/passwd
最后运行
/etc/init.d/apache2 restart
重启apache2服务。
然后在本机使用
svn co http://`hostname`/mytest mytest --username myuserid
结果没有任何响应(命令行挂起了),大家知道为什么吗?
而如果使用
svn co svn:`hostname`/mytest mytest --username myuserid
报告连接被拒绝,显然对应的端口没有打开,大家知道是什么原因吗? 重启机器 这个应该没有关系。
现在发现用命令
svn co file:///home/svn/mytest
可以了。也就是本机已经可以用了。
但是通过http还是不行,也就是不能在其它机器上面使用 被某个安全设置禁止了吧? 重启了也没有用。看来很有可能是被什么安全设置禁止了,本机用http协议也不行 http://wiki.archlinux.org/index.php/Svn
页:
[1]