Because I used Git version control tools all the time, I tried svn in linux this time. I am Centos6.x and use yum for installation. Li
Because I used Git version control tools all the time, I tried svn in linux this time. I am Centos 6.xand use yum for installation.
The svn construction process in Linux is as follows:
1. First, check whether you have installed svn. if you have already installed svn, you don't have to worry about it.
Rpm-qa | grep subversion
2. if not, install svn.
Yum-y install subversion
3. test whether svn is successfully installed.
Svn -- version
Svn service configuration:
1. create a repository first
Svnadmin create/var/www/test_repo
2. configure the directory attributes and user permissions. if The repository is created successfully, you will see three files, svnserve. conf, passwd, and authz, under the test_repo/conf folder.
(1) set repository permissions, vi svnserve. conf
anon-access = noneauth-access = writepassword-db = passwdauthz-db = authz
(2) configure the user and password, vi passwd
[users]mckee = phpddt.com
(3) configure user operation permissions vi authz
[test_repo:/]mckee = rw
3. now you can start the svn service.
Svnserve-d-r/var/www -- listen-host 42.121.145.230
You can check whether the service is successfully started:
Netstat-tunlp | grep svn
In this simple way, the svn service has been set up, and you can checkout a working copy. because I actually write code in windows, I used the integrated GUI tool (TortoiseSvn download ).