当前位置:网站首页>Install SVN in Pagoda and build SVN version Library

Install SVN in Pagoda and build SVN version Library

2022-06-26 04:17:00 Never bow

svn The default port number is 3690   Be careful The pagoda needs to be opened 3690 port     The server also needs to be open 3690 port

 

Open the pagoda command line , yum install SVN

First step   install SVN command :

yum  -y  install subversion

There should be no problems during the installation process , If yes, please Baidu by yourself .

This is a successful installation .

The second step Create directory

  Generally speaking, it means where you want to put your documents

I want to put all my svn The project is on /www/svndata Under the table of contents

mkdir  /www/svndata

The third step establish svn Version Library

I want to svn Create a project under directory , The name is called obj ,

The order is :

svnadmin create /www/svndata/obj

Step four Modify the project configuration file

Once created, you need to set who can access your project , Assign personnel permissions .

Enter your project

# Entry project 
cd /www/svndata/obj 

# Lists the files 
ll

You will get this picture

Among them conf Is the configuration project folder

# Go to the configuration folder 
cd conf
# Lists the files 
ll

You will get

authz  Configure read and write permissions

password User account password configuration

svnserve.conf  svn Service configuration

First, configure the user information

vim password

I added it myself Account No obj_root password 123456

After modification, save

Configure permissions

vim authz

obtain

If you don't have... In your file [/]

Add by yourself [/]

obj_root=rw 【obj_root The account has read and write permission 】

*=   【 Other anonymous accounts do not have any permissions 】

The last step To configure svnserve.conf

vim svnserve.conf

obtain

 

You need to uncomment

anin-access = read

auth-access = wirte

password-db = password

authz-db = authz

Change and uncomment this field

realm = /www/svndata

explain

anon-access = read  Anonymous users can read 

auth-access = write  Authorized users can write 

password-db = passwd  Which file is used as the account file 

authz-db = authz  Which file is used as the permission file 

realm = /www/svndata  Authentication space name , Version Library Directory , Set this value , Client download svn Version Library in 

function svnserve

function svnserve

function svnserve

svnserve -d -r /www/svndata

 

Connect svn

The connection format is  

svn://121.123.123.132/obj

svn:// ip Address / The project name you set

My project name is obj See Step 2 and step 3 above for details

Be careful The pagoda needs to be opened 3690 port

The server also needs to be open 3690 port

Just input the account and password after connecting

 

 

 

 

 

 

 

 

原网站

版权声明
本文为[Never bow]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202180536198886.html