• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
导航菜单
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • windows
  • 服务器硬件
  • 服务器运维
  • 云计算
  • 虚拟化
  • IIS教程
  • Linux
  • Apache
  • Ftp
  • DNS
  • Nginx
您的位置:首页 > 服务器 >windows > 集群 之 ipvsadm 指令

集群 之 ipvsadm 指令

作者:网友 字体:[增加 减小] 来源:互联网

本文主要包含ipvsadm,ipvsadm命令,ipvsadm下载,ipvsadm安装,ipvsadm 1.26.tar.gz等服务器相关知识,网友希望可以进行参考

ipvsadm :定义管理LVS集群的命令行工具

ipvsadm -A|E -t|u|f service-address [-s scheduler] [-p [timeout]] [-M netmask]

-A :添加一条新的虚拟服务器记录

-E :编辑虚拟服务器记录

-D :删除虚拟服务器记录

-C :清楚所有的虚拟服务器记录

-R :恢复虚拟服务器规则

-S :保存虚拟服务器规则

-t  :tcp协议集群

-u :udp协议集群

-p :会话保持时间

-m:指定LVS的工作模式为NAT模式

-g :指定LVS的工作模式为直接路由

-i :指定LVS的工作模式为隧道模式

[root@zhu1 ~]# ipvsadm -A -t 192.168.70.70:80 -s rr #创建VIP
[root@zhu1 ~]# ipvsadm -a -t 192.168.70.70:80 -r 192.168.70.136 -m #指定真实的服务器并指定模式为nat
[root@zhu1 ~]# ipvsadm -a -t 192.168.70.70:80 -r 192.168.70.137 -m
[root@zhu1 ~]# ipvsadm -L -n #查看集群的配置信息
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port           Forward Weight ActiveConn InActConn
TCP  192.168.70.70:80 rr
-> 192.168.70.137:80            Masq    1      0          0
-> 192.168.70.136:80            Masq    1      0          0

-r  rip :指定真实服务器的ip地址

 

[root@zhu1 ~]# ipvsadm --help
ipvsadm v1.24 2005/12/10 (compiled with popt and IPVS v1.2.1)
Usage:
ipvsadm -A|E -t|u|f service-address [-s scheduler] [-p [timeout]] [-M netmask]
ipvsadm -D -t|u|f service-address
ipvsadm -C
ipvsadm -R
ipvsadm -S [-n]
ipvsadm -a|e -t|u|f service-address -r server-address [options]
ipvsadm -d -t|u|f service-address -r server-address
ipvsadm -L|l [options]
ipvsadm -Z [-t|u|f service-address]
ipvsadm --set tcp tcpfin udp
ipvsadm --start-daemon state [--mcast-interface interface] [--syncid sid]
ipvsadm --stop-daemon state
ipvsadm -h
Commands:
Either long or short options are allowed.
--add-service     -A        add virtual service with options
--edit-service    -E        edit virtual service with options
--delete-service  -D        delete virtual service
--clear           -C        clear the whole table
--restore         -R        restore rules from stdin
--save            -S        save rules to stdout
--add-server      -a        add real server with options
--edit-server     -e        edit real server with options
--delete-server   -d        delete real server
--list            -L|-l     list the table
--zero            -Z        zero counters in a service or all services
--set tcp tcpfin udp        set connection timeout values
--start-daemon              start connection sync daemon
--stop-daemon               stop connection sync daemon
--help            -h        display this help message
Options:
--tcp-service  -t service-address   service-address is host[:port]
--udp-service  -u service-address   service-address is host[:port]
--fwmark-service  -f fwmark         fwmark is an integer greater than zero
--scheduler    -s scheduler         one of rr|wrr|lc|wlc|lblc|lblcr|dh|sh|sed|nq,
the default scheduler is wlc.
--persistent   -p [timeout]         persistent service
--netmask      -M netmask           persistent granularity mask
--real-server  -r server-address    server-address is host (and port)
--gatewaying   -g                   gatewaying (direct routing) (default)
--ipip         -i                   ipip encapsulation (tunneling)
--masquerading -m                   masquerading (NAT)
--weight       -w weight            capacity of real server
--u-threshold  -x uthreshold        upper threshold of connections
--l-threshold  -y lthreshold        lower threshold of connections
--mcast-interface interface         multicast interface for connection sync
--syncid sid                        syncid for connection sync (default=255)
--connection   -c                   output of current IPVS connections
--timeout                           output of timeout (tcp tcpfin udp)
--daemon                            output of daemon information
--stats                             output of statistics information
--rate                              output of rate information
--exact                             expand numbers (display exact values)
--thresholds                        output of thresholds information
--persistent-conn                   output of persistent connection info
--sort                              sorting output of service/server entries
--numeric      -n                   numeric output of addresses and ports

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

  • 集群 之 ipvsadm 指令

相关文章

  • 怎么查看windows2003中隐藏用户
  • iis 您未被授权查看该页
  • Windows server 2003 创建域如何操作?
  • zabbix实现linux流量变化率监控
  • windows rsync两台服务器目录同步功能实现
  • liunx基本命令(权限的使用)
  • svn修改新url地址方法(linux,windows,centos)
  • Windows 2003服务器禁用错误报告
  • LUN和Volume
  • Windows Server 2008 R2 虚拟机池

文章分类

  • windows
  • 服务器硬件
  • 服务器运维
  • 云计算
  • 虚拟化
  • IIS教程
  • Linux
  • Apache
  • Ftp
  • DNS
  • Nginx

最近更新的内容

    • iis“Microsoft JET Database Engine(0x80004005)未指定错误”
    • IIS中php sendmail函数无法发送邮件
    • apache 80 端口被占用无法重启解决办法
    • 删除.svn文件夹,Windows下最快捷的方法
    • 有关Windows Server 2008的10个意外惊喜
    • windows下安装配置python开发环境及Ulipad开发工具
    • windows storage server 2008创建iscsi磁盘
    • Win 2003系统不能打开chm文件的问题
    • 解决IIS不支持中文文件名和目录方法
    • php上传文件到服务器

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有