Installation 2.21 lnmp review and enterprise 7.3 virtual machine

A, lnmp

A data flow: client -> cdn -> Access Stratum -> Web Server -> App Dynamic Data -> Database -> -> ->

There is a hardware problem, all of them need to be monitored

1、client:

ie firebox dns (focus on distributed principle) cache hosts os


2、cdn

varnish (high-tech energy) squid (old) nginx, Ali Each city has cdn, Huawei highest R & D investment funds, tng, openresty.

There will be network switching center

3, the access layer

cca, ccp (Cisco)

Data stream distribution

lvs four nginx haproxy (algorithm is better) seven

The firewall uses openresty better.

HA (scheduler): lvs using keep RHCS (Red Hat wherein there, 2.5w)

rhel -> centos, oel (stronger than centos): rhel most reliable, except that the adjustment parameters,

People began to ignore the bottom, because there is migration of cloud computing, critical control node uses rhel, centos compute nodes


middle layer

4, web server

和 apache nginx, fire


web firewall, api, lua and javas,

middle layer


5, app dynamic data


tomcat, java more

6, Database

DB mysql,newsql,mosql


nginx underlying kernel model io ipo kiko, encoded by a C

7, a hardware problem

disk: solid state distributed storage of large data hadoop opensty
Virtual Machine -> docker container technology -> k8s (Google)

8, monitoring zabbix

elk warning analysis

Second, the 7.3 virtual machine installation and setup

1, ip configuration

1) get the real card

we /boot/grub2/grub.cfg

linux16 /vmlinuz-3.10.0-514.el7.x86_64 root=/dev/mapper/rhel-root ro crashkernel=auto rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap rhgb quiet LANG=en_US.UTF-8 net.ifnames=0

reboot

2) Configuration ip

[root@localhost sysconfig]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO=static
DEVICE=eth0
ONBOOT=yes
IPADDR=172.25.85.1
PREFIX=24
GATEWAY=172.25.85.250
DNS=114.114.114.114

 

2, source disposed yum

we /etc/yum.repos.d/yum.repo
yum repolist

[dvd]
name=rhel7.3
baseurl=http://172.25.85.250/7.3yumpak
gpgcheck=0

3, configure the local parsing

vi /etc/hosts

172.25.85.250   foundation85.ilt.example.com
172.25.85.1     server1
172.25.85.2     server2
172.25.85.3     server3
172.25.85.4     server4
172.25.85.5     server5
172.25.85.6     server6
172.25.85.7     server7

4, set the server name

hostnamectl set-hostname server1

5, the installation software

yum install vim lftp net-tools -y

6, related services shut down and set the boot does not start

systemctl stop NetworkManager
systemctl disable NetworkManager

7, turn off the firewall and kernel

systemctl stop firewalld
systemctl disable firewalld

vim /etc/sysconfig/setliux

SELINUX=disabled

Third, the master copy

1, compressed master installation tool

yum install libguestfs-tools.noarch -y

2, compressed wood tray

virt-sparsify --help
virt-sysprep --help

rpm -qf /usr/bin/virt-sparsify
cd /var/lib/libvirt/images/
virt-sparsify --compress base.qcow2 new.qcow2
ls
virt-sysprep -d base

3. Copy snapshots

qemu-img create -f qcow2 -b base.qcow2 server1
qemu-img create -f qcow2 -b base.qcow2 server2
qemu-img create -f qcow2 -b base.qcow2 server3
qemu-img create -f qcow2 -b base.qcow2 server4
qemu-img create -f qcow2 -b base.qcow2 server5
qemu-img create -f qcow2 -b base.qcow2 server6
qemu-img create -f qcow2 -b base.qcow2 server7

 


 

 

Smooth upgrade hot deployment

Guess you like

Origin blog.csdn.net/qq_41627390/article/details/87885890