阿里云服务器搭建SVN仓库管理项目

简介: 最近由于个人学习(新手)需要,方便个人项目管理,想利用自己现有的阿里云服务器对项目进行管理,首先根据自己的需要,先使用svn作为目前暂时的管理方法(相对比较简单)。个人电脑是win10 64位系统,服务器是阿里云CentOS 7.3 64位。

         最近由于个人学习(新手)需要,方便个人项目管理,想利用自己现有的阿里云服务器对项目进行管理,首先根据自己的需要,先使用svn作为目前暂时的管理方法(相对比较简单)。个人电脑是win10 64位系统,服务器是阿里云CentOS 7.3 64位。

    一、服务器svn环境搭建(服务器使用的是centos7.3 64位系统

           1、安装svn

                 yum install subversion

            2、查看版本号

                svnserve --version 

            3、创建SVN版本库

                在这里我直接创建在var/svn 文件夹下。如果么这个目录,就新建这个目录

                mkdir -p /var/svn/svnrepos

                  创建版本库

                svnadmin create /var/svn/版本库名字

                 1f9d00042999c925240f1cd6573cdaa7a946913d

            4、修改conf目录中的authz、passwd、svnserve.conf

                修改authz:               

[\]
admin = rw

用户名=rw  读写权限

                修改passwd:
[users]
# harry = harryssecret
# sally = sallyssecret
admin=000000

用户名=密码


                修改 svnserve.conf:

[general]
### The anon-access and auth-access options control access to the
### repository for unauthenticated (a.k.a. anonymous) users and
### authenticated users, respectively.
### Valid values are "write", "read", and "none".
### Setting the value to "none" prohibits both reading and writing;
### "read" allows read-only access, and "write" allows complete 
### read/write access to the repository.
### The sample settings below are the defaults and specify that anonymous
### users have read-only access to the repository, while authenticated
### users have read and write access to the repository.
anon-access = read
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
### The force-username-case option causes svnserve to case-normalize
### usernames before comparing them against the authorization rules in the
### authz-db file configured above.  Valid values are "upper" (to upper-
### case the usernames), "lower" (to lowercase the usernames), and
### "none" (to compare usernames as-is without case conversion, which
### is the default behavior).
# force-username-case = none
              去掉 anon-access = read、 auth-access = write、 password-db = passwd、 realm = My First Repository 四句话前面的注释。

               注意:以上修改全部顶格,不要留空格,会报错。

              5、添加安全组规则(释放3690端口)

                   b58ad8c4b0e99040b8d03e242916b3110bc90e7a

                 6、启动svn

                      svnserve -d -r /var/svn/mystudy


                 7、客户端访问

                      svn://ip地址:3690/xxxx   (iP地址为你linux的ip,xxxx为前文创建的版本库名称,3690为svn默认端口)

参考资料:

                 http://www.cnblogs.com/mymelon/p/5483215.html

                 http://www.linuxidc.com/Linux/2013-10/91903.htm

                 http://www.linuxidc.com/Linux/2016-01/127679.htm      


       

         

                  

相关实践学习
借助OSS搭建在线教育视频课程分享网站
本教程介绍如何基于云服务器ECS和对象存储OSS,搭建一个在线教育视频课程分享网站。
7天玩转云服务器
云服务器ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,可降低 IT 成本,提升运维效率。本课程手把手带你了解ECS、掌握基本操作、动手实操快照管理、镜像管理等。了解产品详情: https://www.aliyun.com/product/ecs
相关文章
|
1月前
|
JavaScript 前端开发 应用服务中间件
【Vue面试题三十】、vue项目本地开发完成后部署到服务器后报404是什么原因呢?
这篇文章分析了Vue项目在服务器部署后出现404错误的原因,主要是由于history路由模式下服务器缺少对单页应用的支持,并提供了通过修改nginx配置使用`try_files`指令重定向所有请求到`index.html`的解决方案。
【Vue面试题三十】、vue项目本地开发完成后部署到服务器后报404是什么原因呢?
|
3月前
|
存储 负载均衡 网络协议
杨老师课堂之JavaWeb项目架构之NFS文件服务器
杨老师课堂之JavaWeb项目架构之NFS文件服务器
38 0
|
1月前
|
关系型数据库 MySQL Java
腾讯云服务器的使用、服务器中使用Docker安装常见的软件、如何将一个项目发布到服务器
这篇文章介绍了在腾讯云服务器上使用Docker安装常见软件的过程,包括安装MySQL、Redis和Tomcat,并提供了解决连接问题的方法。同时,还涉及了服务器中安装JDK 1.8的步骤和如何将项目打包部署到服务器上的指导,包括注意事项和操作提示。
腾讯云服务器的使用、服务器中使用Docker安装常见的软件、如何将一个项目发布到服务器
|
25天前
|
运维 数据安全/隐私保护 数据库管理
企业实战项目之服务器用户权限集中管理
企业实战项目之服务器用户权限集中管理
|
1月前
|
Android开发
svn服务器配置常见问题
svn服务器配置常见问题
51 1
Request请求转发和重定向的资源路径问题,目录到底加不加,取决于浏览器用,还是服务器用,规避项目目录发生修改,导致重定向失败
Request请求转发和重定向的资源路径问题,目录到底加不加,取决于浏览器用,还是服务器用,规避项目目录发生修改,导致重定向失败
|
2月前
|
存储 弹性计算 运维
可观测性体系问题之ECS管控对其所有日志的管理如何解决
可观测性体系问题之ECS管控对其所有日志的管理如何解决
33 0
|
3月前
|
运维 Java 测试技术
Spring运维之boo项目表现层测试加载测试的专用配置属性以及在JUnit中启动web服务器发送虚拟请求
Spring运维之boo项目表现层测试加载测试的专用配置属性以及在JUnit中启动web服务器发送虚拟请求
38 3
|
3月前
|
Java Maven
springboot项目打jar包后,如何部署到服务器
springboot项目打jar包后,如何部署到服务器
250 1
|
3月前
|
域名解析 弹性计算 监控
使用云效将项目代码部署到云服务器ECS的体验评测
本文详述了使用阿里云云效和ECS搭建企业门户网站的解决方案,包括引导文档、部署流程、一键与手动部署的优缺点以及部署中可能遇到的问题。文中建议阿里云改进文档更新及时性,增强流程指引清晰度,提供更具体的错误信息,并增加实时监控、报警功能及性能优化建议。此外,呼吁建立更多用户交流平台以提升用户体验。
97 1