摘要:
tail -n 30 /var/log/messages | grep namedssh-keygen -b 1024 -t rsascp /root/.ssh/id_rsa.pub root@192.168.1.181:/root/.ssh/authorized_keysBchmod 600 /... 阅读全文
摘要:
例一:监控httpd是否正常运行并自动开启#!/bin/bashport=$(nmap -sT localhost | grep 'http$' |awk '{print $2}')riqi=$(date +"%Y-%m-%d %H:%M")if [ "$port" == "open" ];then... 阅读全文