Set up the svn service in linux and the linuxsvn Service

Source: Internet
Author: User
Tags svn update

Set up the svn service in linux and the linuxsvn Service

To install svn, you must install the apr and apr-util software first.

Download and install APR
wget http://apache.fayea.com//apr/apr-1.5.2.tar.gztar -zxvf apr-1.5.2.tar.gzcd apr-1.5.2./configure --prefix=/usr/local/apr && make && make install
Download and install
apr-util wget http://apache.fayea.com//apr/apr-util-1.5.4.tar.gz tar -zxvf apr-util-1.5.4.tar.gz cd apr-util-1.5.4 ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr make && make install

 

Download and install svn

wget http://mirror.bit.edu.cn/apache/subversion/subversion-1.9.2.tar.gztar -zxvf subversion-1.9.2.tar.gzcd subversion-1.9.2
Download sqlite from the current directory
wget http://www.sqlite.org/sqlite-amalgamation-3071501.zip
Then configure
./configure --prefix=/usr/local/subversion --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-utilmake && make install

 

Create a directory to store all SVN files mkdir/home/svn create a Resource Warehouse svnadmin create/home/svn/project run SVN service svnserve-d-r/home/svn vim/ etc/rc. add the above line in local for SVN startup svn setting hook (hooks) go to the hooks directory cp post-commit.tmpl post-commit chmod 777 post-commit script content/usr/bin/svn update -- username svn -- password svn123svn/home/wwwroot/test1.com

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.