ntop.sh

来自「ntop网络监控软件,使用方面」· Shell 代码 · 共 40 行

SH
40
字号
#!/bin/sh#----------------------------------------------------------------------# The following variables may be changed#   Most stuff should be changed in ntop.conf## Network interface(s) to be monitored;# may be blank, or comma-separated listinterfaces=''# Specify any additional arguments here - see ntop(8)additional_args=''## End of user-configurable variables#----------------------------------------------------------------------args='-d -L'[ ! -z $interfaces ] && args="$args -i $interfaces"[ ! -z "$additional_args" ] && args="$args $additional_args"case "$1" instart)  [ -x %%PREFIX%%/bin/ntop ] && %%PREFIX%%/bin/ntop @%%PREFIX%%/etc/ntop/ntop.conf $args >/dev/null 2>&1 \    && echo -n ' ntop'  ;;stop)  killall ntop >/dev/null 2>&1 && echo -n ' ntop'  ;;*)  echo "Usage: `basename $0` {start|stop}" >&2  exit 64  ;;esacexit 0

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?