本站用于记录日常工作内容,虚拟化云计算,系统运维,数据库DBA,网络与安全。
 
0

rsync的断点续传

发表者:admin分类:应用服务2015-11-06 09:48:44 阅读[2273]
经常copy大文件,由于服务器、路由等网络的不确定性,老是出现remote server not responding.于是查了下资料,发现rsync这个工具支持断点续传功能,这里介绍一下。 rsync也分服务器端和客户端,使用man查看帮助信息,我们发现rsync有六种不同的工作模式:       Local:  rsync [OPTION...] SRC... [DEST]       Access via remote shell:         Pull: rsync [OPTION...] [USER@]HOST:SRC... [DEST]         Push: rsync [OPTION...] SRC... [USER@]HOST:DEST       Access via rsync daemon:         Pull: rsync [OPTION...] [USER@]HOST::SRC... [DEST]               rsync [OPTION...] rsync://[USER...
Centos7/RHEL安装haproxy实现http与tcp负载均衡HAProxy提供高可用性、负载均衡以及基于TCP和HTTP应用的代理,支持虚拟主机,它是免费、快速并且可靠的一种解决方案。HAProxy特别适用于那些负载特大的web站点, 这些站点通常又需要会话保持或七层处理。HAProxy运行在当前的硬件上,完全可以支持数以万计的并发连接。并且它的运行模式使得它可以很简单安全的整合进您当前的架构中, 同时可以保护你的web服务器不被暴露到网络上。1、下载&安装haproxy:wget http://haproxy.1wt.eu/download/1.4/src/haproxy-1.4.20.tar.gz tar zxvf haproxy-1.4.20.tar.gz cd haproxy-1.4.20 uname -a //查看linux内核版本 make TARGET=linux26 PREFIX=/usr/local/haproxy make install PREFIX=/usr/local/haproxy2、编写haproxy.cfg文件,可适用于haproxy-1.5版本 :vi /usr/local/haproxy/haproxy.cfg粘贴如下内容至haproxy.cfg:global    maxconn 51200    chroot /usr/local/haproxy    uid 99    gid 99    daemon    #quiet    nbpro...
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代理,测试是否可以上网。 打...
    总共47页,当前第25页 | 页数:
  1. 15
  2. 16
  3. 17
  4. 18
  5. 19
  6. 20
  7. 21
  8. 22
  9. 23
  10. 24
  11. 25
  12. 26
  13. 27
  14. 28
  15. 29
  16. 30
  17. 31
  18. 32
  19. 33
  20. 34
  21. 35