Building a Load Balancing Cluster Based on Address Translation (LVS-NAT) Mode

This post is a case post. For an overview of the principles and related overviews of LVS Load Balancing Clusters, please refer to the post: LVS Load Balancing Cluster for Centos 7 1. Introduction to Cases 1. Case Environment 2. Experimental results Using NAT-mode clustering technology, the LVS load dispatcher is a gateway server where all ...

Posted by scottreid1974 on Sat, 07 Dec 2019 03:02:18 -0800

DR mode of LVS load balancing cluster deployment

I. working principle of DR mode          As shown in the figure, the working principle of LVS-DR has been explained in the figure. Let's list the characteristics of LVS-DR mode: 1. RIP can use private address or public network address. If public network address is used, RIP can be accessed directly. 2. All requested packets must pass through ...

Posted by KC_Geek on Fri, 06 Dec 2019 16:53:46 -0800

How to configure multiple JDK environment variables under Linux(CentOS7)

I. Linux version 2. Copy and paste multiple jdks, as follows cp -R jdk1.7.0_80/ jdk1.7.0_80-2 cp -R jdk1.7.0_80/ jdk1.7.0_80-3 3. Configure multiple JDK environment variables Add the following after the / etc/profile file # JDK1 environment configuration export JAVA_HOME=/usr/local/program/jdk1.7.0_80 export JRE_HOME=$JAVA_HOME/jre export ...

Posted by lasse48 on Fri, 06 Dec 2019 02:21:17 -0800

centos7 installation and configuration of rsync and problems encountered

install Server side Install software: yum -y install rsync To create a directory to synchronize: mkdir -p /data Edit the configuration file: vim /etc/rsyncd.conf motd file = /etc/rsyncd.motd transfer logging = yes log file = /var/log/rsyncd.log #Log storage path port = 873 #Port number address = 192.168.0.37 #IP address uid = root #User ...

Posted by Pie on Tue, 03 Dec 2019 21:25:11 -0800

html template escape of django

The environment is the same as the django article. Start django's web Service: ]# cd py3/django-test1/test4 ]# python manage.py runserver 192.168.255.70:8000 In an html template, if the content you want to display contains html Tags: Edit view: ]# vim bookshop/views.py from django.shortcuts import render from .models import * ... def htmlTes ...

Posted by katarra on Mon, 02 Dec 2019 19:20:52 -0800

Deep in Debian Linux install ffmpeg

Installing CMake and CCMake sudo apt install cmake sudo apt install cmake-curses-gui Install X265 development library sudo apt-get install libx265-dev Install Yasm Download address: http://www.tortall.net/projects/yasm/releases/ tar -xvf yasm-1.3.0.tar.gz cd yasm-1.3.0/ ./configure make && make install Install OpenCoreAMR Download addr ...

Posted by dlgilbert on Mon, 02 Dec 2019 14:23:04 -0800

Centos 7.6 configuring nginx reverse proxy load balancing cluster

I. Introduction to the experiment Three centos7 virtual machines are used to build a simple nginx reverse proxy load cluster, Address and function introduction of three virtual machines 192.168.2.76 nginx load balancer 192.168.2.82 web01 server 192.168.2.78 web 02 server 2. Install nginx software (the following three virtual machines should be ...

Posted by dr_overload on Mon, 02 Dec 2019 10:34:12 -0800

Direction resolution of django template: generate link address based on url

Environment the same django article. web services running django:  cd py3/django-test1/test4  python manage.py runserver 192.168.255.70:8000 First, use a tag hyperlink in html to automatically match the url route of the application, and then display the specified html page: Edit view function: vim bookshop/views.py from django.shortcuts imp ...

Posted by Hoppus on Mon, 02 Dec 2019 08:15:47 -0800

CentOS 6.9 install mongodb and PHP mongodb extensions

Notes:CentOS6.9yum install mongodb and PHP mongodb extensions1. Installation dependency yum install libcurl openssl 2. Download and unzip wget -c https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-4.0.5.tgz tar -zxvf mongodb-linux-x86_64-4.0.5.tgz 3. Mobile mongodb mkdir -p /usr/local/mongodb mv mongodb-linux-x86_64-4.0.5/* /usr/local/mongod ...

Posted by icm on Sun, 01 Dec 2019 21:01:27 -0800

LNMP + haproxy + preserved load balancing - basic service preparation

Log service Modify the log service configuration and restart the log service; vim /etc/rsyslog.conf Edit the system log configuration to specify the included profile path and rules: $IncludeConfig /etc/rsyslog.d/*.conf Create a separate configuration file for haproxy; vim /etc/rsyslog.d/haproxy.conf Edit the configuration file as follows: ...

Posted by nadz on Sun, 01 Dec 2019 13:03:36 -0800