Get the App
SLTechnology News&Howtos  ›  Servers  › 

What are the steps of source code compilation, installation and configuration of SVN server under Linux

Shulou Source: shulou.com Published: 2022-06-01 03:15:28 10月15日 Update

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.

Tags: Servers services configuration data methods compilation storage source code patterns software packages firewalls stand-alone fire protection steps files more comments knowledge ports Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Apple MariaDB Redmi Shulou Technology