Instructions on setting up Svn in centos 6.5x64
The system environment is minimal installation
System Environment
[[Email protected] ~] # File/sbin/init
/Sbin/init: Elf 64-bit LSB shared object, x86-64, Version 1 (sysv), dynamically linked (uses SHARED libs), for GNU/Linux 2.6.18, stripped
[[Email protected] ~] # Cat/etc/RedHat-release
Centos release 6.5 (final)
Meet the related environment before installing SVN
Use Local CD as the repository Source
Run Yum groupinstall "additional development" "development tools" "Perl support" first"
Then, prepare the svn-related installation package.
Http://subversion.tigris.org/downloads
Subversion-deps \ Supports files such as libraries
Subversion \ main program
Decompress the package to the/usr/SVN \ directory to create
[[Email protected] subversion-1.6.17] # pwd
/Usr/SVN/subversion-1.6.17
Then compile and install
./Configure -- prefix =/opt/SVN \ configure the installation directory
Make & make install
Add at the end of VI/etc/profile
Path = $ path:/opt/SVN/bin
Export path
[[Email protected] subversion-1.6.17] # source/etc/profile \ make the modification take effect
[[Email protected] subversion-1.6.17] # svns
Svnserve svnsync
[[Email protected] subversion-1.6.17] # svnserve -- version
Svnserve, version 1.6.11 (r93411)
Compiled Apr 11 2013, 16:13:51
Configure to create an SVN Library
CD/usr/SVN
[[Email protected] SVN] # svnadmin create svntest
[[Email protected] SVN] # cd svntest/
[[Email protected] svntest] # ls
Conf dB format hooks locks readme.txt
[[Email protected] svntest] # cd CONF/
[[Email protected] conf] # ls
Authz passwd svnserve. conf
Definition Library
Edit VI svnserve. conf to add
[General]
Anon-access = none
Auth-access = write
Password-DB = passwd
Authzauthz-DB = authz
Realm = svntest (library name)
Define Access Permissions
Edit VI authz add
[/]
Testuser = RW
[Testsvn]
Testuser = RW
Define User Password
Edit VI passwd and add user name and password
Testuser = svnfirst
Start SVN
[[Email protected] ~] # Svnserve-d-r/usr/SVN/svntest/
SVN access SVN: // 192.168.18.201: 3690/
The default SVN port is 3690. You need to open this port on the firewall.
This article from the "ignoring the flow" blog, please be sure to keep this source http://aiqhx.blog.51cto.com/5768342/1558109
Build Svn in centos 6.5x64