#svn的下载安装命令
Yun-y Install Subversion
#检查是否安装成功
Svnserve--version
#表示安装成功 (You can see the version number in which you installed it 1.6.11)
# Create a repository directory for SVN libraries (mkdir is the Linux Create Directory command)
Mkdir/depot/svn/svndepot
# Specify the SVN repository (SVN will generate some required files in this directory)
Svnadmin Create/depot/svn/svndepot
Post-build directory structure
CONF: Permissions to configure SVN members, account passwords, etc.
DB: Version data store directory
Format: A file that stores an integer that represents the library hierarchy version
Hooks: Store the Repository hook directory
Locks: A visitor to track a library
# # # Modify configuration information for SVN libraries
#添加账号 (Edit conf/passwd)
vi/depot/svn/svndepot/conf/passwd
Added an account with a Chenfei password of 123456
#修改账号权限
Vi/depot/svn/svndepot/conf/authz
Modify the permissions for Chenfei to read and write RW (read write)
[/] indicates that the directory with limited account operational permissions is the root directory
[/foot/bar] indicates that the directory with limited account operational permissions is/foo/bar
[Groups] represents a group of users, in the format group_name = user1,user2 multiple users separated by commas.
@group_name = RW assign read and write permissions to accounts under this group
[Repository:/baz/fuz] indicates permission control for/baz/fuz/directory under the repository named repository
* = R indicates that all users are assigned permission to read permissions
#指定已添加的账号及权限的配置文件地址
VI svnserve.conf
Anon-access:none not authorized user Optional [read none write]
Auth-access:write assigning rights to read-write optional for users after authorization (login) [Read none write]
AUTHZ-DB = Authz: User Rights profile is Authz file under current directory (CONF)
Password-db = passwd: The account profile is the passwd file under the current directory (CONF)
Realm = My First Repository: Displays the name of the client when viewing files on the SVN server
- SVN service start and stop
#服务启动 (/depot/svn/starts the directory where the SVN library is located)
Svnserve-r-d/depot/svn/
#服务停止
Killall Svnserve
-
- The client installs the SVN tool.
- Right-click to select SVN Checkout input SVN address (svn://192.168.1.1/depot/svn/svndepot/)
- Update the files in this directory to local (the service you just created is an empty file)
- Test create a new file commit to the server to test whether the save was successful
- There are two ways to configure permissions and account configuration on the Internet. An auto-generated Authz and passwd file is used. One is to generate authz.conf and passwd files yourself. The first time I tested it was the way I built it. The commit does not appear in the Login input box. However, the submission shows that the user is not authorized (no permissions). Maybe I have a problem with my own configuration. It is recommended that the novice use the system auto-generated file configuration.
- SVN address input at the end of the last try to add/not add issues that may occur without permission
- Do not restart the configuration file on the SVN server after you modify it
- Configure the account password when the user name when the first line does not have a space or error. This is also true when configuring svnserve.conf
- The SVN version of the server and client can be inconsistent
- The SVN client has previously configured an account password and the SVN repository address is the same, and the account password does not simultaneously clean up the SVN account password. Right-click Tortoies SVN >settings>saved data>authentication Data >clear or Clear all. Clear can choose to clean the account password for the specified library address. Clear all means clean up all
- If you encounter problems, you can comment on them. We are happy to answer your questions. such as the wrong place in the blog also please comment, look forward to your correction.
Date: 2017-05-06 03:09:04
Installation and configuration of SVN under Linux (Mode yum)