continuous updating…
ssh
配置免密登陆// 指定用户 ssh root@192.168.1.10 // 指定端口和用户 ssh -p 110 root@192.168.1.10
ssh
远程执行脚本scp
远程发送文件scp -r /usr/local/zookeeper root@192.168.1.10:/usr/local/
lsof -i
查看端口情况,list open file
的简写,linux
中任何事物都是以文件的形式打开,包括tcp
网络连接、访问nginx
服务器下的资源等等lsof -i lsof -i:8080 lsof -i | grep 8080
在脚本中获取本机
IP
地址IP=`ifconfig eth0 | grep "inet addr" | awk '{ print $2}' | awk -F: '{print $2}'`