In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to build a svn server in the Linux system. The editor thinks it is very practical, so I hope you can get something after reading this article. Let's take a look at it with the editor.
Svn is the version control system, and svn is the most popular open source version control system that can be used to manage any type of file, including program source code.
Installation steps
1. Check whether the system is installed. If so, uninstall it.
Check: svnserve-version
Uninstall: yum remove subversion
2. Installation
Yum install subversion
3. Set up SVN library (file location can be free)
Create a warehouse folder: mkdir-p / opt/svn/repository
Create a warehouse as svn administrator: svnadmin create / opt/svn/repository
After executing the above command, automatically establish the repositories library, check the / opt/svn/repository folder and find that it contains conf, db,format,hooks, locks, README.txt and other files, indicating that a SVN library has been established.
4. Permission configuration
(1) authz file configuration, which sets which users can access which directories: enter the folder generated above / opt/svn/repository/conf
Configure the authz file, vi authz, and append the following to the authz file, with the user name on the left and read and write permissions on the right (r, w, rw, no access)
Read and write permissions for each directory can be finely controlled, such as:
(2) passwd file configuration mainly adds user name and password, such as:
(3) svnserve.conf file configuration configuration access permissions
5. Start svn
I suggest to specify the start-up mode of the port, if you build multiple warehouses, it is also easy to manage.
The default port of svn is 3690, which needs to be added in the firewall to be accessed in the svn client.
Again, I chose to start with port 3691.
Launch command: svnserve-d-r / opt/svn/repository-listen-port 3691
6. View svn processes
Ps-ef | grep svn, you can see that the service starts successfully. If you want to restart, kill-9 pid, and then start it again using the command svnserve-d-r / opt/svn/repository-listen-port 3691.
At this time, using the svn tortoise client connection will find that svn://ip:port/opt/svn/repository cannot be used. This is because linux does not open the port and needs to add it manually.
The steps are as follows:
Vi / etc/sysconfig/iptables, open new port
Restart the firewall
Service iptables restart
Re-use the client and you can connect normally!
Using svn, multiple people can jointly develop a project to achieve the goal of resource sharing and centralized management.
What are the versions of Linux? the versions of Linux are Deepin, UbuntuKylin, Manjaro, LinuxMint, Ubuntu and so on. Among them, Deepin is one of the best-developed Linux distributions in China; UbuntuKylin is a derivative release based on Ubuntu; Manjaro is a Linux release based on Arch; LinuxMint's default Cinnamon desktop is similar to Windows XP's easy-to-use; Ubuntu is the Linux operating system based on desktop applications.
The above is how to build the svn server in the Linux system. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
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.