Linux Knowledge ten: SVN installation configuration and use. SVN integration with Apache

2010-11-12  来源:本站原创  分类:OS  人气:211 

svn installation and use of knowledge:
svn install the required software: apr, apr-util, sqlite, neon, subversionyum install subversion:
Online installation repository. . / Configure - prefix = / usr / local / subversion - with-apxs = / usr/local/apache2/bin/apxs - with-apr = / usr/local/apr/bin/apr-1-config - -with-apr-util = / usr/local/apr/bin/apu-1-config - with-ssl - with-zlib - enable-maintainer-mode: when you install the subversion configuration coefficient.
svn - version | svnserve - version: See SVN version.
svnserve-d | svnserve-d [- listen-port port number]-r / usr / bin: Start SVN services.
netstat-nl | grep 3690: View SVN occupied port 3690 status.
ps-ef | grep svn: View SVN process is started.
htpasswd-c / SVNHome / conf / passwd.conf apache: create a file in the SVN account called apache user.
useradd-s / sbin / nologin-d / dev / null svn: svn create a dedicated user.
chown-R svn.svn / usr / local / SVNHome / SVNRoot / husumiao: distribution to the directory owner, is a group.
usage eg: svn delete. / tobeRemoveDir: to exclude from the svn management.
passwd.conf file in Linux, set the rules:
[Test: /] / / This means the root of the warehouse test access
admin = rw / / test the user has read and write permissions to the warehouse wooin
husumiao = r / / test the user has read access to the warehouse bao
[Test2: /] / / test2 warehouse access the root directory
wooin = r / / wooin test2 warehouse users only read access to the root directory
bao = / / bao test2 warehouse users without any privileges under the root directory
[/] / / This means that the root of all warehouses
* = R / / this says to all users have read permissions

