国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 課堂 > 基礎知識 > 正文

LVS負載平衡群集

2024-09-12 20:30:13
字體:
來源:轉載
供稿:網友
  LVS負載均衡群集
  環境準備:
 
  CentOS 7-1:調度器,網關(需要兩塊網卡)外:12.0.0.1 內:192.168.200.1
 
  CentOS 7-2:網站服務器(Apache)192.168.200.110
 
  CentOS 7-3:網站服務器(Apache)192.168.200.120
 
  CentOS 7-4:提供共享存儲 192.168.200.130
 
  win7-1:客戶端 12.0.0.12
 
  yum在線安裝前置操作:
  1.共享存儲服務器CentOS 7-4的操作:
 
  [root@localhost ~]# rpm -q nfs-utils
  nfs-utils-1.3.0-0.48.el7.x86_64
  [root@localhost ~]# rpm -q rpcbind
  rpcbind-0.2.0-42.el7.x86_64
  2.節點服務器CentOS 7-2和7-3兩臺節點服務器:
 
  [root@localhost ~]# yum install httpd -y
  3.調度器網關CentOS 7-1操作:
 
  //要先添加一個網絡適配器,成為兩個網卡
  [root@localhost ~]# yum install ipvsadm -y
  共享存儲服務器CentOS 7-4:
  //先將網卡更改為僅主機模式
  [root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-ens33
  BOOTPROTO="static"      //將dhcp改為static
  DEVICE="ens33"
  ONBOOT="yes"
  IPADDR=192.168.200.130      //在末行下插入:IP,子網,網關
  NETMASK=255.255.255.0
  GATEWAY=192.168.200.1
  修改完成后輸入:wq保存退出
  [root@localhost ~]# service network restart
  Restarting network (via systemctl):                        [  確定  ]
  [root@localhost ~]# systemctl stop firewalld.service
  [root@localhost ~]# setenforce 0
  [root@localhost ~]# systemctl start nfs.service
  [root@localhost ~]# systemctl status nfs.service
  ● nfs-server.service - NFS server and services
     Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; disabled; vendor preset: disabled)
     Active: active (exited) since 二 2019-11-26 17:42:05 CST; 11s ago
  ......省略多行,狀態為Active說明正常
  [root@localhost ~]# systemctl start rpcbind.service
  [root@localhost ~]# systemctl status rpcbind.service
  ● rpcbind.service - RPC bind service
     Loaded: loaded (/usr/lib/systemd/system/rpcbind.service; indirect; vendor preset: enabled)
     Active: active (running) since 二 2019-11-26 17:40:23 CST; 4min 26s ago
  
  此時回到存儲服務器CentOS 7-4上看是否有此文件:
 
  [root@localhost ~]# cd /opt/
  [root@localhost opt]# ls
  accp  benet  rh
  [root@localhost opt]# cd accp/
  [root@localhost accp]# ls
  index.html
  [root@localhost accp]# cat index.html
  this is accp web
  //此時有我們新建的index.html文件

(編輯:武林網)

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 福泉市| 信丰县| 蕉岭县| 十堰市| 房山区| 江油市| 岑溪市| 报价| 宁陕县| 衡阳市| 三原县| 洛浦县| 互助| 琼中| 裕民县| 梅州市| 安乡县| 秦皇岛市| 麻城市| 名山县| 沈丘县| 肇东市| 卢湾区| 罗源县| 沽源县| 尖扎县| 新和县| 凤阳县| 汝阳县| 治县。| 元谋县| 耒阳市| 许昌县| 霸州市| 双柏县| 靖西县| 白沙| 象山县| 木兰县| 红桥区| 深水埗区|