Install Subversion Detail Guide under Linux __linux

Source: Internet
Author: User
Tags diff mkdir svn svn update
1 Download related software apache-2.x    http://httpd.apache.org  download source code package subersion     http:// subversion.tigris.org/  Download Source code package The version of Apache in this article is apache/2.2.4 (Unix) Subversion version: Svnserve 1.4.3 (r23084) 2 installation related software 2.1 ann Pack apache  1)./configure–prefix=/usr/local/apache (Installation directory) –enable-so–enable-proxy–enable-ssl–enable-vhost-alias –enable-mods-shared=most –enable-dav –enable-maintainer-mode Description: Where-enable-dav and- Enable-maintainer-mode is a compilation parameter that can be integrated into the subversion under Apache. –with-mpm=worker (this parameter, to read the relevant Apache documents to determine what kind of MPM, pending) 2) make (compile) 3) make install (install) 4) make clean (clear source code directory) 3 Create warehouse 2. 2 installation subversion  1) configuration./configure–prefix=/home/svn–enable-maintainer-mode –with-apr=/usr/local/apache2/ Bin/apr-1-config–with-apxs=/usr/local/apache2/bin/apxs–with-apr-util=/usr/local/apache2/bin/apu-1-config of which:/ Usr/local/apache2 is the installation directory for Apache, not the source code directory. 2. Make 3) make install 4 the plan for a clean warehouse typically has a warehouse where one or more project roots are located, and under each project root there are/trunk,/branches, and/tags three subdirectories, or another plan.       /
utils/
calc/
trunk/
tags/
branches/
calendar/
trunk/
tags/
branches/
...
office/
spreadsheet/
trunk/
tags/
branches/
...
One of the principles that must be followed in any planning, however, is to conform to the design of your project.
3.2 Create a warehouse build your warehouse according to the plan in the section above. 1 Create warehouse $ svnadmin create/path/to/repos Observe repos directory structure 2 according to warehouse planning, create temporary directory: $mkdir tmpdir $CD tmpdir $mkdir Boss (Boss is here Proje CT name) $mkdir boss/trunk $mkdir boss/tags $mkdir boss/branches 3) to add the warehouse created in the directory structure created above to 1)
SVN import. File:///path/to/repos–message ' Initial repository layout '
.: Represents the current directory
File segment: Warehouse created in Representative 1
4 Subversion Server Configuration Subversion Server operation is divided into two types: HTTP mode and TCP (in Svnserve) way. The 4.1 HTTP configuration combines Apache's DAV module to be implemented. Locate the configuration file httpd.conf under the Apache installation directory and modify the configuration file. <Location/svn> DAV svn svnpath/home/svn/repos </Location> 4.2 svn way configuration Subversion runs in Svnserve 1) Standalon E mode runs directly: #svnserve –d run Lsof-i: 3690 You can see that the SVN server is already running 2 xinetd mode under/etc/xinetd.d/to generate Svnserve files, as follows
Service Svnserve
{
Disable = no
Socket_type = Stream
protocol = TCP
wait = no
user = root
Server =/home/svn/bin/svnserve
Server_args =-I.
}
Edit/etc/services, join the bottom two lines:
Svnserve 3690/tcp # Subversion Svnserve
Svnserve 3690/UDP # Subversion Svnserve
Restart XINETD Service/usr/sbin/xinetd–restart
Run Lsof-i: 3690 You can see that the SVN server is already running the 5 server Configuration 5.1 Server configuration Subversion configuration file under the $svn_home/your repository/conf directory, Profile Name: svnserve.conf. 1 basic Rights Management Svnserve.conf's configuration style is similar to that of MySQL's configuration file. Linux based configuration file style is as follows: [XXX] section: Configuration segment configuration section below the configuration area, generally: variable = value in svnserve.conf [General] Paragraph, access rights are divided into three kinds: read,write,none Anon-access = None (for anonymous users) Auth-access = Write (authorized user) 2) based on SVN own rights management SVN itself through the PASSWORD-DB = userfile and Realm = My-my-right Limited management. PASSWORD-DB is the location where permission files are placed. Realm is the encrypted key permission file in a format similar to the following: [Users] a=123456 (where a is user name, 123456 is a password) 3) based on SVN+SSH Rights Management (abbreviated) Appendix: List of commands
Refer to the Subversion Command Reference manual for specific use
Subversion Command column client: SVN
SVN add
SVN cat
SVN checkout
SVN cleanup
SVN commit
SVN copy
SVN delete
SVN diff
SVN export
SVN help
SVN import
SVN info
SVN list
SVN log
SVN merge
SVN mkdir
SVN move
SVN Propdel
SVN propedit
SVN propget
SVN proplist
SVN propset
SVN resolved
svn revert
SVN status
SVN switch
SVN update
Subversion Command Column server:
Svnadmin List-unused-dblogs
Svnadmin Create
Svnadmin Dump
Svnadmin Help
Svnadmin load
Svnadmin Lstxns
Svnadmin Recover
Svnadmin Rmtxns
Svnadmin Setlog
Svnlook author
Svnlook Cat
Svnlook changed
Svnlook Date
Svnlook diff
Svnlook dirs-changed
Svnlook Help
Svnlook history
Svnlook Info
Svnlook Log
Svnlook proplist
Svnlook Tree
Svnlook youngest bash-3.2# ls-al/usr/local/lib/libexpat.*/usr/local/include/expat.h
-rw-r--r--1 root Wheel 40339 02:43/usr/local/include/expat.h
-rw-r--r--1 root Wheel 444628 02:43/usr/local/lib/libexpat.a
-rwxr-xr-x 1 root Wheel 793 02:43/usr/local/lib/libexpat.la
Lrwxr-xr-x 1 root Wheel 14 02:43
/usr/local/lib/libexpat.so-> libexpat.so.6
-rwxr-xr-x 1 root Wheel 265921 02:43/usr/local/lib/libexpat.so.6
bash-3.2#

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.