Install the svn server in centOs5.10 and centos5.10svn
/// // ============ = Install the svn server in CentOs5.10 ======================== ///////////////// //////////////////
// 1. Install SVN
# Yum list sub *
# Yum install subversion
// 2. Check whether the installation is successful.
# Svnserve -- version
// 3. Create an svn Repository
# Mkdir-p/opt/svn/
# Mkdir-p/opt/svn/svntest/
// 4. Create an svn version Library
# Mkdir-p/opt/svn/svntest
// 5. Set permissions
Note:
(1) svnserve. conf: svn service configuration file.
(2) passwd: user name and password file.
(3) authz: Permission configuration file.
1. Modify the passwd file
- [Users]
- Hu = 123456.
- Yao = 123456.
Note: hu is the user name and 123456 is the password.
2. Set the plaintext password.
[Plain]View plaincopy
- Vi/$ HOME/. subversion/servers
- # Find the following content, comment out and change it to yes.
- Store-plaintext-passwords = yes
3. Modify the authz File
[Plain]View plaincopy
- [Groups]
- Team = hu, yao
- [Svntest:/]
- @ Team = rw
Note: svntest is the name of the svn version library created earlier.
4. Modify svnserve. conf
[Plain]View plaincopy
- [General]
- Anon-access = none
- Auth-access = write
- Password-db = passwd
- Authz-db = authz
5. Start svn
Svnserve-d -- listen-port 9090-r/opt/svn