Install the SVN server on Ubuntu

Source: Internet
Author: User

Apache Subversion (SVN for short) is an open-source version control system installed on the SVN server in Ubuntu. It uses a branch management system as opposed to the cross-section (RCS) and CVS, it is designed to replace CVS. More and more control services on the Internet are transferred from CVS to Subversion. First, download and install the svn server from the image: [plain] sudo apt-get install subversion to enter the Directory and prepare to create the svn directory: [plain] cd/usr/local/create a svn Directory: [plain] mkdir svn modify the directory permission to 777: [plain] chmod-R 777 svn creates an svn repository sunny (sunny can be named at Will) [plain] svnadmin create/usr/local/svn/sunny: [plain] Under cd sunny/conf, modify the three configuration files in this directory (1) vi svnserve. conf // configure the version library information, the path of the user file and the user password file, and the path of the version Library [put # anon-access = read # auth-access = write # password-db = Passwd // remove the # And space in front of the four rows, change to anon-access = none // change to noneauth-access = writepassword-db = passwdrealm = sunny // change to your own version library to save (2) vi authz // file, create svn group and group user permissions [group] sunny = gep, wce // create a sunny group, and specify two users gep and wce [/] // specify the permissions under the root directory @ sunny = rw // the permissions of the sunny group users are read/write * = r // other users only have read permissions save and exit (3) vi passwd // create or modify the User Password [users] gep = 123456 // the password of the user whose username is gep is 123456wce = 123456 //... Save and exit, and then set the auto-start [plain] vi/etc/rc. local // <span style = "font-family: sans-serif;"> open the self-starting file </span>. The content of the file is as follows: [plain] #! /Bin/sh # This script will be executed * after * all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch/var/lock/subsys/local/usr/local/webserver/mysql/3306/mysql start ulimit-SHn 51200/usr/local/webserver/php/sbin/php-fpm start/usr/local/webserver/nginx/sbin/nginx svnserve-d-r/usr/local/svn/sunny #/usr/local/webserver/mysql/bin/mysql- u root-p-S/tmp/mysql. sock svn command: [plain] lsof-I: 3690 check whether svn has started ps aux | grep 'svn 'to find all svn-started processes kill-9 2505 kill 2505 the svn process svnserve-d-r/usr/local/found in/ svn/sunny start svn (you can put this in/etc/local/rc. svn up // Update file # svn commit-m "comment" xxx. php // submit the svn ci-m 'aaa' test. php // submit a file # svn add file // create a file and add it to svn add *. php // (add all php files in the current directory) svn delete test. php // delete test. php svn log test. php // view the log information of the test file svn co svn: // x. x. x. x. /// check out a version library file to the current directory svn switch -- relocate svn: // x. x. x. x svn: // x. x. x. x // locate the SVN repository address

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.