1.第一题
[root@server ~]# yum install mailx -y
[root@server ~]# vim /etc/mail.rc
[root@server ~]# vim disk1.sh
[root@server ~]# vim /etc/crontab
[root@server ~]# bash disk1.sh
2.第二题
[root@server ~]# vim web1.sh
[root@server ~]# bash web1.sh
httpd not started ,waiting……
[root@server ~]# ss -lntup | grep -w 80 | wc -l
1
3.第三题
[root@server ~]# vim web2.sh
[root@server ~]# bash web2.sh
web not accessible