Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install subversion1.9.5 in Linux environment

2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces the relevant knowledge of how to install subversion1.9.5 in the Linux environment, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will have something to gain after reading this article on how to install subversion1.9.5 in the Linux environment. Let's take a look.

The installation environment and software version are as follows.

Subversion uses version 1.9.5, and the server uses Ali CVM, centos6.7 (64-bit).

1. The first step is now the software, the installation of svn requires the following software, apr-1.5.2.tar.gz, apr-util-1.5.4.tar.gz, zlib-1.2.11, sqlite-autoconf-3130000.tar.gz (the first four are dependent packages) subversion-1.9.5.tar.gz.

two。 Install the above 5 packages and use the command tar-zxvf (full name) to extract them.

Configure and install the above plug-ins

① apr

. / configure-- prefix= the path of the current file, such as:. / configure-- prefix=/rookie/software/apr-1.5.2, and then execute the make and make install methods.

② apr-util

. / configure-- prefix=/rookie/software/apr-util-1.5.4-- with-apr=/rookie/software/apr-1.5.2, and then execute make and make install methods.

The last two of ③ are similar to step ①, just change the installation path.

3.cd svnversion-1.9.5 (enters the svn decompressed file) executes the following method

The copy code is as follows:

. / configure-prefix=/rookie/software/subversion-1.9.5-with-apr=/rookie/software/apr-1.5.2-with-apr-util=/rookie/software/apr-util-1.5.4-with-sqlite=/rookie/software/sqlite-autoconf-3130000-with-zlib=/rookie/software/zlib-1.2.11

That is, configure all dependent paths and svn paths into svn and then execute the make and make install methods.

4. Configure environment variables

Vim / etc/profile-remember that source / etc/profie makes the configuration file effective after saving.

Path=svn path / bin:$path, such as: / rookie/software/subversion-1.9.5.

5. No error is reported after performing the above steps, indicating that svn has been successfully installed. You can use svn-- version to view the version. If you can view it, the installation is successful.

6. You can start the configuration after the installation is complete

① creates the svn directory mkdir / rookie/software/svnhome (the path can be picked up at will, depending on your preferences)

The file svnadmin create trunck created by ② (trunck can also name itself)

The configuration file of svn is saved in ③ cd / rookie/software/svnhome/trunck/conf---, and the subsequent operations are basically under this file.

four

Vim svnserve.conf and modify the configuration file as follows:

Anon-access = none (whether to log in anonymously as none)

Auth-access = write

Password-db = passwd

Authzauthz-db = authz

Realm = trunck (changed to your own warehouse name)

Note: how the above 5 must be top space, and the leftmost space can not be, if it is to remove # please pay attention to remove the space!

Vim authz

[/] (change [group] to this)-set permissions (can access all paths)

User = rw (user is your user name and has read and write access)

Vim passwd

User= 123456 (username = password)

Once ⑤ is configured, you can start svn

Svnserve-d-r / rookie/software/svnhome/trunck (default port 3960)

Use the svn list svn://ip address command to check whether the installation is successful. If the following occurs, no error indicates that the configuration is successful.

If the connection is not available, it is very likely that the permission configuration is not successful. Check the previous configuration.

If there is a configuration error, modify the configuration again

Use ps-ef | grep svn to view the svn process use kill-9 port number to kill svn

Then svnserver-d-r / rookie/software/svnhome/trunck starts svn

7. After the above, you can use the eclipse svn connection tool to connect. If the connection is rejected, the firewall port may not be open.

You need to open the current port, use iptables-I input-p tcp-dport 3960-j accept to open the port, and then you can happily use svn.

This is the end of the article on "how to install subversion1.9.5 in Linux". Thank you for reading! I believe you all have a certain understanding of the knowledge of "how to install subversion1.9.5 in Linux". If you want to learn more, you are welcome to 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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report