本站用于记录日常工作内容,虚拟化云计算,系统运维,数据库DBA,网络与安全。
haproxy使用多内网ip做负载均衡突破64k连接(突破单ip 65535端口限制)  前言当我们使用haproxy 做负载均衡器的时候,负载均衡多个后端服务器,但是有一个问题,负载均衡后端的服务器的是需要占用haproxy机端口的.tcp的端口一共65535个除去保留端口,基本也就64k可用的样子.那么f5之类套着硬件皮的负载均衡器是怎么做到的可以负载几十万的连接数的?其实f5机本身自己使用了多个内网ip地址,一个f5上的内网ip地址拥有连接后端64k连接的能力.那么haproxy支持这样的功能么,从而负载更高的连接数么?经过灿哥的分享,我们知道是可以的,只要给haproxy机配置多个lan内网ip,haproxy机可以通过多个lan内网ip去负载均衡后端服务器.一个内网ip去负载一台后端服务,这样一个haproxy内网ip就有了长64k连接的负载能力了.配置haproxy 用多个lan内网ip做负载均衡,以突破haproxy机只支持64k连接(突破单ip 65535端口限制)配置例子haproxy负载均衡机外网ip: 8.8.8.8haproxy内网ip1: 10.8.8.2haproxy内网ip2: 10.8.8.3haproxy内网ip3: 10.8.8.4后端web1内网ip: 10.8.8.10后端web2内网ip: 10.8.8.11后端web3内网ip: 10.8.8.12server web1 10.8.8.10 : 80 check source&n...
Install Pen to configure Load Balance server. Pen is a light weight simple load balancer. This example shows to configure on the environment like follows(1) rackspace-jon [192.168.58.154] – Pen Server(2) rackspace-nfs01 [192.168.58.152] – Web Server#1(3) rackspace-nfs02 [192.168.58.153] – Web Server#2[root@rackspace-jon ~]# yum -y install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfile* base: centos-mirror.magsnet.net* extras: centos-mirror.magsnet.net* updates: centos-mirror.magsnet.netSetting up Install Processepel-release-6-8.noarch.rpm | 14 kB 00:00Examining /var/tmp/yum-root-G_GHvp/epel-release-6-8.noarch.rpm: epel-release-6-8.noarchMarking /var/tmp/yum-root-G_GHvp/epel-release-6-8.noarch.rpm to be installedResolving Dependencies–> Running transaction check—> Package epel-release.noarch 0:6-8 will be installed–> Finished Dependency ResolutionDependencies Resolved=======...
Zen Load Balancer 3.03 发布,TCP 负载均衡Zen Load Balancer 3.03 包含很多新特性、改进和 bug 修复。Zen 是一个基于 Debian 的发行版,主要用于实现 TCP 的负载均衡。可通过定制的脚本来检查后端的运行状态,通过创建 Zen 集群来实现高可用性。通过 rrd 监控服务器状态,使用基于 HTTPS 的界面进行轻松的性能管理、配置和路由表配置等等。相关链接Zen Load Balancer 的详细介绍:请点这里Zen Load Balancer 的下载地址:请点这里
1.概述    G5是一款高性能高并发负载、易配置使用、支持远程管理的轻量级TCP/IP的通讯转发、(负载均衡)通讯分发器软件。基于epoll(ET)事件驱动非堵塞全异步无锁框架实现(在非Linux操作系统上退化为select实现),能运行在Linux、UNIX和WINDOWS等多种主流操作系统上。    G5支持所有TCP应用层协议,这意味着不仅可以用于网站HTTP服务,还能用在SMTP、POP、FTP上等,甚至非常见TCP应用协议。    G5支持几乎所有主流负载均衡算法,如轮询、最少连接数、最小响应时间等。    使用场景如下:    * 简单的TCP通讯转发    * 与无负载均衡功能的通讯软件配合实现负载均衡分发,避免改造通讯软件带来的工作量和风险    * 网站反向代理通讯网关2.开发背景    今天和系统运维的老大聊天,谈到一直在用的F5,行里对其评价为价格过高、功能复杂难懂,没有发挥相应的价值。因为以前我曾经给行里开发过一个通讯中间件,附带软实现了负载均衡,几年使用下来一直效果不错,突然想自己再软实现一个纯负载均衡通讯分发器,并开源分享给大家。    说干...
Centos6 安装pen 实现负载均衡,下面是web安装实例。 Install pen which is lightweight simple Load Balancing software.It is TCP protocol based, so it's possible to balance not only HTTP but SMTP, FTP, LDAP and so on.This example is based on the environment like follows. | --------+-------------------------------------------------------------------- | +-------------------+--------------------+--------------------+ |10.0.0.30 |10.0.0.51 |10.0.0.52 |10.0.0.53 +------+-----+ +-------+------+ +-------+------+ +-------+------+ | Frontend | | Backend#1 | | Backend#2 | | Backend#3 | | Pen Server | | Web Server | | Web Server | | Web Server | +------------+ +--------------+ +--------------+ +--------------+  Configure Pen to load balance to Backend#1, Backend#2, Backend#3 web servers.[1]Install Pen.# install from EPEL[root@dlp ~]# yum --enablerepo=ep...
Centos7 安装配置vsftpd,ftp 530 /ftp 500 报错解决方法首先安装vsftpd 软件,142  yum -y install vsftpd  143  systemctl enable vsftpd.service   144  systemctl start vsftpd.service 启用vsftpd 服务下面是添加ftpadmin 账号与ftp目录  145  useradd -d /var/www/html/ -s /sbin/nologin ftpadmin#vi /etc/vsftpd.conf将配置文件中”anonymous_enable=YES “改为 “anonymous_enable=NO”取消如下配置前的注释符号:local_enable=YESwrite_enable=YESchroot_local_user=YESchroot_list_enable=YESchroot_list_file=/etc/vsftpd.chroot_list保存退出编辑/etc/vsftpd/chroot_list文件,将ftpadmin的帐户名添加进去,保存退出修改ftpadmin 密码  147  passwd ftpadmin   148  systemctl restart vsftpd.service   修改ftp目录的用户组。  169  chown -R ftpadmin /var/www/html使用ftp功能测试,ftp登陆正常。
Centos7.2/Centos7.4配置gnome图形界面并安装vnc服务   1,首先,需要更新系统。#: yum update -y#: rebbot2,然后,安装gnome环境包。 #: yum groupinstall "GNOME Desktop" "Graphical Administration Tools" -y现在,我们要在服务器上安装 VNC 服务器了。4. yum 安装vnc #:yum install -y tigervnc  tigervnc-server tigervnc-server-module  -y5 配置vnc编辑# vim /lib/systemd/sytem/vncserver@.service找到下面这几行,用自己的用户名替换掉 。我的用户名是 root 所以我用 root 来替换掉 :ExecStart=/sbin/runuser -l -c "/usr/bin/vncserver %i"PIDFile=/home//.vnc/%H%i.pid替换为ExecStart=/usr/sbin/runuser -l root -c "/usr/bin/vncserver :1 -geometry 1024x768 -depth 16"PIDFile=/root/.vnc/%H%i.pid将 /lib/systemd/system/vncserver@.service 改为 /lib/systemd/system/vncserver@:1.service#mv /lib/systemd/system/vncserver@.service /lib/systemd/system/vncserver@:1.service重启 systemd#systemctl daemon-reload6.最后还要设置一下用户的 VNC 密...
  Linux系统配置Squid代理内网服务器上网功能 本文为大家介绍普通代理的搭建方式。 本实验环境:操作系统:CentOS release 6.5(Final)Squid版本:squid-3.1.23-9.el6.x86_64  1. 检查squid软件是否安装# rpm -qa|grep squid 2. 如果未安装,则使用yum 方式安装# yum -y install squid  3. 设置开机自启动# chkconfig --level 35 squid on   4. 编辑squid 的主配置文件 /etc/squid/squid.conf http_port 3128cache_mem 64 MBmaximum_object_size 4 MBcache_dir ufs /var/spool/squid 100 16 256access_log /var/log/squid/access.logacl localnet src 10.0.0.0/8http_access allow localnethttp_access deny allvisible_hostname squid.taotie.devcache_mgr admin@test.com 请注意:acl localnet src 10.0.0.0/8 中 10.0.0.0/8是ECS内网的网段,要求ECS之间内网可以互通。请根据自己的实际情况替换成内网IP段5.初始化squid# squid –z6.启动Squid# /etc/init.d/squid start 到这里squid就配置好了,我们使用另一台没有公网IP的服务器连接squid代理,测试是否可以上网。 打...
