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

锚文本外链网站光棍天堂手机2019版免费观看

锚文本外链网站,光棍天堂手机2019版免费观看,网站怎么做微信分享,软件开发文档清单目录 一、基于 CentOS 7 构建 LVS-DR 集群。 1.1 配置lvs负载均衡服务 1.1.1 下载ipvsadm 1.1.2 增加vip 1.1.3 配置ipvsadm 1.2 配置rs1 1.2.1 编写测试页面 1.2.2 手工在RS端绑定VIP、添加路由 1.2.3 抑制arp响应 1.3 配置rs2 1.4 测试 二、配置nginx负载…目录 一、基于 CentOS 7 构建 LVS-DR 集群。 1.1 配置lvs负载均衡服务 1.1.1 下载ipvsadm 1.1.2 增加vip 1.1.3 配置ipvsadm 1.2 配置rs1 1.2.1  编写测试页面 1.2.2 手工在RS端绑定VIP、添加路由         1.2.3 抑制arp响应 1.3 配置rs2 1.4 测试 二、配置nginx负载均衡。 2.1 配置好环境 2.2  web服务器上添加测试页面 2.3 配置负载均衡器 2.4  开启nginx服务和web服务 2.5 测试 一、基于 CentOS 7 构建 LVS-DR 集群。 环境 作用环境windows测试 192.168.33.158LVS负载均衡centos7192.168.33.157web服务器1--rs1nginx1.22centos7192.168.33.156web服务器2--rs2Apache2.4 redhat9 1.1 配置lvs负载均衡服务 1.1.1 下载ipvsadm 1.1.2 增加vip ifconfig ens33:110 192.168.33.100 注意增加的IP和本机的IP需要在同一个网段。 1.1.3 配置ipvsadm 1.2 配置rs1 1.2.1  编写测试页面 1.2.2 手工在RS端绑定VIP、添加路由         1.2.3 抑制arp响应 1.3 配置rs2 配置和rs1一样省略。 注意调整内核参数关闭arp响应的时候redhat和centos的网络设备名称是不一样的。 1.4 测试 二、配置nginx负载均衡。 2.1 配置好环境 作用环境windows测试192.168.33.158nginx负载均衡nginx1.22centos7192.168.33.157web服务器1--web1nginx1.22centos7192.168.33.156web服务器2--web2Apache2.4 redhat9 确保所有的防火墙和selinx都是关闭的。  2.2  web服务器上添加测试页面 web1 web2 2.3 配置负载均衡器 主配置文件/usr/local/nginx/conf/nginx.conf user nginx; worker_processes 1;#error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info;#pid logs/nginx.pid;events {worker_connections 1024; }http {include mime.types;default_type application/octet-stream;#log_format main $remote_addr - $remote_user [$time_local] $request # $status $body_bytes_sent $http_referer # $http_user_agent $http_x_forwarded_for;#access_log logs/access.log main;sendfile on;#tcp_nopush on;#keepalive_timeout 0;keepalive_timeout 65;#gzip on;include /etc/nginx/conf.d/*.conf;server {listen 80;server_name localhost;#charset koi8-r;#access_log logs/host.access.log main;location / {root html;index index.html index.htm;}#location / {# root /data/web2;# index index.html index.htm;# auth_basic Restricted;# auth_basic_user_file /data/web2/webpass;#}location ~ \.php$ {root html;fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;include fastcgi_params;}#error_page 404 /404.html;# redirect server error pages to the static page /50x.html#error_page 500 502 503 504 /50x.html;location /50x.html {root html;}# proxy the PHP scripts to Apache listening on 127.0.0.1:80##location ~ \.php$ {# proxy_pass http://127.0.0.1;#}# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000##location ~ \.php$ {# root html;# fastcgi_pass 127.0.0.1:9000;# fastcgi_index index.php;# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;# include fastcgi_params;#}# deny access to .htaccess files, if Apaches document root# concurs with nginxs one##location ~ /\.ht {# deny all;#}}# another virtual host using mix of IP-, name-, and port-based configuration##server {# listen 8000;# listen somename:8080;# server_name somename alias another.alias;# location / {# root html;# index index.html index.htm;# }#}# HTTPS server##server {# listen 443 ssl;# server_name localhost;# ssl_certificate cert.pem;# ssl_certificate_key cert.key;# ssl_session_cache shared:SSL:1m;# ssl_session_timeout 5m;# ssl_ciphers HIGH:!aNULL:!MD5;# ssl_prefer_server_ciphers on;# location / {# root html;# index index.html index.htm;# }#}}子配置文件/etc/nginx/conf.d/vhost.conf server {listen 80;server_name test.ng.test;location / {proxy_pass http://web_server;}}upstream web_server {server 192.168.33.157;server 192.168.33.156; }2.4  开启nginx服务和web服务 systemctl  start nginx systemctl  start httpd 2.5 测试 用windows测试的时候需要修改本地的hosts文件。路径C:\Windows\System32\drivers\etc windows 浏览器的测试 因为是一般轮询负载均衡所以不断刷新页面页面会在192.168.33.157和192.168.33.156之间交替出现。
http://www.hkea.cn/news/14272462/

相关文章:

  • 网站关键词设置技巧重庆网站推广平台
  • 网站建设教程(项目式)郑州企业的网站建设
  • 主机怎么装wordpress企业网站优化包括哪三个方面
  • 网站创造网页建站价格
  • 手机做wifi中继上外国网站积分商城平台
  • 北京网站制作公司排名做网站商城如何优化
  • 网站主页设计教程网站建设有什么价值
  • 河北住房和建设厅官方网站制作公司网站 黑龙江
  • 纺织行业网站怎么做吸引人建站公司 知乎 discuz
  • 中山家居企业网站建设wordpress 首页调用产品
  • 广州营销型企业网站建设网站建设先修课程
  • 怎么把asp网站改成php用搬瓦工做网站
  • php网站后台密码忘记了wordpress文章图片幻灯片
  • 手机软件做的相册怎样传到网站网站建设交易
  • 网站开发介绍ppt商机互联做网站怎么样
  • 集团微网站建设vps搭建网站
  • 人才引进从事网站建设申请注册一个商标多少钱
  • 厦门专业网站建设平台创建公司要具备什么条件
  • 自己写网页百度的seo排名怎么刷
  • 大学生建设什么网站好网站建设 工具
  • 营销网站 建设 高端网站内页检测
  • 广州旅游网站建设设计公司网页视频下载提取
  • 光速网络网站网页创意设计
  • 专业网站的公司手机搭建网站
  • 手机网站建好怎么发布公司营销型网站制作
  • 潍坊注册公司流程和费用标准上海搜索引擎优化公司
  • 吉林省住房建设保障厅网站台州网站开发公司
  • 网站域名要多少钱淘客怎样做网站
  • 丹江口网站建设360优化关键词
  • 怎样做二维码网站应用软件开发工程师