摘要:
1:以 root为例[root@shell deploy]# ssh-keygen直接回车到底通过ssh-cpoy-id自带脚本来拷贝公钥到客户机命令格式:[root@shell ~]# ssh-copy-idUsage: /usr/bin/ssh-copy-id [-i [identity_fil... 阅读全文
摘要:
脚本功能:每5分钟监控服务进程,本次进程为3个tomcat服务,当服务挂起时,发送报警邮件,并启动服务1:创建日志文件脚本[root@shell ~]# cat a.sh #!/bin/bashb=a.`date +%Y%m%d-%T`.logecho -n "-------------------... 阅读全文
摘要:
功能:1:ping所有网内机器的IP地址,如果不通,发送报警 2:检测网内所有机器的服务端口,如果不通,发送报警#!/bin/bash##读取IP列表,测试ip的某个端口##while read ip1doping -c 2 $ip1 >> /dev/null 2>&1 if [ $? -eq ... 阅读全文