1. Install Linux
Execute the following command, a prompt appears in the middle, select Y to
Yum Install Subversion
2. Create a repository location
Svnadmin Create/usr/java/testjenk
3. Configure the Resource library
Go to the Conf folder to configure
- Authz #权限配置文件
- passwd #用户名密码文件
- Svnserve.conf #资源库配置文件
3.1 Vim svnserve.conf
Need to open the following several commands, directly remove the preceding # and the space is good
# anon-access = Read # auth-access = Write # password-db = passwd
After modification
# Configure the path of the repository information, user files, and user password files anon-access = none # to noneauth-access = WritePassword -db = passwdauthz-db = Authz
3.2 Vim Authz
Set the permissions under the root directory, Subman the user has read and write permissions, other users do not have permissions
3.3 Vim passwd
Set the password for the Subman user
3.4 Setting up self-booting
Add the following content
Svnserve-d-r/usr/java/testjenk
The SVN process can be viewed with the following command
' SVN '
You can kill and then start the SVN process by executing the following command
Svnserve-d-r/usr/java/testjenk
Attention:
SVN repository Start-up mode, such as Svnrepo under the Testjenk and Myrepo two repositories
- Single Version library starter svnserve-d-r/usr/java/svnrepo/testjenk
- Multi-repository Starter svnserve-d-r/usr/java/svnrepo
The difference between these two launches is that when you start SVN, you specify the startup parameters in the command-R directory.
4. Port Open
If the SVN repository is set up on the cloud service, you need to open port 3690 in the security group for other hosts to access, and the SVN service should start.
5. Access
Connect successfully to upload or download items
Use of SVN in Linux