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

盐城市建设局网站打不开怎样做企业营销网站

盐城市建设局网站打不开,怎样做企业营销网站,定制网站开发,wordpress阿里百秀5.2目录 一、基于 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.zqtcl.cn/news/781751/

相关文章:

  • 一些网站只能在微信打开怎么做的别人做的网站域名到期怎么办
  • 姑苏区做网站网站建设一条
  • 赣州人才网站wordpress论坛查看用户密码
  • asp.net 网站开发架构网站你懂我意思正能量不用下载视频
  • 沈阳网站设计推广诸暨网络推广
  • 福建网站开发公司电话成都丁香人才网官网专区
  • 做网站标题居中代码对网页设计作品的意见
  • 网站建设实训考试普洱网站搭建
  • 你认为视频网站如何做推广asp网站木马扫描
  • 学校门户网站什么意思c2c网站建设要多少钱
  • asp怎么样做网站后台陕西咸阳做网站的公司
  • 手机网站模板wordpress编辑图像
  • 汉语国际网站建设靖江做网站的
  • 网站防止采集如何运行安装wordpress
  • 高端论坛网站建设忘记了wordpress登录密码忘记
  • 哈尔滨网站运营服务商wordpress 访问缓慢
  • 织梦网站上传及安装定制网站建设广告
  • 阳光创信-网站建设首选品牌wordpress rss插件
  • 钦州网站建设公司哪家好邢台制作
  • 网站广告赚钱吗中国小型加工机械网
  • 2015做网站前景东莞公司的网页怎么做的
  • 专业网站设计制作过程网站什么模板做的
  • 如何制作网页的软件网站推广与搜索引擎优化
  • 四川内江网站建设太原网站建设网格未来
  • 陕西 网站建设 陕ICP创建商务站点的主要工作
  • 做照明出口的网站深圳 网站制作
  • 门户网站建设 简报嘉兴设计公司有哪些
  • 资阳房地产网站建设学校网站建设板块分析
  • 山东华邦建设网站首页wordpress h5自适应
  • 合肥市建设工程劳务分包合同备案表在哪个网站下载国际国内热点新闻事件