1 Download Subversion
Shell>yum Install Subversion
2 Viewing the installed version
[[Email protected]/]# SVN--version
3 Build a repository for a project
[Email protected]/]# svnadmin create/var/svndata/zmqnw_mobile
4 Importing project files
[Email protected] conf]# export EDITOR=VI
[[Email protected] conf]# svn import/home/www/zmqnw_mobile file:///var/svndata/zmqnw_mobile-m ' import '
The log information has not been modified or is not specified
A) termination, c) continue, E) Edit:
5 Configuration Project Files
[Email protected] conf]# VI passwd
Add the following line:
Cuijian = cj4678799
Zhixiaofei = ZXF
[Email protected] conf]# VI svnserve.conf
The changes are as follows:
Anon-access = Read
auth-access = Write
Password-db = passwd
[[Email protected] hooks]# VI post-commit--Configure hook file, auto submit
Join:
!/bin/sh
Export Lang=en_us. UTF-8
SVN checkout File:///var/svndata/zmqnw_mobile/home/www/zmqnw_mobile
[Email protected] hooks]# chmod a+x post-commit
6 Exporting the project to the test installation directory
[Email protected] www]# SVN checkout File:///var/svndata/zmqnw_mobile/home/www/zmqnw_mobile
7 Opening the SVN daemon
[Email protected] www]# svnserve-d-r/var/svndata
The client input can be opened as follows:
Svn://192.168.0.61/zmqnw_mobile
CentOS 6.5 Web Service mode install SVN test environment