摘要:
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 /... 阅读全文
posted @ 2015-04-03 13:32
kin2321
阅读(156)
评论(0)
推荐(0)
摘要:
例一:监控httpd是否正常运行并自动开启#!/bin/bashport=$(nmap -sT localhost | grep 'http$' |awk '{print $2}')riqi=$(date +"%Y-%m-%d %H:%M")if [ "$port" == "open" ];then... 阅读全文
posted @ 2015-04-03 11:09
kin2321
阅读(170)
评论(0)
推荐(0)

浙公网安备 33010602011771号