Linux服务器中vsftp如何限制用户的下载流量(带宽)  如果不需要带宽被用户上传/下载占用过大,而影响服务器的其他正常服务。可以考虑限制FTP用户的总传输带宽。vsftp中,您可以通过以下方法限制所有用户的总传输带宽最大可达1M Bytes/秒:1. 使用文本编辑器打开/etc/vsftpd/vsftpd.conf2. 添加参数 local_max_rate = 1024000保存该配置文件3. 重启FTP服务/etc/init.d/vsftpd restart 需要您注意的是,local_max_rate参数的单位是Bytes/秒,1M Bytes/秒 = 1024000 Bytes/秒。
 
0
利用Apache的    .htaccess 配置重定向http跳转到https   RewriteEngine On   RewriteCond %{SERVER_PORT} !^443$   RewriteRule ^/?(.*)$ https://%{SERVER_NAME}/$1 [L,R]参考自:http 跳转到https的问题也可以这样写:   RewriteEngine On   RewriteCond %{HTTPS} !on   RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}附注:以上实现http跳转https方法测试成功。如果需要整站跳转,则在网站的配置文件的<Directory>标签内,键入以下内容:RewriteEngine onRewriteCond %{SERVER_PORT} !^443$RewriteRule ^(.*)?$ https://%{SERVER_NAME}/$1 [L,R]如果对某个目录做https强制跳转,则复制以下代码:RewriteEngine onRewriteBase /yourfolderRewriteCond %{SERVER_PORT} !^443$#RewriteRule ^(.*)?$ https://%{SERVER_NAME}/$1 [L,R]RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]如果只需要对某个网页进行https跳转,可以使用redirect 301来做跳转!redirect 301  /你的网页 https://你的主机+网页
    总共48页,当前第26页 | 页数:
  1. 16
  2. 17
  3. 18
  4. 19
  5. 20
  6. 21
  7. 22
  8. 23
  9. 24
  10. 25
  11. 26
  12. 27
  13. 28
  14. 29
  15. 30
  16. 31
  17. 32
  18. 33
  19. 34
  20. 35
  21. 36