Linux (CentOS) install VisualSVN

I just bought a cloud server on Double 11. Now install visualSVN with this brand new server. System: CentOS7

I am new. If you don’t understand, please don’t tell me "then can you help me?" I will attach the website that I refer to and ask the boss if I have something to do.

This article mainly refers to https://www.cnblogs.com/guoxiangyue/p/9254259.html

1.
yum install -y subversion Note: yum -y install subversion is the command I found on the Internet at first, but it didn't work after several times, but later I found that it seemed to be wrong.

Possible problems: Loaded plugins: fastestmirror, langpacks
Insert picture description here
solution:
1.
If yum install epel-release cannot be solved , continue to follow the steps below
1. Modify the configuration file of the plugin
vim /etc/yum/pluginconf.d/fastestmirror. conf
enabled = 0//
Change from 1 to 0, disable the plug-in 2. Modify the yum configuration file
vim /etc/yum.conf
plugins=0// Change to 0, do not use the plug-in
reference: https://blog.csdn .net/weixin_30883777/article/details/101788727

The above method is useless for me
Insert picture description here

2. Check the svn version, if there is one, install
svnserve --version
Insert picture description here
3. Create the code base

3.1 First create a folder to store
mkdir -p /opt/svn/repositories

3.2 Automatically create repositories library
svnadmin create /opt/svn/repositories

After creation, you can view the corresponding file in the folder
cd /opt/svn/repositories and then ls
Insert picture description here
4. Configure related files
cd /opt/svn/repositories/conf

4.1 User password passwd configuration
vim passwd
Insert picture description here
4.2 Permission control configuration
vim authz
Insert picture description here
5.3 Service svnserve.conf configuration
vim svnserve.conf

I know that you are lazy, so I will write it for you. Below the picture, the
Insert picture description here
#anonymous access permission can be read, write, none, and the default is read
anon-access = read

#Make authorized users have write permissions
auth-access = write

#Password database path
password-db = passwd


#Access control file authz-db = authz

#Authentication namespace, subversion will be displayed in the authentication prompt, and as the key word of the credential cache
realm = My First Repository

4.4 Start the svn service
svnserve -d -r /opt/svn/repositories

5. View related status

5.1 View the process
ps -ef|grep svn|grep -v grep

5.2 View svn listening port
netstat -ln |grep 3690

5.3 Stop and start svn service
Shut down: killall svnserve
start: svnserve -d -r /opt/svn/repositories to
Insert picture description here
check the process and port, if you can't find it, just close it.

6. Install the client and use, personal preparation refer to
https://www.runoob.com/svn/tortoisesvn-intro.html

This article mainly refers to https://www.cnblogs.com/guoxiangyue/p/9254259.ht

Guess you like

Origin blog.csdn.net/MYNAMEL/article/details/109366121