ipvsadm-save
来自「实现了集群的实现 完成了资源负载平衡等问题」· 代码 · 共 45 行
TXT
45 行
#!/bin/bash# ipvsadm-save - Save IPVS rules## A very simple wrapper to save IPVS rules# Inspired by ipchains-save.## Version: $Id: ipvsadm-save,v 1.3 2001/03/22 12:57:46 wensong Exp $## Script Author: Horms <horms@vergenet.net>## This file:## ChangeLog## Wensong Zhang : Added the "-n" option and the help()#PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbinNUMERIC=""help(){ exec 1>&2 echo `basename $0`: Script to save the IPVS table to stdout. echo " With the -n option, prints out the table in numeric format." exit 1}for argdo case "$arg" in -n) NUMERIC="-n" ;; -*) help ;; esacdone# All the work is actually done in ipvsadm, horayipvsadm -S $NUMERIC
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?