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