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 are the steps of source code compilation, installation and configuration of SVN server under Linux

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article to share with you is about the Linux source code compilation installation configuration SVN server steps, Xiaobian think quite practical, so share to everyone to learn, I hope you can read this article after harvest, not much to say, follow Xiaobian to see it.

SVN (subversion) works in two ways:

One is Apache based http, https web page access form;

There is also a stand-alone server model based on svnserve.

SVN also has two ways to store data: one is to store data in Berkeley DB database; the other is to store data in ordinary file FSFS.

Because Berkeley DB mode may lock data in use, FSFS mode is generally recommended to be safer.

To achieve objectives:

Install SVN server in svnserve standalone server mode using FSFS data storage source code compilation.

Specific operation:

Operating System: CentOS 6.x

Server IP: 192.168.21.134

I. Close SELINUX

vi /etc/selinux/config

#SELINUX=enforcing #http://www.bbqmw.net/qm_yeqm/comment out

#SELINUXTYPE=targeted #Comment out

SELINUX=disabled #added

:wq! #Save Exit

setenforce 0 #Make configuration take effect immediately

Second, open the firewall port

Standalone server mode based on svnserve, default port 3690

vi /etc/sysconfig/iptables #Edit Firewall Configuration Files

# Firewall configuration written by system-config-firewall

# Manual customization of this file is not recommended.

*filter

:INPUT ACCEPT [0:0]

:FORWARD ACCEPT [0:0]

:OUTPUT ACCEPT [0:0]

-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

-A INPUT -p icmp -j ACCEPT

-A INPUT -i lo -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 3690 -j ACCEPT

-A INPUT -j REJECT --reject-with icmp-host-prohibited

-A FORWARD -j REJECT --reject-with icmp-host-prohibited

COMMIT

:wq! #Save Exit

service iptables restart #Finally restart the firewall to take effect

III. Installation of Compilation Toolkit

yum install apr* autoconf automake bison cloog-ppl compat* cpp curl curl-devel fontconfig fontconfig-devel freetype freetype* freetype-devel gcc gcc-c++ gtk+-devel gd gettext gettext-devel glibc kernel kernel-headers keyutils keyutils-libs-devel krb5-devel libcom_err-devel libpng* libjpeg* libsepol-devel libselinux-devel libstdc++-devel libtool libtool* libgomp libxml2 libxml2-devel libXpm* libtiff libtiff* libX* make mpfr ncurses* ntp openssl openssl-devel patch pcre-devel perl php-common php-gd policycoreutils ppl telnet t1lib t1lib* nasm nasm* wget zlib-devel zlib unzip perl-ExtUtils-Embed

yum remove apr apr-util subversion subversion-libs #Remove existing svn and dependent packages from the system

4. Download the dependency packages required by svn

Description: Install svn required package: apr apr-util serf scons openssl

Package directory: /usr/local/src

1. Download APR

https://dist.apache.org/repos/dist/release/apr/apr-1.5.2.tar.gz

The above is the Linux source code compilation installation configuration SVN server steps, Xiaobian believes that some knowledge points may be our daily work will see or use. 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.

Share To

Servers

Wechat

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

12
Report