In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Install the package
If the subversion package is not installed, use the command sudo apt-get install subversion to install the package!
Select a file location
After installing the package, you need to select the SVN service file and the configuration file location. Take the directory / home/ svn/ as an example!
Create a version repository
Go to the directory cd / home/svn/ and create your own version library sudo svnadmin create / home/svn/eth20, but you need to create the directory eth20sudo mkdir eth20 first!
Use ls-ll to view the eth20 directory structure as shown in the figure:
The directory file structure of the version repository
View the configuration file directory conf as shown below:
Files under the conf directory
Modify the configuration file svnserve.conf under conf
[general]
# Anonymous users are not readable
Anon-access = none
# permission user can write
Auth-access = write
# password file is passwd
Password-db = passwd
# permission file is authz
Authz-db = authz
Modify the configuration file authz under conf
[groups]
Admin= eth20
[/]
@ admin = rw
* = r
The name of the group here is not necessarily admin, it can be set to any name, mainly to facilitate management; in addition, for example, the admin group and other users, you can set admin=eth20,eth201,eth202 and so on! In addition, the following permissions can be assigned separately or uniformly, and cannot be used at the same time, such as @ admin = rw or * = r, but cannot be used at the same time, otherwise an error will be reported!
Modify the configuration file passwd under conf
[users]
# harry = harryssecret
# sally = sallyssecret
Eth20 = 123456
Here is mainly to set the user password, such as the above is to configure the password for the user eth20 is 123456!
Start the SVN server
After completing the above work, use the command sudo svnserve-d-r / home/svn/ to start the SVN server!
-d daemon mode started
-r establish the root directory of the svn version library so that the client can access the version library without entering the full path!
Client connection test
To test the connection, the version library is: svn://ip [ip of your server] / / eth20 [version library you created]
Client check out
Error reporting during installation solution error: Invalid authz configuration
After we have completed the construction, we will find that the client may report an error message of "Invalid authz configuration", but there is no specific reason for the error. At this time, we can check the authz configuration file on the server side, as follows:
Svnauthz-validate / home/svn/eth20/conf/authz
At this point, the server will return the location of the error, as well as the cause of the error, and then modify it according to the number of rows and the reason. It may be written as -, or it may be that the permissions are set for a certain group above, and the permissions are set for all groups below. The specific reason depends on the returned information!
Error: can't open file'\ db\ txn-current-lock' denied access
After we have successfully checked out, when we are ready to submit the file, there may be an error Error: Can't open'/ home/svn/db/txn-current-lock': denied access!
The reason for this error is mainly due to the permission setting problem. The solution is to add read and write permissions to all files and subdirectories under the / home/svn directory, using the following command:
Sudo chmod-R o+rw / home/svn
Summary
The above is to build a SVN server on ubuntu, as well as some problems and solutions that may arise. If there is anything wrong with the above, please criticize and comment, thank you!
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
Import queueq = queue.Queue () put in data: q.put ('test') take out data: q.get ()
© 2024 shulou.com SLNews company. All rights reserved.