shell脚本练习sh09.sh

#!/bin/bash
echo "Now, the services of your Linux system will be detect!"
echo -e
"The www, ftp, ssh, and mail will be detecte! \n"


testing='netstat -tuln|grep
":80"'

if [
"$testing" != "" ]; then
        echo
"WWW is running in your system."
fi

testing='netstat -tuln|grep
":3306"'

if [
"$testing" != "" ]; then
        echo
"mysql is running in your system."
fi
lunzi   2011-04-10 12:54:49 评论:1   阅读:205   引用:0
如果说有8080端口怎么办? @2013-02-05 16:14:09  
如果说有8080端口怎么办?也会被筛选出来,或者说我要筛选22端口,但是端口里面包含2207,

发表评论>>

署名发表(评论可管理,不必输入下面的姓名)

姓名:

主题:

内容: 最少15个,最长1000个字符

验证码: (如不清楚,请刷新)

Copyright@2004-2010 powered by YuLog