Download and install the required documents:
1) Subversion 1.2.3
1) Subversion 1.2.3
(http://subversion.tigris.org/downloads/subversion-1.2.3.tar.gz)
2) Berkeley DB 4.4.20
2) Berkeley DB 4.4.20
(http://downloads.sleepycat.com/db-4.4.20.tar.gz)
3) Apache 2.0.54
3) Apache 2.0.54
( Http://apache.justdn.org/httpd/httpd-2.0.54.tar.gz
)
Log in as the root user.
Mounting the Apache
#tar -zxvf the httpd-2.0.54.tar.gz
#cd the httpd-2.0.54
#. / Configure-DAV --enable --enable --enable-SO-MODE-Maintainer
#make
#make the install
mounting Berkeley DB
#tar -zxvf DB-4.4.20.NC.tar.gz
#cd db-4.4.20.NC/build_unix/
# .. / dist / Configure --prefix = / usr / local / BDB
#make
#make the install
mounting the Subversion
#tar -zxvf Subversion-1.2.3.tar.gz
#cd Subversion-1.2.3
#. / Configure---with-Berkeley DB = / usr / local / BDB---with the apxs = / usr / local / apache2 / bin / apxs
#make
#make install
/ * you can use the following command to verify whether the installation was successful subversion * /
#svnadmin --version
create Repository
#mkdir -p / Home / svn / YourProject
#svnadmin the Create / Home / svn / YourProject
/ * is recommended to use the following directory structure * /
/ Home / YourProjectName / Trunk
/ Home / YourProjectName / Tags
/ Home / YourProjectName / branches
/ * If you are transferring from CVS over the project, you can use the following command to clean up your directory * /
#find ProjectName / -name CVS -exec RM -rf {} \;
import Source
#svn import -m "Initial import "/ home / yourprojectname file: /// home / svn / yourprojectname
start svn service
#svnserve -d
inspection services
#lsof -i: 3690
creating a user
# groupadd YourProject
# useradd-YourProjectName -m -G" IT's Project ADMIN "YourProjectName.
#useradd -G yourprojectname -m "it's andy." alu
#useradd -G yourprojectname -m "it's jon." jshen
#chown -R yourprojectname . yourprojectname /home/svn/yourprojectname
#chmod 770 /home/svn/ yourprojectname
#chmod -R g+w /home/svn/ yourprojectname
修改svn配置
vi /home/svn/ yourprojectname /conf/svnserve.conf
anon-access = read
auth-access = write
参考文章:
http://linux.chinaunix.net/news/info/2005-01-10/726.shtml
http://sunfreeware.com/subversion.html
http://www.germane-software.com/~ser/R_n_R/subversion.html
http://sanwangx.brain-c.com/archives/2004_11/12_153/
Log in as the root user.
Mounting the Apache
#tar -zxvf the httpd-2.0.54.tar.gz
#cd the httpd-2.0.54
#. / Configure-DAV --enable --enable --enable-SO-MODE-Maintainer
#make
#make the install
mounting Berkeley DB
#tar -zxvf DB-4.4.20.NC.tar.gz
#cd db-4.4.20.NC/build_unix/
# .. / dist / Configure --prefix = / usr / local / BDB
#make
#make the install
mounting the Subversion
#tar -zxvf Subversion-1.2.3.tar.gz
#cd Subversion-1.2.3
#. / Configure---with-Berkeley DB = / usr / local / BDB---with the apxs = / usr / local / apache2 / bin / apxs
#make
#make install
/ * you can use the following command to verify whether the installation was successful subversion * /
#svnadmin --version
create Repository
#mkdir -p / Home / svn / YourProject
#svnadmin the Create / Home / svn / YourProject
/ * is recommended to use the following directory structure * /
/ Home / YourProjectName / Trunk
/ Home / YourProjectName / Tags
/ Home / YourProjectName / branches
/ * If you are transferring from CVS over the project, you can use the following command to clean up your directory * /
#find ProjectName / -name CVS -exec RM -rf {} \;
import Source
#svn import -m "Initial import "/ home / yourprojectname file: /// home / svn / yourprojectname
start svn service
#svnserve -d
inspection services
#lsof -i: 3690
creating a user
# groupadd YourProject
# useradd-YourProjectName -m -G" IT's Project ADMIN "YourProjectName.
#useradd -G yourprojectname -m "it's andy." alu
#useradd -G yourprojectname -m "it's jon." jshen
#chown -R yourprojectname . yourprojectname /home/svn/yourprojectname
#chmod 770 /home/svn/ yourprojectname
#chmod -R g+w /home/svn/ yourprojectname
修改svn配置
vi /home/svn/ yourprojectname /conf/svnserve.conf
anon-access = read
auth-access = write
参考文章:
http://linux.chinaunix.net/news/info/2005-01-10/726.shtml
http://sunfreeware.com/subversion.html
http://www.germane-software.com/~ser/R_n_R/subversion.html
http://sanwangx.brain-c.com/archives/2004_11/12_153/
Reproduced in: https: //www.cnblogs.com/licheng/archive/2008/11/08/1329666.html