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.
Shin = RW // indicates that the shin user has read and write permissions on the warehouse root.
Shin = 123456 // indicates that the password for adding a user Shin is 123456.
VI svnserve. conf
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.
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.