Installation and deployment of svn in Linux and deployment of linuxsvn

Source: Internet
Author: User

Installation and deployment of svn in Linux and deployment of linuxsvn

I encountered a problem in my recent work. I developed a management system with one of my associates and modified it based on the original code, I have to confirm with him whether it is the latest file before making any modifications. This has a significant impact on the efficiency of your work, so I found svn usage on the Internet. Install and deploy svn to solve the problem of Code Synchronization during development.

It is easy to install on Linux.

First. Check whether yum is in use. If yum is in use, kill it and run yum install-y subversion.

[Root @ localhost ~] # Ps aux | grep yum
Root 2293 0.0 0.0 103252 836 pts/0 S + grep yum
[2] + Killed yum install subversion

[Root @ localhost ~] # Yum install-y subversion

    

Second, view the installation result

    

[Root @ localhost ~] # Svnserve -- version

Svn installation is successful everywhere! Next, we will deploy the project to svn.

######################## Svn deployment ############## ########

First, create a svnrep folder to perform centralized resource management.

[Root @ localhost ~] # Mkdir svnrep

    

Secondly, create the project repository file projectName. In this case, the repository file of projName is available under svnrep, And you can view it in projName, including files such as conf and hooks.

[Root @ localhost ~] # Svnadmin create svnrep/projName

        

   

Next, configure passwd (User Account Management file), authz (user permission management file), and svnserve. conf under conf (specify passwd/authz to be viewed during warehouse access)
[Root @ localhost conf] # pwd
/Root/svnrep/projName/conf

[Root @ localhost conf] # vim authz

    

Use vim for editing. Insert under [groups]

Admin = testUser

Insert [projName:/]

@ Admin = rw

    

Keep exiting. 1. Click esc and shift + z twice. Use the same method to edit the passwd and svnserve. conf files

Passwd file

    

Svnserve. conf file. Remove comments and set anon-access = none to reject anonymous access.

    

Finally, we start the svn service. The projName repository under svnrep is created. Therefore, run svnserve-d-r/root/svnrep/to check whether the service is started.

[Root @ localhost conf] # svnserve-d-r/root/svnrep/
[Root @ localhost conf] # ps aux | grep svnserve
Root 2446 0.0 0.1 182664 1060? Ss svnserve-d-r/root/svnrep/
Root 2448 0.0 0.0 103252 840 pts/0 S + grep svnserve

Complete the configuration of the svn server and connect to the local machine using svn: IP Address: 3690/projName. Import the project. Click the project folder and use tortoiseSVN for import.

    

Enter the user information you Just configured during import! Complete the import .. Check out the project from svn to myEclipse for development.

    

 

    

  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.