if [ "$1" = "xx.xx.xx.xx" ]||[ $1 = "node01" ]; then ssh -p2222 root@112.xx.xx.xxx else echo "hello world" #当$1="ip"或$1='node01'时都会执行下面的的命令