CentOS搭建SVN服务器
来源:互联网 发布:淘宝运费模板怎么写 编辑:程序博客网 时间:2024/05/22 17:03
查看是否安装
rpm -ql subversion
安装
yum install subversion
查看安装位置
rpm -ql subversion
查看是否安装成功
svnserve --version
创建SVN版本库
mkdir -p /opt/svn/repos/svn1 ##创建目录svnadmin create /opt/svn/repos/svn1 ##创建SVN版本库
配置版本库
cd /opt/svn/repos/svn1/confvim passwd
添加2个用户和密码
[users]# harry = harryssecret# sally = sallyssecret#lilimin = peng2014tourist = 123
添加权限
vim authz
[groups]# harry_and_sally = harry,sally# harry_sally_and_joe = harry,sally,&joeadmin = lilimin #新建一个admin组,包含lilimin这个用户,指定多个用户用','分隔user = tourist[/] #指定根目录下的权限@admin = rw #admin组有读写权限* = r #其他组只有读权限
让配置信息生效(打开注释即可)
vim svnserve.conf
[general]anon-access = read #非授权用户有读权限,如果设置为none则无法访问auth-access = write #授权用户有写权限password-db = passwd #密码文件authz-db = authz #权限文件
启动SVN
svnserve -d -r /opt/svn/repos/
/opt/svn/repos/是版本库的根目录
查看服务是否启动
ps aux | grep svnserve
关闭SVN
[root@iZo5z1am4roz5wZ conf]# ps aux | grep svnroot 16695 0.0 0.2 139132 5184 pts/0 T 17:32 0:00 vim svnserve.confroot 16704 0.0 0.0 152412 732 ? Ss 17:45 0:00 svnserve -d -r /opt/svn/repos/root 16752 0.0 0.0 103320 884 pts/0 S+ 18:22 0:00 grep svn
kill -s 9 16704
16704为进程ID
重启SVN
service svnserve restart
访问
由于我用的是阿里云服务器,所以得配置一下安全组规则才能访问3690端口
在TortoiseSVN的url中输入svn://xxx.xxx.xxx.xxx/svn1即可访问
参考博客
[1]https://www.cnblogs.com/vijayfly/p/5711962.html
[2]http://blog.csdn.net/lake1314/article/details/23025571
[3]http://www.cnblogs.com/yjtx/p/4429613.html
[4]http://www.linuxidc.com/Linux/2016-01/127679.htm
阅读全文
0 0
- Centos搭建SVN服务器
- CentOS SVN服务器搭建
- Centos搭建SVN服务器
- centos 搭建svn服务器
- centOS搭建SVN服务器
- Centos搭建SVN服务器
- CentOS 搭建svn服务器
- centos 搭建svn服务器
- centos搭建svn服务器
- Centos搭建SVN服务器
- CentOS搭建SVN服务器
- centos搭建svn服务器
- centos服务器搭建svn
- Centos搭建SVN服务器
- CentOS 搭建SVN服务器
- centos svn服务器搭建
- CentOS搭建SVN服务器
- Centos搭建SVN 服务器
- java23种设计模式(2)-责任链模式
- Flex中的DataGrid
- hdu 1060(思维)
- jiecaovideoplayer的简单使用
- filebeat传输到logstash通过ssl加密
- CentOS搭建SVN服务器
- Python入门与进阶学习笔记之分支、循环、条件与枚举
- 钉钉生成jspapi token出现IP地址不在白名单的解决办法
- 常用css样式
- Java8,第 5 部分
- 命名管道(FIFO)
- FPGA-TFT(VGA)驱动代码分享
- MySQL存储过程
- 从放弃迅雷和IDM到自己开发下载工具