SVN command-line knowledge:
svn help [command]: Show command help.
Method of establishing a repository: mkdir SVNHome files and conf, SVNRoot subfolders after SVNRoot use svnadmin create husumiao: Create named husumiao repository, modify husumiao / conf / passwd file the password-db = svnserve.conf .. / .. / .. / conf / passwd.
svnadmin create - fs-type fsfs / usr / local / SVNHome / SVNRoot / husumiao: two ways to establish a repository.
[[Into the repositories into the directory: cd .. / SVNHome new version of the library name: mkdir / test Create repository: svnadmin create - fs-type fsfs / SVNHome / test modify the authentication mechanism: anon-access = none, auth-access = write, password-db = / opt / svn / conf / passwd, auth-db = / opt / svn / conf / authz, realm = module repository after the authorization sub-folder and all files: chmod 777/775-R text (folder name)]]
After creating a unified repository configuration permits more difficult, in the new version of the library found in conf / svnserve.conf add the file or the corresponding modified as follows:
anon-access = none
auth-access = write
password-db = / usr / local / SVNHome / conf / passwd
auth-db = / usr / local / SVNHome / conf / authz
realm = module
/ Usr / local / SVNHome / conf / passwd file information configuration: [users] 1 = password user name, user name, 2 = password.
/ Usr / local / SVNHome / conf / authz file information configuration: [users] 1 = password user name, user name, 2 = password.
svn import / directory to import File: / / / usr / local / svnroot -M "Text": Import data into the repository,-m description is necessary.
svn add. / file: svn to add new content (file or folder.)
svn ci | commit-m "description": submitted version,-m description is necessary.
svn delete svn: / / ip / repository / file directory or file-m "description": Delete the repository specified file,-m description is necessary.
svn up | update-r version number file: the file in the repository updated to specify the version of operating.
svn resolved: clean up the repository.
svn lock-m "Help" file, svn unlock file: file locking and unlocking.
svn checkout must pay attention to: ps-ef | grep svnserve svnserve information displayed data point to address is the address you store the repository (eg: usr / local / SVNHome / SVNRoot).
If not, the first stop and then with pkill svnserve svnserve-d-r data storage repository address (eg: / usr / local / SVNHome / SVNRoot /), then use svn co svn: / ip / name to export the repository repository .
svn co | checkout - username username - password password svn: / / domain name or IP address / library name | svn checkout svn: / / domain name or IP address / Library Name: Export repository operations.
svn co | Checkout File: / / / repository location (eg: usr / local / SVNHome / SVNRoot / husumiao /): use local papers to export the repository.
After the svn checkout, svn will remember the user's information, if you want to change, you can delete the current os user / .subversion / auth / svn.simple inside information, you can change the inside of the file or svn - username abcd info svn: / / ip / repository: to change the user abcd.
svnadmin dump the repository location (eg: / usr / local / SVNRoot / SVNHome / repository name)> file location (eg: / www / file name): export a repository of information to a file.
svnlook tree usr / local / SVNHome / SVNRoot / husumiao /: a list of ways to view the file structure in the repository.
svn ls | list svn: / / ip / repository name | file: / / / repository location: See the repository file.
svn ls | list - verbose svn: / / ip / repository name | file: / / / repository location: detailed model view the repository of documentation, including date and rights, and other related information.
svn st | status path: the directory files and subdirectories under the state, normal state does not show (not svn's control; M: the content is modified; C: conflict; A: Booking into the repository; K: locked) .
svn st | status-v path: display files and subdirectories in the state (first column remains the same, the second column shows the working version, the third and fourth column shows the version number of the last modification and modification of people) Note: svn status, svn diff and svn revert command in case of no network can be implemented, because the local svn. svn retained in the local version of the original copy.
svn log path: View the log information (eg: svn log test.php shows all the changes recorded in this document, and the version number changes).
svn info path: View file details (eg: svn info test.php).
svn di | diff path: the difference, based on a modified version of the file and compared (eg: svn diff test.php).
svn di | diff-rm: n path: version m and version n of the difference, (eg: svn diff-r 200:201 test.php).
svn merge-rm: n path: the difference between the two versions will be merged into the current file (eg: svn merge-r 200:205 test.php, the version of the difference between 200 and 205 merge into the current document, but generally conflicts will need to deal with it).
svn sw | switchs: Update the working copy to a different URL (eg: switch URL [PATH] | switch-relocate FROM TO [PATH ...]。
svn resolved: conflict resolution, remove the working copy of the directory or file a "conflict" status (ef: resolved PATH ...), the book does not semantically resolve conflicts or remove the conflict markers, it just removes the conflict, relevant documents, and then let the PATH to be committed again.
svn cat TARGET [@ version]: output the contents of the specified file or URL, if you specify the version of the specified version from the beginning to find (eg: svn cat-r PREV file> file (PREV is the previous version, you can also write specific version number, so the output can be submitted.)
SVN General:
SVN because the target machine actively refused it, not connectivity solution: svnserve-d-r server service open, svnserve.conf file in which configuration.
No repository found solutions: first, stop and then with pkill svnserve svnserve-d-r data storage repository address (eg: / usr / local / SVNHome / SVNRoot /), then use svn co svn: / ip / repository name Export repository.
Authentication Failed Solution: See svnserve.conf file password-db file exists corresponding to the corresponding file directory and suffix.

Integration with the Apache SVN:
Corresponding to the httpd.conf file to modify, after the installation of subversion, apache's conf / httpd.conf file will be automatically added module.
LoadModule dav_svn_module modules /
LoadModule authz_svn_module modules /
So the corresponding documents to automatically copy the apache / modules, this work would not have their hands out. Need to modify their own hands last httpd.conf under apache add the following:
<Location /svn> # Define web directory is / svn
DAV svn # open the svn (svn integration of apache's Oh)
SVNPath / usr / local / SVNHome / SVNRoot # repository directory
SVNListParentPath On # open the parent directory features svn repository
SVNParentPath / usr / local / SVNHome # specify the parent directory location, after all the repository will be stored in the directory
AuthType Basic # Specify the licensing model
AuthName "SVN REPOS" # log the window title display SVN REPOS
AuthUserFile / usr / local / SVNHome / conf # to access the repository specified in the account and password storage file, the file needs to apache's htpasswd command to create
AuthzSVNAccessFile / usr / local / SVNHome / conf / auth # access to the repository specified user and group permissions control file
Require valid-user # require valid users can access
</ Location> # end mark field Note:
(1) SVNPath must be used with. / Svnadmin create / data / svn / svnroot the same directory.
(2) directory permissions set to 755 svnroot

Editing knowledge:
Modify the Zend Studio for Chinese / English: Open the user profile: ... ... \ ZDE \ config_5.5 \ desktop_options.xml,
The highlight of which no print preview?
1. <customized_property>
2. <locale Language="en" country="" variant=""/>
3. </ Customized_property>
No print preview to highlight?
1. <customized_property>
2. <locale Language="zh" country="" variant=""/>
3. </ Customized_property> libxml2 knowledge: libxml2-2.6.32.tar.gz: install package.
. / Configure - prefix = / usr / local / php - with-apxs = / usr / local / apache - with-mysql: configuration ready to install.
yum install libxml2: Online install the upgrade.
ps-ef | top: View the system all processes.
ps-ef | grep bash / conf / ssh / file name / Process ID: View shell process information / systems in various configurations / server account to log / file name running the process occupied / process status.
ps-ef | more: run-time process | page viewing.
gcc file name. c-o file name compiled: compile C program using the system file, then compile using. / compile the following file names: the implementation file.
php file name. php: execute php files.
pwd / man pwd: View the current directory / view the current directory information.
cd -/cd/cd ..: Back to the previous directory / top level directory / parent directory, cd /: into the root directory.

  • Linux Knowledge ten: SVN installation configuration and use. SVN integration with Apache 2010-11-12

    svn installation and use of knowledge: svn install the required software: apr, apr-util, sqlite, neon, subversionyum install subversion: Online installation repository. . / Configure - prefix = / usr / local / subversion - with-apxs = / usr/local/apa

  • MyEclipse in the SVN installation configuration Beginner's Guide 2010-11-03

    This section explain the installation of MyEclipse in the SVN configuration, mainly MyEclipse6.X and MyEclipse7.X, the following is a specific description, and I welcome that we can learn together. 1.SVN Chinese official website: http://www.subversio

  • Ubuntu SVN installation configuration is very simple 2010-12-22

    1, first need to install Ubuntu SVN. SVN under Ubuntu installation is very simple, sudo apt-get install subversion, waiting to complete the installation of Ubuntu SVN; 2, check out files (checkout). Use the command: svn co http:// {svn repository url

  • SVN installation configuration and simple to use 2011-06-30

    SVN is an increasingly widespread use of this article describes SVN SCM software to install and configure and simple to use A, Subversion download and install in the windows registry download the SVN server Setup-Subvers

  • SVN installation configuration and integration with MyEclipse use development 2010-06-22

    First install the server and client software: Setup-Subversion and the Subversion of the Windows client TortoiseSVN The two software must be installed, click here to download the address you provide: Setup-Subversion:

  • svn installation configuration 2010-10-14

    1. Software Download: Setup-Subversion-1.6.13.msi (server software), TortoiseSVN- (client software), MyEclipse's svn plugin 2. Followed by installation of Setup-Subversion-1.6.13.msi, TortoiseSVN-

  • suse linux android sdk download. installation. Configuration 2011-05-22

    Download android sdk Installing android sdk tar-xf android-sdk_r11-linux_x86.tgz Configuration vi / etc / profile.local vi / root / bashrc In these two files to add the following configuration # Androi

  • svn server configuration and myeclise svn configuration 2010-04-30

    svn server and client installation must be the same version, such as 1.4x, 1.5x, the most commonly used is 1.4x. 1.4x Server Download Address: 1 .. 4x Client Download: Co

  • Linux Knowledge IX: LAMP.phpMyAdmin installation. Configuration. Integration and use of Detailed 2010-11-12

    Linux system installation and use of bear in mind: 1, view the permissions are allowed. 2, see whether the subsidiary version of the corresponding software version. 3, the view directory services directory is corresponding with the operation. apache

  • [Reserved] Linux SVN Installation and Configuration 2011-08-27

    Linux SVN Installation and configuration of the original address: Linux SVN Installation and Configuration step 1 The subversion yum install subversion step 2 Installing the Linux SVN module apache

  • linux svn installation and configuration, not with apache 2011-04-26 Today, a colleague engaged in SVN Server , SVN Fu Wuqi I also considered Bijiao Shu Di, and when he encountered a configuration problem is the package configuration file letter authz always a problem, before when

  • linux svn installation and configuration 2010-09-04

    First, install the software to wget wget svn's official website is After extracting the ab

  • FEDORA SVN installation and configuration under Category: Linux Comments (1), browsing (94) 2009-12-22

    0814 step 1 The subversion yum install subversion step 2 Install the apache svn module yum install mod_dav_svn step 3 Build svn repository file mkdir / var / svn step 4 SVN repository set up and modify / var / svn user groups and users svnadmin creat

  • oracle - Linux - Unix under the ODBC installation. Configuration and Programming 2010-04-12

    Transfer from: Linux / Unix under the ODBC installation, configuration and programming 2004-04-23 15:18 pm From: Linux documents are shown: Www.8s8s.coM Address: unknown Content: ODBC principle Linux / Unix

  • svn installation under linux 2010-06-09

    To Red Hat Enterprise Linux 5 as an example to explain. Related series: jdk installation under linux ant installation under linux linux installation under redis svn installation under linux Svn version 1.6.1 installed 1. Download svn Download: http:/

  • Linux SVN Installation Use 2011-06-11

    Linux SVN Installation Use The Goal of the Project is to Build a Subversion Version Control System that is a compelling replacement for CVS in the Open Source community. The Software is released under an Apache / BSD-Style Open Source license. SVN is

  • ubuntu installation configuration under svn + apache2 2011-06-14

    ubuntu installation configuration under svn + apache2 1 installed (using apt-get install installation) sudo apt-get install subversion sudo apt-get install libapache2-svn sudo apt-get install Apache2 2 Create the parent directory repository sudo mkdi

  • Linux SVN server configuration independent 2011-08-08

    Introduction: independent with Apache SVN server is not installed, the connection is not independent SVN server using HTTP protocol. This is a relatively quick SVN server configuration. One. Download Tools 1.subversion-1.6.17.tar.gz 2.subversion-deps

  • JDK1.6 installation configuration under the LINUX 2010-03-25 DK1.6 under the LINUX install and configure Java for beginners is a must to start Java programming, how JDK1.6 installation and configuration under the LINUX became the primary issue, then this article

  • Linux vsftpd installation configuration to use (more) 2010-02-26

    Linux vsftpd installation configuration to use (more) In this paper, a number of previous articles written on many occasions with their own installation and configuration experience, written in more detail, the article finally ftp command set with al