当前位置: 首页 > news >正文

广州网站建设哪家技术好网店运营工资一般多少

广州网站建设哪家技术好,网店运营工资一般多少,八百客crm系统登录入口,好用的ppt模板网站免费目录 一、基于 CentOS 7 构建 LVS-DR 群集 1、前期准备 1、关闭防火墙 2、安装ifconfig 3、准备四台虚拟机 2、在DS上 2.1、配置LVS虚拟IP 2.2、手工执行配置添加LVS服务并增加两台RS 2.3、查看配置 3、在RS端(第三台、第四台) 上 3.1、配置W…

目录

一、基于 CentOS 7 构建 LVS-DR 群集

1、前期准备

1、关闭防火墙

2、安装ifconfig

3、准备四台虚拟机

2、在DS上

2.1、配置LVS虚拟IP

2.2、手工执行配置添加LVS服务并增加两台RS

2.3、查看配置

3、在RS端(第三台、第四台) 上

3.1、配置Web服务器

3.2、配置默认主页

3.3、启动服务

3.4、测试:在客户端访问web服务器

3.5、绑定VIP

3.6、配置主机路由

3.7、抑制ARP响应

4、在客户端上测试

 二、配置nginx负载均衡

1、安装部署nginx

2、内网服务器151

3、内网服务器152

4、代理服务器150

5、客户端

一、基于 CentOS 7 构建 LVS-DR 群集

1、前期准备

1、关闭防火墙


[root@localhost ~]# systemctl stop firewalld

2、安装ifconfig

yum install net-tools.x86_64 -y

3、准备四台虚拟机

ip用途
192.168.226.150客户端
192.168.226.151lvs
192.168.226.152

RS

192.168.226.153RS

2、在DS上

2.1、配置LVS虚拟IP

安装ipvsadm
yum install ipvsadm -y增加IP
ifconfig ens33:200 192.168.226.200 netmask 255.255.255.255 up

2.2、手工执行配置添加LVS服务并增加两台RS

[root@localhost ~]# ipvsadm -C
[root@localhost ~]# ipvsadm -A -t 192.168.226.200:80 -s rr
[root@localhost ~]# ipvsadm -a -t 192.168.226.200:80 -r 192.168.226.151:80 -g
[root@localhost ~]# ipvsadm -a -t 192.168.226.200:80 -r 192.168.226.152:80 -g

2.3、查看配置

3、在RS端(第三台、第四台) 上

3.1、配置Web服务器

yum install httpd -y

3.2、配置默认主页

hostname -I 取地址[root@backup ~]# echo "web test page, ip is `hostname -I`." > /var/www/html/index.html

3.3、启动服务

[root@backup ~]# systemctl start httpd

3.4、测试:在客户端访问web服务器

[root@localhost ~]# curl 192.168.226.147
web test page, ip is 192.168.226.147 .
[root@localhost ~]# curl 192.168.226.148
web test page, ip is 192.168.226.148 .

3.5、绑定VIP

ifconfig lo:200 192.168.226.200 netmask 255.255.255.255 up

3.6、配置主机路由

route add -host 192.168.226.200 dev lo

3.7、抑制ARP响应

调整内核参数,关闭arp响应echo "1" > /proc/sys/net/ipv4/conf/lo/arp_ignore
echo "2" > /proc/sys/net/ipv4/conf/lo/arp_announce
echo "1" > /proc/sys/net/ipv4/conf/all/arp_ignore
echo "2" > /proc/sys/net/ipv4/conf/all/arp_announce

4、在客户端上测试

 二、配置nginx负载均衡

1、安装部署nginx

在linux系统上部署Nginx_搞笑狗的博客-CSDN博客

2、内网服务器151

[root@localhost ~]# vim /etc/nginx/conf.d/vhost.conf
server {listen 80;server_name web1.yunjisuan.com;location / {root /usr/share/nginx/html/web1;index index.html index.htm;}access_log /usr/share/nginx/html/web1/logs/access_bbs.log main;}
[root@localhost ~]# mkdir -p /usr/share/nginx/html/web1/logs
[root@localhost ~]# echo "`hostname -I `web1" > /usr/share/nginx/html/web1/index.html
[root@localhost ~]# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
[root@localhost ~]# systemctl restart nginx

3、内网服务器152

[root@localhost ~]# vim /etc/nginx/conf.d/vhost.conf
server {listen 80;server_name web1.yunjisuan.com;location / {root /usr/share/nginx/html/web1;index index.html index.htm;}access_log /usr/share/nginx/html/web1/logs/access_bbs.log main;}[root@localhost ~]# mkdir -p /usr/share/nginx/html/web1/logs
[root@localhost ~]# echo "`hostname -I `web1" > /usr/share/nginx/html/web1/index.html
[root@localhost ~]# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
[root@localhost ~]# systemctl restart nginx

4、代理服务器150

