In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
In view of the fact that when building, referring to a lot of materials on the Internet, while the online materials are useful, they also cheat a lot of people.
The purpose of this article is to make sure that the successors will not make mistakes when setting up the svn server and will no longer be harmed by the deceptive works all over the Internet.
/ * start * /
System environment: Centos 6.5
Step 1: install svnserve through the yum command, as follows:
> yum-y install subversion
This command automatically installs svn server-related services and dependencies, and stops the command automatically when the installation is complete.
To view the svn installation location, you can use the following command:
> rpm-ql subversion
Step 2: create a version library directory (this is only a directory, which provides a storage location for later creation of the version library)
Select to create a version library under the var path, which is currently in the root directory. Create it as follows:
> mkdir / var/svn/svnrepos
Step 3: create a svn version library
Based on the path established in step 2, create a version library with the following command:
> svnadmin create / var/svn/svnrepos/xxxx (xxxx is the name of your expected version library, which can be customized)
After the creation is successful, enter the xxx directory
> cd / var/svn/svnrepos/xxxx
Enter the directory and you can see the following file information:
Step 4: configuration modification
Go to the directory of the created version library, that is, the xxxx you created earlier.
Enter conf
> cd / var/svn/svnrepos/xxxx/conf
Three important configuration files are stored in the conf directory, as follows:
Authz: responsible for the management of account permissions and controlling whether the account has read and write permissions
Passwd: responsible for user list management of accounts and passwords
Svnserve.conf:svn server profile
The details are as follows: (I hope you will strictly follow the following information and do not have to refer to other materials on the network)
Modify the authz file information as follows:
> vi authz
At the end of the file, add the following:
Just add it at the end, and there is no need to modify or add anything in other parts of the file (please ignore the place where groups was mosaic, which is actually a useless record, I forgot to delete it). The end is as follows:
[\]
Account number 1 = rw
Account number 2 = rw
.
Rw indicates that this account is given read and write permissions. Please pay attention to the slash in []. It must be a backslash. Some tutorials say that you need to add the name of the version library in parentheses. I directly suggest that you write here. This allows more access and avoids some errors.
Modify passwd file information
> vi passwd
The account password file does not need to be modified, and the account and password information can be directly appended to the file. Note the format is as follows:
Account number = password
For example: admin = 123456
Modify svnserve.conf (important)
Vi svnserve.conf
If the contents of the original file are all commented out, we only need to remove 4 comments before the specified content, as follows:
Most of the network materials will ask you to remove the comment on authz-db = authz. After I have been cheated many times, although the svn server can connect, it will always prompt "authentication failed", and it will be normal if you leave it out.
There are also most materials that will ask you to fill in the server ip at realm = My First Repository. After testing, it is of no use after filling in, so you can remove the comments without any modification.
At this point, the configuration has been completed and the account information has been added successfully.
Step 5: turn on the firewall
In most cases, the installation of the server is complete, and after the configuration is complete, the svn server cannot be connected, which is due to the firewall problem. You can execute the following three commands one by one.
> / sbin/iptables-I INPUT-p tcp-- dport 3690-j ACCEPT
> / etc/init.d/iptables save
> service iptables restart
The execution result is as follows:
Six: start the svn server
Under the directory, execute the following command:
> svnserve-d-r / var/svn/svnrepos
After starting successfully, you can use ps-aux to check whether the service starts successfully.
Seven: client accesses svn server
In the windows client, enter the address: svn://ip address: 3690/xxxx (the iP address is the name of the version library created above by the ip,xxxx of your linux, and 3690 is the default port of svn)
Pop-up and enter the user name and password, enter to access
At this point, the construction of the svn server under Linux is summarized. Thank you for your reading.
If this article is helpful to you, please help promote it
(original, reproduced, please indicate the source, pirated must be investigated)
Transferred from: https://www.cnblogs.com/mymelon/p/5483215.html
Finally: if the client connection error, please restart the machine to try, I can restart the machine after many attempts to connect to the server
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.