1. Yum install SVN
2. Create a repository
Mkdir Liu // Liu is the repository folder.
Svnadmin create Liu
After execution, the Liu folder contains several more files, as shown below:
Conf dB format hooks locks readme.txt
3. Edit several files under Conf.
VI authz
Add
[/]
Shin = RW // indicates that the shin user has read and write permissions on the warehouse root.
VI passwd
Add
Shin = 123456 // indicates that the password for adding a user Shin is 123456.
VI svnserve. conf
Set
Anon-access = read
Auth-access = write
Password-DB = passwd
Authz-DB = authz
Realm = Liu // remove the rows #. The front side cannot be a space. Finally, this realm = Liu refers to the warehouse.
4. Start
Svnserve-d-r/usr/local/SVN/Liu // specify the specific location of the svn Repository
Then you can use SVN: // ip to access it. If not, you can check the firewall settings.
I don't know why I was always unsuccessful at the beginning. I can use it for some reason and record it.