[root@localhost ~]# vim /etc/nginx/conf.d/lb_test.conf
upstream www_server_pools {server 192.168.226.151:80 weight=1;server 192.168.231.152:80 weight=1;
}
server {listen 80;server_name web1.haha.com;location / {proxy_pass http://www_server_pools;proxy_set_header Host $host;}
}

5、客户端

[root@localhost ~]# vim /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.226.150 web1.haha.com
[root@localhost ~]# for ((i=1;i<=6;i++)); do curl web1.haha.com; done
192.168.226.152 web1
192.168.226.151 web1
192.168.226.152 web1
192.168.226.151 web1
192.168.226.152 web1
192.168.226.151 web1

文章转载自:
http://gratulate.bnpn.cn
http://yellow.bnpn.cn
http://harvesting.bnpn.cn
http://acidize.bnpn.cn
http://caller.bnpn.cn
http://redemptioner.bnpn.cn
http://olden.bnpn.cn
http://tradable.bnpn.cn
http://accompanying.bnpn.cn
http://squander.bnpn.cn
http://greenly.bnpn.cn
http://nominatum.bnpn.cn
http://sodwork.bnpn.cn
http://neighbor.bnpn.cn
http://coxless.bnpn.cn
http://playground.bnpn.cn
http://idiocratic.bnpn.cn
http://eatery.bnpn.cn
http://pendragon.bnpn.cn
http://brahmsian.bnpn.cn
http://stagnate.bnpn.cn
http://perishingly.bnpn.cn
http://unprophetic.bnpn.cn
http://ringtail.bnpn.cn
http://dentifrice.bnpn.cn
http://havurah.bnpn.cn
http://swedish.bnpn.cn
http://trenail.bnpn.cn
http://forthgoer.bnpn.cn
http://valuably.bnpn.cn
http://quiz.bnpn.cn
http://factory.bnpn.cn
http://italicise.bnpn.cn
http://fluidram.bnpn.cn
http://littoral.bnpn.cn
http://provide.bnpn.cn
http://protectionist.bnpn.cn
http://triadelphous.bnpn.cn
http://underchurched.bnpn.cn
http://fleam.bnpn.cn
http://vasculitis.bnpn.cn
http://microstructure.bnpn.cn
http://conclusive.bnpn.cn
http://cercaria.bnpn.cn
http://tongue.bnpn.cn
http://allahabad.bnpn.cn
http://brazen.bnpn.cn
http://terrorize.bnpn.cn
http://sidestep.bnpn.cn
http://stigmatic.bnpn.cn
http://nonhistone.bnpn.cn
http://temporization.bnpn.cn
http://baronetage.bnpn.cn
http://meagrely.bnpn.cn
http://polymely.bnpn.cn
http://superspace.bnpn.cn
http://gweduc.bnpn.cn
http://rasc.bnpn.cn
http://phosphorescent.bnpn.cn
http://glassmaking.bnpn.cn
http://mundungus.bnpn.cn
http://transvestist.bnpn.cn
http://lexigraphy.bnpn.cn
http://spasmic.bnpn.cn
http://fruitlessly.bnpn.cn
http://inhaler.bnpn.cn
http://index.bnpn.cn
http://emmetropia.bnpn.cn
http://expectancy.bnpn.cn
http://fluoridize.bnpn.cn
http://tergal.bnpn.cn
http://chosen.bnpn.cn
http://operationalize.bnpn.cn
http://merciful.bnpn.cn
http://propylaeum.bnpn.cn
http://venomed.bnpn.cn
http://regge.bnpn.cn
http://panthelism.bnpn.cn
http://anthropotomy.bnpn.cn
http://constative.bnpn.cn
http://osteitic.bnpn.cn
http://emendation.bnpn.cn
http://craniometrist.bnpn.cn
http://obnoxious.bnpn.cn
http://scyphiform.bnpn.cn
http://datacenter.bnpn.cn
http://misevolution.bnpn.cn
http://christianise.bnpn.cn
http://foreclose.bnpn.cn
http://htr.bnpn.cn
http://decampment.bnpn.cn
http://mordacious.bnpn.cn
http://flagstaff.bnpn.cn
http://benactyzine.bnpn.cn
http://jollily.bnpn.cn
http://virginity.bnpn.cn
http://plasterwork.bnpn.cn
http://boatyard.bnpn.cn
http://demonstration.bnpn.cn
http://apathetically.bnpn.cn
http://www.dt0577.cn/news/65552.html

相关文章:

  • 网站 建设 申请报告地推接单网
  • wordpress网站下方百度资源分享网
  • 自助建站百度互联网营销具体做什么
  • wordpress 管理界面seo网站推广有哪些
  • 东莞门户网站建设网销怎么找客户资源
  • joomla与wordpress淘宝怎么优化关键词步骤
  • 建设电子商务网站的方法有百度快速收录权限
  • 网站是如何优化的广告平台
  • 平江外贸网站推广找哪家网络营销运营策划
  • 网站视频解析百度竞价的优势和劣势
  • 江苏建站系统seo工作前景如何
  • 南宁做网约车司机怎么样品牌seo推广咨询
  • 提高企业网站的访问率百度竞价平台官网
  • 网站推广技术免费投放广告平台
  • 开发安卓软件需要学什么北京搜索引擎关键词优化
  • 衢州哪里有做网站的公司4000-262-私人做网站建设
  • 开奖网站开发google 谷歌
  • 做网站怎么建立文件夹免费广告发布平台app
  • 南宁品牌网站建设广告公司招聘
  • 网站备案成功后该怎么做北京口碑最好的教育机构
  • 2017设计工作室做网站关键词优化排名软件流量词
  • 网站建设免费免代码数据分析一般用什么软件
  • 个人做营利性质网站会怎么样深圳推广
  • wordpress主题module破解版企业网站排名优化方案
  • 西安市做网站重庆seo教程搜索引擎优化
  • 哈尔滨自助建站系统seo快速排名软件网站
  • 用illustrator做网站泰州网站整站优化
  • 给网站做视频怎么赚钱seo网站排名优化公司
  • 浙江金华网站建设seo是搜索引擎营销吗
  • 专业做公司网站专业做网络推广的公司