Detailed steps to use Ubuntu environment to build a svn server record
First, check whether they have installed svn
Command: svn
If the following message indicating that it has installed
Second, uninstall the installed svn
命令:sudo apt-get remove --purge subversion
Third, the installation svn
1. Install svn
Update command: sudo apt-get update
install svn: sudo apt-get install subversion
2. Create the svn repository
Svn create a directory in your home directory, then create a repository directory in the svn
command: sudo mkdir / home / svn
sudo mkdir / home / svn / repository
3. Modify the repository file permissions
命令:sudo chmod -R 777 /home/svn/repository
4. Create Repository
Command: sudo svnadmin create / home / svn / repository
after the execution is completed, will have the following files in the repository directory
The switching current directory to the repository
Command: cd / home / svn / repository
6. Set db file permissions
Command: sudo chmod -R 777 db
7. Change the current directory to break conf
Command: cd conf
8. Modify profile svnserve.conf
Command: sudo vi svnserve.conf
before the amendment:
Modified:
Description # :( remove the front and top grid)
anon-Access = none anonymous user unreadable
auth-access = write permissions users can write
password-db = passwd password file passwd
authz-db = authz file permissions for the authz
9. modify the password file to add user access
Command: sudo vi passwd
new user format: name = Password
10. to increase user test directory permissions
Command: sudo vi authz
Users test has permission to read and write the repository root
Fourth, start the service, and listening on port 81
Command: svnserve -d -r / home / svn --listen-port 81
if prompt: insufficient privileges
Switch to root privileges
command: sudo su
retry start svn: svnserve -d -r / home / svn --listen-port 81
to see whether the start svn
command: ps -ef | grep svnserve
Five out of service
命令:killall svnserve
Attachment: precise control of directory permissions
[/]
A = rw
A repository root has read and write permissions
[/ Android]
A RW =
B = R & lt
A directory has read and write permissions Android
B has permission to read the directory Android, but not write permission
[/ Android / Project1]
A = RW
* = R & lt
A has / Android / Project1 directory read and write permissions
everyone has permission / Android / Project1 directory read
转载于:https://www.cnblogs.com/daimengxiaoerge/p/10238503.html
六、获取当前最新修订版本号
svnlook youngest /home/svn/repository/