vim stopFrpc.sh
#!/bin/bash
echo "$1"
sshpass -p yt1024!@ ssh -p $1 root@xx.xx.x.x "systemctl stop frpc"
使用方法
chmod +x stopFrpc.sh
./stopFrpc.sh {port}
機器多的話還可以寫一個循環,批量操作
vim stopFrpc.sh
#!/bin/bash
echo "$1"
sshpass -p yt1024!@ ssh -p $1 root@xx.xx.x.x "systemctl stop frpc"
使用方法
chmod +x stopFrpc.sh
./stopFrpc.sh {port}
機器多的話還可以寫一個循環,批量操作