linux下搭建svn仓库,window下访问
2017-03-13 00:00
288 查看
今天遇到了一个linux下svn坑的地方,windows应该是不会出现的.建议配置的时候不要多余删除东西,完全按照我的配置来
配置环境centos6.8
查看home下的目录就会多出一个svnHome,进入此目录可以看到一些文件,主要关注conf下三个配置文件
修改配置文件如下
修改配置文件如下
修改配置文件如下
我就知这个地出现了问题,千万不要写成
其他机器就换成ip就好了
参考博客链接: 常见错误
客户端连接
配置环境centos6.8
1.安装svn
yum install subversion
2. 创建版本库
svnadmin create /home/svnHome
查看home下的目录就会多出一个svnHome,进入此目录可以看到一些文件,主要关注conf下三个配置文件
[root[@localhost](https://my.oschina.net/u/570656) svnHome]# cd conf/ [root[@localhost](https://my.oschina.net/u/570656) conf]# ls authz passwd svnserve.conf
3. 配置svnserve.conf
这个文件主要设置一些svn服务的配置vim svnserve.conf
修改配置文件如下
[general] ### These options control access to the repository for unauthenticated ### and authenticated users. Valid values are "write", "read", ### and "none". The sample settings below are the defaults. anon-access = none auth-access = write ### The password-db option controls the location of the password ### database file. Unless you specify a path starting with a /, ### the file's location is relative to the directory containing ### this configuration file. ### If SASL is enabled (see below), this file will NOT be used. ### Uncomment the line below to use the default password file. password-db = passwd ### The authz-db option controls the location of the authorization ### rules for path-based access control. Unless you specify a path ### starting with a /, the file's location is relative to the the ### directory containing this file. If you don't specify an ### authz-db, no path-based access control is done. ### Uncomment the line below to use the default authorization file. authz-db = authz ### This option specifies the authentication realm of the repository. ### If two repositories have the same authentication realm, they should ### have the same password database, and vice versa. The default realm ### is repository's uuid. # realm = My First Repository [sasl] ### This option specifies whether you want to use the Cyrus SASL ### library for authentication. Default is false.
4.配置passwd文件
这个文件主要用于添加用户vim passwd
修改配置文件如下
[users] # harry = harryssecret # sally = sallyssecret hsm=123456 ~
5.配置authz 文件权限
这个主要给用户分配读写权限vim authz
修改配置文件如下
[aliases] # joe = /C=XZ/ST=Dessert/L=Snake City/O=Snake Oil, Ltd./OU=Research Institute/CN=Joe Average [groups] # harry_and_sally = harry,sally # harry_sally_and_joe = harry,sally,&joe admin=hsm # [/foo/bar] # harry = rw # &joe = r # * = # [repository:/baz/fuz] # @harry_and_sally = rw # * = r [/] @admin=rw ~ ~
6.配置文件完成了之后,就是打开服务了
svnadmin -r -d /home/
我就知这个地出现了问题,千万不要写成
svnserve -r -d /home/svnHome
7.导出文件的时候也要注意
本机导出:svn checkout svn://localhost/home/svnHome
其他机器就换成ip就好了
8. 如果配置出现了问题,可以执行下面的命令重启服务
$ ps -aux|grep svnserve $ kill -9 ID号 杀死服务 $ svnserve -d -r /svn
参考博客链接: 常见错误
客户端连接
相关文章推荐
- 【转】linux window环境下svn服务器搭建
- 【转】linux(Ubuntu)配置svn仓库,搭建svn服务器
- Linux 搭建svn服务器+ssh访问
- svn在Linux环境下仓库的创建与权限访问
- 搭建SVN服务器及客户端(WIN+LINUX)
- Eclipse SVN + Google code 搭建自己的代码仓库(转)
- 在linux下搭建jira+svn[原创]
- 快速搭建window上的SVN服务
- suse linux enterprise server 10与window平台实现局域网访问
- Linux上搭建ANT+SVN+CruiseControl+JIRA+Apache
- Linux下SVN服务器的搭建与配置
- Linux系统下SVN服务器的搭建过程详解 ZT
- linux 搭建SVN服务器。
- Eclipse + SVN + Google code搭建代码仓库
- Window访问Linux共享"您可能没有权限使用网络资源"问题解决
- Linux下SVN服务器的搭建与配置
- Linux环境下搭建Apache+subversion+svnmanager
- Linux系统下SVN服务器的搭建过程详解
- Linux下apache+svn+ssl完美结合搭建安全版本控制平台