In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "the steps of building a svn server on the ubuntu system". In the daily operation, I believe that many people have doubts about the steps of building a svn server on the ubuntu system. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about the steps of building a svn server on the ubuntu system. Next, please follow the editor to study!
If I want to build a SVN service on a Ubuntu, I need to install Apache for all the tutorials I see online, but I have already installed Nginx, so I don't want to install another Apache just for SVN. After some groping, I finally got the minimized SVN service, and the extra software didn't need to be installed.
Here is the detailed process:
1 install subversion through apt-get
The code is as follows:
Apt-get install subversion
I went astray and thought there would be a subversion-server package, but I couldn't find it. Later, I learned that this subversion contains both the server and the client.
2 find a directory as the root directory of SVN
I chose / data/svn. The following commands also follow this directory. Please modify them according to your choice.
3 create a library
Mine is called akcms. After execution, I will find that a bunch of things are automatically generated in the / data/svn/akcms/ directory, including a folder called conf.
The code is as follows:
Svnadmin create / data/svn/akcms
4 then modify the three files under / data/svn/akcms/conf/, which are svnserve.conf, passwd and authz in turn. Their three functions are: main profile, password profile and permission profile.
5. Edit the file vi / data/svn/akcms/conf/svnserve.conf
Find the following items, modify according to the following settings, remove the previous comments, and there can be no spaces at the beginning of each line.
The code is as follows:
Anon-access = none
Auth-access = write
Password-db = passwd
Authz-db = authz
6. Edit the file vi / data/svn/akcms/conf/passwd
The code is as follows:
[users]
Mantou = 123456
The format is very simple, user name, password, one per line, the default is plaintext save
7 Editing the file vi / data/svn/akcms/conf/authz
The code is as follows:
[groups]
Develop = mantou
[/]
@ develop = rw
This configuration is a little more complicated: the [groups] group sets the user group. For example, the develop I set can be understood as a developer group, and the equal sign is followed by members of the group, each separated by a comma. The next [/] sets permissions for a specific address, sets permissions for the develop group with @ develop, and rw for both reading and writing. There are other complex uses, but I only know the simplest and most commonly used, so I skip all the others.
8 start the service
The code is as follows:
Svnserve-d-r / data/svn
Then put this command in rc.local to start the SVN service every time you boot.
9 next test and verify, find a directory on the client and execute the command:
The code is as follows:
Svn co svn://192.168.0.111/akcms-username=mantou-force
Svn://192.168.0.111/akcms is the address of the newly created code repository, assuming that the service was built on 192.168.0.111. Parameter-username is a specified user name, if not specified, it will log in as the current system user. The system user and the SVN user are irrelevant, so it is better to specify them manually. -- force parameter is optional. If you repeatedly test on the same address, delete, build, delete, delete, the SVN client will cache the UUID of the last successful checkout. If the UUID is deleted and rebuilt, it will change, and the client verification inconsistency will prompt "Repository UUID 'xxx' doesn't match expected UUID' xxx'". Add-force parameter will ignore this check and force checkout.
If all goes well, it will prompt "Checked out revision 0." and then generate an akcms directory under the current directory, which will contain the code for the code repository.
At this point, the study on "the steps to build a svn server on the ubuntu system" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.