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

最精品网站建设最简单的营销方案

最精品网站建设,最简单的营销方案,医疗门户网站模板,网站建设的自我总结目录 一、基于 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/14446164/

相关文章:

  • 郑州网站外包公司简介企业网站开发框架
  • 加强网站建设 统计局网站关键词扩展
  • 徐州云建站模板如何自己开公众号
  • 北京设计网站的公司嘉兴网站排名优化
  • 界首网站建设南宁网页设计
  • 嘉兴手机网站建设seo优化网页
  • 珠海网站制作策划wordpress未收到数据
  • 网站自己做自己的品牌好做科技小发明小制作大全 小学生
  • 商城网站建设设计介绍最好的完全免费开源企业网站
  • 济南网站建设老威做视频网站需要什么
  • 做的网站每年都要交费吗深圳平面设计
  • seo刷网站推广途径
  • 淘客免费交易网站建设网站开发文档撰写
  • 广元专业高端网站建设最好玩的传奇网页游戏
  • 苏州网络网站建设西安软件公司有哪些
  • 如何做二维码跳转到网站wordpress 分类页id
  • 毕业生对于网站建设感受手机网站你们
  • 优秀企业网站建设价格辽宁城市建设网站
  • 如何替换网站wordpress适合中国的小插件介绍
  • 网站购物车功能怎么做中国500强公司有哪些
  • 哪个公司制作企业网站域名网站模板
  • 做公司网站哪家好重庆九龙坡区dedecms迁移wordpress
  • cdr 做网站南京网站建设培训班
  • 查一下红之易道学做的什么网站个人做电商怎么入门
  • 公司制作网站多少钱营销网站的主题 定位 修改建议
  • 网站建设为什么这么贵wordpress teamtalk
  • 网站建设价格标准手机端自定义做链接网站
  • html5做宠物饲养网站郑州市有做网站的吗
  • 汽车网站排名查询沧州网站设计报价
  • 上线了网站网站百度收录怎么做