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

Implement the method of using the same MYSQL and the same web page profile between Web servers

2025-02-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

Load balancing (Cloud Load Balancer) is a service that distributes traffic to multiple CVMs. Load balancing can expand the external service capacity of the application system through traffic distribution and improve the availability of the application system by eliminating a single point of failure. The cloud load balancer service virtualizes multiple CVM resources located in the same region into a high-performance and highly available application service pool by setting virtual service addresses (VIP). Distribute the network requests from the client to the cloud server pool according to the way specified by the application. The load balancer service checks the health status of the CVM instances in the CVM pool and automatically isolates the abnormal instances, thus solving the single point problem of the CVM and improving the overall service capability of the application. Today, I will show you how to use the same MYSQL and the same web page profile between Web servers.

Foreword:

The combination of NFS, LAMP and BIND is used to deal with the increase of traffic in the network, which leads to the load operation of the CVM. To make it possible to use the same MYSQL and the same web page profile between Web servers.

Experimental environment:

HostNameIP Planning nfs.preferred.com192.168.1.6NFSns.preferred.com192.168.1.5DNSmysql.preferred.com192.168.1.4MYSQLwww.preferred.com192.168.1.3WEBwww.preferred.com192.168.1.2WEB

Lab Topology:

The steps of the experiment:

First, set up NFS

The following operations implement [root@localhost ~] # yum install nfs-utils-y / dev/null [root@localhost webdata] # chmod-R 777 wordpress [root@localhost webdata] # ls-l drwxrwxrwx 5 root root 4096 Oct 11 2016 wordpress-rw-r--r-- 1 root root 4372680 Oct 11 2016 wordpress-3.2.1-zh_ dev/null [root @ localhost webdata] # vim / etc/exports / mydata 192.168.1.4 on the nfs.preferred.com server (rw No_root_squash) / webdata 192.168.1.2 (rw,no_root_squash) 192.168.1.3 (rw,no_root_squash) [root@localhost ~] # service rpcbind start Note: rpcbind is a RPC service It is mainly responsible for notifying the client and server of the nfs port number when nfs is shared. [root@localhost ~] # service nfs start Starting NFS services: [OK] Starting NFS quotas: [OK] Starting NFS mountd: [OK] Starting NFS daemon: [OK] Starting RPC idmapd: [OK] [root@localhost ~] # showmount-e 192.168.1.6

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

Database

Wechat

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

12
Report