Install SVN
[Plain]View plaincopy
- Yum install-y Subversion
2. verify whether the installation is successful
[Plain]View plaincopy
- Svnserve -- version
3. Create an SVN version Library
[Plain]View plaincopy
- Mkdir SVN
- Svnadmin create SVN/Repo
Note:Repo is the version library name
4. Configure SVN
After a version library is created, three configuration files are generated under the conf directory of the version Library:
[Plain]View plaincopy
- [[Email protected] conf] # pwd
- /Root/SVN/repo/Conf
- [[Email protected] conf] # ls
- Authz passwd svnserve. conf
Description:
(1) svnserve. conf: SVN service configuration file.
(2) passwd: user name and password file.
(3) authz: Permission configuration file.
4.1 modify the passwd file
[Plain]View plaincopy
- [Users]
- Shang = 123456
- Li = 123456.
Note:Shang is the user name and 123456 is the password
4.2 Use the plaintext password for configuration
[Plain]View plaincopy
- VI/$ home/. Subversion/servers
- # Find the following content, comment out and change it to yes.
- Store-plaintext-passwords = Yes
4.3 modify the authz File
[Plain]View plaincopy
- [Groups]
- TEAM = Shang, Li
- [Repo:/]
- @ Team = RW
Note:Repo: Change svnserve. conf to the name of the SVN version library created earlier. 4.4
[Plain]View plaincopy
- [General]
- Anon-access = none
- Auth-access = write
- Password-DB = passwd
- Authz-DB = authz
5. Start and Stop SVN
5.1 start SVN
[Plain]View plaincopy
- Svnserve-d-r/root/SVN/
5.2 close SVN
[Plain]View plaincopy
- PS-Aux | grep SVN
- Kill-9 process ID
6. Import the project
[Plain]View plaincopy
- $ Mkdir myproject
- $ Mkdir myproject/trunk
- $ Mkdir myproject/branches
- $ Mkdir myproject/tags
- SVN import myproject SVN: // 192.168.5.228/repo/myproject-M "first import Project"
7. Export the project
[Plain]View plaincopy
- SVN Co SVN: // 192.168.5.228/repo/myproject
If you have set [Repository:/], you must write SVN: // 192.168.1.100/Repository when using the client tortoisesvn to access SVN.
Build SVN server under centos