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

What is the configuration and installation method of Centos Nginx and Svbversion

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces you Centos Nginx and Svbversion configuration installation method is how, the content is very detailed, interested friends can refer to, hope to be helpful to you.

According to the Internet, now Nginx does not provide SVN support, and I happen to install SVN, and SVN can be installed in two ways, one is independent installation and the other is through apache. If I do not plan to continue to install apache, I can only choose independent configuration. Fortunately, the shoulders of our predecessors were still broad.

SVN stores data in two ways: 1. BDB 2. FSFS. At the same time, it also gives the disadvantages of the first way, so I choose the second way for convenience.

In the words of colleagues, downloading with wget is fast and successful, so it can also be downloaded by browsers, and the version can be modified according to your own needs.

Obtain the svn installation package:

# wget "http://subversion.tigris.org/downloads/subversion-1.6.6.tar.gz"

# wget "http://subversion.tigris.org/downloads/subversion-deps-1.6.6.tar.gz"

Compile svn to log in as the root user:

# tar xfvz subversion-1.6.6.tar.gz

# tar xfvz subversion-deps-1.6.6.tar.gz

# cd subversion-1.6.6

#. / configure-prefix=/opt/svn-without-berkeley-db

(note: run in svnserve mode without apache compilation parameters. Save the version library in fsfs format without compiling berkeley-db)

# make

# make install

# make clean

Find export PATH at / etc/profile, and add SVN Path before this line to facilitate operation:

# vi / etc/profile

PATH=$PATH:/opt/svn/bin

Facts have proved that this method requires a restart of the system, of course, it is also possible to modify the PATH=$PATH:/opt/svn/bin administrator directly, but after my test, the whole system environment has not changed, but it is useful under the current console. My system uses centos5.x.

Test whether the installation is successful:

# svnserve-version

Or

# / opt/svn/bin/svnserve-version

Or

# svn-version

Results:

Then you can use svn-- help to see a lot of options

# svn co http://xxx/trunk / home/www/test can checkout the files in url to / home/www/test

So it's done.

If you are setting up a svn server, follow the steps in the http://www.uusnn.com.cn/?p=67 article to create a user-level version library, and it is important to grant permissions.

It should be noted here that he will first ask me to enter the password of the currently logged-in user, and then enter the user name and password of the permission on the svn. If the input is wrong, it will report an "authentication failure" error.

About Centos Nginx and Svbversion configuration installation method is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

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

Servers

Wechat

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

12
Report