gpt4 book ai didi

svn - 在 CentOS 7 机器中创建 SVN 存储库和访问

转载 作者:行者123 更新时间:2023-12-04 19:35:18 25 4
gpt4 key购买 nike

我们有一台 CentOS 7 机器,其中多个用户在某个项目中工作。我们想创建一个可以从 CentOS 服务器内部访问的本地 svn 存储库。
像“svn checkout”这样的普通svn命令总是需要一个URL
例如“svn checkout http:///svn/repo/path/”。
有没有办法在没有 http 的情况下在本地使用此命令,例如“svn checkout/svn/repo/path/”。
这是一个非常基本的问题,但我似乎没有找到答案。如果有人有任何帮助,将非常感谢...

最佳答案

技术上可以使用本地 file://访问协议(protocol)以在不部署任何 Subversion 服务器的情况下与存储库一起工作。见 https://subversion.apache.org/quick-start#setting-up-a-local-repohttps://svnbook.red-bean.com/nightly/en/svn.basic.in-action.html#svn.advanced.reposurls .
但是,如果存储库有多个用户,则需要部署服务器。请参阅 SVNBook 中的以下信息:

Do not be seduced by the simple idea of having all of your usersaccess a repository directly via file:// URLs. Even if the repositoryis readily available to everyone via a network share, this is a badidea. It removes any layers of protection between the users and therepository: users can accidentally (or intentionally) corrupt therepository database, it becomes hard to take the repository offlinefor inspection or upgrade, and it can lead to a mess of filepermission problems (see the section called “Supporting MultipleRepository Access Methods”). Note that this is also one of the reasonswe warn against accessing repositories via svn+ssh:// URLs—from asecurity standpoint, it's effectively the same as local usersaccessing via file://, and it can entail all the same problems if theadministrator isn't careful.

关于svn - 在 CentOS 7 机器中创建 SVN 存储库和访问,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71057936/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com